{"id":21456353,"url":"https://github.com/zcube/turing-smart-screen-golang","last_synced_at":"2025-06-27T21:35:38.716Z","repository":{"id":238247130,"uuid":"796176377","full_name":"ZCube/turing-smart-screen-golang","owner":"ZCube","description":"Turing Smart Screen library for Golang.","archived":false,"fork":false,"pushed_at":"2024-05-05T10:56:05.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-05-06T07:39:03.969Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/ZCube.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-05T06:56:34.000Z","updated_at":"2024-06-19T07:53:48.804Z","dependencies_parsed_at":null,"dependency_job_id":"a0b0d2fd-34dc-4eb1-af46-0ce56d7096cb","html_url":"https://github.com/ZCube/turing-smart-screen-golang","commit_stats":null,"previous_names":["zcube/turing-smart-screen-golang"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZCube%2Fturing-smart-screen-golang","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZCube%2Fturing-smart-screen-golang/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZCube%2Fturing-smart-screen-golang/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZCube%2Fturing-smart-screen-golang/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ZCube","download_url":"https://codeload.github.com/ZCube/turing-smart-screen-golang/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243966953,"owners_count":20376152,"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":[],"created_at":"2024-11-23T05:15:28.194Z","updated_at":"2025-03-17T03:26:24.429Z","avatar_url":"https://github.com/ZCube.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# turing-smart-screen-golang\nTuring Smart Screen library for Golang.\n\n## Usage\nWith gg (https://github.com/fogleman/gg)\n```go\nimport (\n\t\"github.com/zcube/turing-smart-screen-golang/pkg/common\"\n\t\"github.com/zcube/turing-smart-screen-golang/pkg/lcd\"\n)\n\n\n// open the device\nlcdInfo, err := lcd.New(dev, common.RevisionA)\nif err != nil {\n    log.Fatalf(\"Error: %v\", err)\n}\ndefer lcdInfo.Close()\n\n// create a new context for drawing\ndc := gg.NewContext(lcdInfo.Width(), lcdInfo.Height())\n\n// clear the screen\nlcdInfo.Clear()\n\nfor {\n    // draw a random line\n    x1 := rand.Float64() * float64(lcdInfo.Width())\n    y1 := rand.Float64() * float64(lcdInfo.Height())\n    x2 := rand.Float64() * float64(lcdInfo.Width())\n    y2 := rand.Float64() * float64(lcdInfo.Height())\n    r := rand.Float64()\n    g := rand.Float64()\n    b := rand.Float64()\n    a := rand.Float64()*0.5 + 0.5\n    w := rand.Float64()*4 + 1\n    dc.SetRGBA(r, g, b, a)\n    dc.SetLineWidth(w)\n    dc.DrawLine(x1, y1, x2, y2)\n    dc.Stroke()\n\n    // display the image\n    lcd.DisplayImage(lcdInfo, dc.Image(), 0, 0, 320, 480)\n}\n```\n\n## Example\n```bash\ngo run examples/simple/main.go\n```\n\n## Warning\n* MacOS is not supported. There are some problems with serial communication. Maybe it's a problem with the driver.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzcube%2Fturing-smart-screen-golang","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzcube%2Fturing-smart-screen-golang","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzcube%2Fturing-smart-screen-golang/lists"}