{"id":16219962,"url":"https://github.com/sago35/tinydisplay","last_synced_at":"2025-03-19T11:30:50.944Z","repository":{"id":45322137,"uuid":"404732016","full_name":"sago35/tinydisplay","owner":"sago35","description":"`tinydisplay` is a tiny display for TinyGo development.","archived":false,"fork":false,"pushed_at":"2022-10-02T05:12:02.000Z","size":458,"stargazers_count":26,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-15T17:04:20.632Z","etag":null,"topics":["fyne","go","tinygo"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sago35.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-09-09T13:26:17.000Z","updated_at":"2025-02-04T01:54:16.000Z","dependencies_parsed_at":"2023-01-18T23:00:27.387Z","dependency_job_id":null,"html_url":"https://github.com/sago35/tinydisplay","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sago35%2Ftinydisplay","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sago35%2Ftinydisplay/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sago35%2Ftinydisplay/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sago35%2Ftinydisplay/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sago35","download_url":"https://codeload.github.com/sago35/tinydisplay/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243985864,"owners_count":20379219,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["fyne","go","tinygo"],"created_at":"2024-10-10T11:56:40.618Z","updated_at":"2025-03-19T11:30:50.625Z","avatar_url":"https://github.com/sago35.png","language":"Go","readme":"# tinydisplay\n\n`tinydisplay` is a tiny display for TinyGo development.  \nIt is possible to simulate the input of buttons and touch input.  \ntinydisplay works on windows, macOS and linux.   \n\n![](./images/tinydisplay_pyportal_boing.gif)\n\n`examples/buttons` is an example that handles button input.  \n\n![](./images/tinydisplay_buttons.gif)\n\n`examples/touch_paint` is an example of handling touch input.  \n\n![](./images/tinydisplay_touch_paint.gif)\n\n## Usage\n\nFirst, run `./cmd/tinydisplay`.  \nNext, control the display created by `NewClient()`.  \nSome examples can be found in [./examples](./examples).  \n\n\n```go\npackage main\n\nimport (\n\t\"image/color\"\n\t\"time\"\n\n\t\"github.com/sago35/tinydisplay\"\n)\n\nvar (\n\tblack = color.RGBA{0, 0, 0, 255}\n\twhite = color.RGBA{255, 255, 255, 255}\n)\n\nfunc main() {\n\tdisplay, _ := tinydisplay.NewClient(\"127.0.0.1\", 9812, 320, 240)\n\tdisplay.FillScreen(black)\n\n\tfor x := int16(0); x \u003c 100; x++ {\n\t\tdisplay.SetPixel(x, x, white)\n\t\tdisplay.SetPixel(x, 100-x-1, white)\n\t}\n\tfor {\n\t\ttime.Sleep(time.Hour)\n\t}\n}\n```\n\n### Server\n\nCGO is required to build server (`./cmd/tinydisplay`).  \n\n```\n$ go build ./cmd/tinydisplay\n\n$ ./tinydisplay.exe\ntcp:127.0.0.1:9812\n320x240\n```\n\nor\n\n```\n$ ./tinydisplay.exe --address localhost --port 3000 --size 640x480\ntcp:localhost:3000\n640x480\n```\n\n\n### Client\n\n```\n$ go run ./examples/basic\n\n$ go run ./examples/displays\n\n$ go run ./examples/pyportal_boing\n\n$ go run ./examples/tinydraw\n\n$ go run ./examples/unicode_font\n```\n\n### Examples\n\n[./examples](./examples) will work with both tinydisplay and wioterminal.  \nTo make it work with tinydisplay, run `go-build`.  \n\n```\n$ go run ./examples/basic\n```\n\nIf you want to run it using a target such as wioterminal, please run `tinygo flash`.  \n\n```\n$ tinygo flash --target wioterminal --size short ./examples/basic\n```\n\n## install\n\n```shell\n$ go install github.com/sago35/tinydisplay/cmd/tinydisplay@latest\n```\n\n```\n$ GOPROXY=direct go install github.com/sago35/tinydisplay/cmd/tinydisplay@latest\n```\n\nor\n\n* Download from https://github.com/sago35/tinydisplay/releases/latest\n* Download from https://github.com/sago35/tinydisplay/actions\n\n## Author\n\nsago35 - \u003csago35@gmail.com\u003e\n","funding_links":[],"categories":["Code Editing"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsago35%2Ftinydisplay","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsago35%2Ftinydisplay","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsago35%2Ftinydisplay/lists"}