{"id":21275427,"url":"https://github.com/tmsmr/ssd1351","last_synced_at":"2026-05-20T09:07:50.841Z","repository":{"id":57639230,"uuid":"430360690","full_name":"tmsmr/ssd1351","owner":"tmsmr","description":"Golang module for SSD1351-based OLED's on a Raspberry Pi","archived":false,"fork":false,"pushed_at":"2021-11-27T16:46:19.000Z","size":935,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-22T03:24:30.293Z","etag":null,"topics":["golang","oled","raspberry-pi","ssd1351"],"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/tmsmr.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}},"created_at":"2021-11-21T12:32:00.000Z","updated_at":"2021-11-27T16:50:04.000Z","dependencies_parsed_at":"2022-08-27T20:02:19.101Z","dependency_job_id":null,"html_url":"https://github.com/tmsmr/ssd1351","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmsmr%2Fssd1351","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmsmr%2Fssd1351/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmsmr%2Fssd1351/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmsmr%2Fssd1351/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tmsmr","download_url":"https://codeload.github.com/tmsmr/ssd1351/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243732303,"owners_count":20338839,"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":["golang","oled","raspberry-pi","ssd1351"],"created_at":"2024-11-21T09:31:26.867Z","updated_at":"2026-05-20T09:07:50.805Z","avatar_url":"https://github.com/tmsmr.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SSD1351\n*Golang module for SSD1351-based OLED's on a Raspberry Pi*\n\n*This module was developed for https://www.waveshare.com/wiki/1.5inch_RGB_OLED_Module, but should work with other OLED's (128x128, RGB) based on the SSD1351 as well.*\n\n## Requirements\n- A user with access to `/dev/mem` or `/dev/gpiomem` (possibly `root`)\n- The `SSD1351` connected to SPI0 (`go-rpi` only supports SPI0 at the moment)\n\n## Example usage\n\n| RPi GPIO       | OLED |\n|----------------|------|\n| MOSI0 (GPIO10) | DIN  |\n| SCLK0 (GPIO11) | CLK  |\n| CE0 (GPIO8)    | CS   |\n| GPIO24         | DC   |\n| GPIO25         | RST  |\n\n ```go\nimport (\n\t\"time\"\n\t\"github.com/tmsmr/ssd1351\"\n    \"github.com/stianeikeland/go-rpio/v4\"\n)\n\n...\n\nrstPin := rpio.Pin(25)\ncsPin := rpio.Pin(8)\ndcPin := rpio.Pin(24)\noled, _ := ssd1351.Setup(rpio.Spi0, 0, rstPin, csPin, dcPin, true)\noled.Init()\ncolor := ssd1351.RGBto16bit(0xFF, 0x00, 0x00)\n_ = oled.DrawBlock(0, 0, 128, 128, color)\ntime.Sleep(500 * time.Millisecond)\noled.Shutdown()\n ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftmsmr%2Fssd1351","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftmsmr%2Fssd1351","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftmsmr%2Fssd1351/lists"}