{"id":14967290,"url":"https://github.com/stlehmann/micropython-ssd1306","last_synced_at":"2025-04-07T11:07:14.354Z","repository":{"id":55633501,"uuid":"158106261","full_name":"stlehmann/micropython-ssd1306","owner":"stlehmann","description":"A fork of the driver for SSD1306 displays to make it installable via upip","archived":false,"fork":false,"pushed_at":"2023-01-08T08:17:34.000Z","size":10,"stargazers_count":142,"open_issues_count":9,"forks_count":45,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-31T10:04:28.435Z","etag":null,"topics":["micropython","micropython-driver"],"latest_commit_sha":null,"homepage":"","language":"Python","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/stlehmann.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":"2018-11-18T16:57:39.000Z","updated_at":"2025-02-26T12:53:13.000Z","dependencies_parsed_at":"2023-02-08T05:15:29.853Z","dependency_job_id":null,"html_url":"https://github.com/stlehmann/micropython-ssd1306","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stlehmann%2Fmicropython-ssd1306","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stlehmann%2Fmicropython-ssd1306/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stlehmann%2Fmicropython-ssd1306/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stlehmann%2Fmicropython-ssd1306/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stlehmann","download_url":"https://codeload.github.com/stlehmann/micropython-ssd1306/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247640462,"owners_count":20971557,"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":["micropython","micropython-driver"],"created_at":"2024-09-24T13:37:47.849Z","updated_at":"2025-04-07T11:07:14.326Z","avatar_url":"https://github.com/stlehmann.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# micropython-ssd1306\nThis is a fork of the driver for SSD1306 displays which is hosted in the\n[Micropython package](https://github.com/micropython/micropython). The purpose\nof this fork is to make the driver available on PyPi and thus installable via\nthe upip package manager.\n\n## Installation\nUse the upip package manager:\n\n    upip.install('micropython-ssd1306')\n\nIf your board or your computer doesn't have an active internet connection you\ncan also clone this project on your local drive and copy the *ssd1306.py* to\nyour board.\n\n## Example Usage\nThis shows an example usage on an *ESP32* board with an *SSD1306* display\nwith an resolution of 128x32 pixels. The display is connected via I2C. On the\n*ESP32* the I2C pins are: SDA: 23, SCL: 22.\n\nFirst we set up the I2C bus on our *ESP32* and scan for devices.\n\n    \u003e\u003e\u003e import machine\n    \u003e\u003e\u003e i2c = machine.I2C(sda=machine.Pin(23), scl=machine.Pin(22))\n    \u003e\u003e\u003e i2c.scan()\n    [60]\n\nThis shows us that there is a device on address 60 which is 3C in Hex. That is\nwhere our display is supposed to live. Now we create an object for our OLED\ndisplay.\n\n    \u003e\u003e\u003e from ssd1306 import SSD1306_I2C\n    \u003e\u003e\u003e oled = SSD1306_I2C(128, 32, i2c)\n\nThis is it. Now we can use our OLED display:\n\n    \u003e\u003e\u003e oled.fill(1)\n    \u003e\u003e\u003e oled.show()\n\nThis fills the whole display with white pixels. To clear the display do:\n\n    \u003e\u003e\u003e oled.fill(0)\n    \u003e\u003e\u003e oled.show()\n\nNow we can also write some text:\n\n    \u003e\u003e\u003e oled.text('Hello', 0, 0)\n    \u003e\u003e\u003e oled.text('World', 0, 10)\n    \u003e\u003e\u003e oled.show()\n\nFind more information on how to use the SSD1306 on the great [tutorial about\nthe OLED featherwing from Adafruit](https://learn.adafruit.com/adafruit-oled-featherwing/circuitpython#usage-6-4).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstlehmann%2Fmicropython-ssd1306","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstlehmann%2Fmicropython-ssd1306","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstlehmann%2Fmicropython-ssd1306/lists"}