{"id":13613344,"url":"https://github.com/AnthonyKNorman/MicroPython_SSD1306","last_synced_at":"2025-04-13T15:33:04.175Z","repository":{"id":215170600,"uuid":"71766240","full_name":"AnthonyKNorman/MicroPython_SSD1306","owner":"AnthonyKNorman","description":null,"archived":false,"fork":false,"pushed_at":"2016-10-24T08:06:16.000Z","size":7,"stargazers_count":10,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-07T21:42:01.277Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AnthonyKNorman.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2016-10-24T08:05:54.000Z","updated_at":"2024-09-18T01:11:23.000Z","dependencies_parsed_at":"2024-01-03T00:31:30.146Z","dependency_job_id":"e6be8bef-88a3-4e4a-988b-6bbff9c9e7d8","html_url":"https://github.com/AnthonyKNorman/MicroPython_SSD1306","commit_stats":null,"previous_names":["anthonyknorman/micropython_ssd1306"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnthonyKNorman%2FMicroPython_SSD1306","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnthonyKNorman%2FMicroPython_SSD1306/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnthonyKNorman%2FMicroPython_SSD1306/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnthonyKNorman%2FMicroPython_SSD1306/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AnthonyKNorman","download_url":"https://codeload.github.com/AnthonyKNorman/MicroPython_SSD1306/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248736125,"owners_count":21153537,"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-08-01T20:00:44.737Z","updated_at":"2025-04-13T15:33:03.885Z","avatar_url":"https://github.com/AnthonyKNorman.png","language":"Python","readme":"ESP8266 Micropython driver for SSD1306 OLED 128x64 display. \n\n**font5x7.fnt** is a 5 x 7 font file. It holds the font in pure binary and so uses only 480 bytes\nWhen the display needs a character it reads the five bytes it needs from the file rather than loading the whole font into memory\n\n**bmp.py** converts a 24-bit BITMAP file to a displayed image. Although this is a colour format, the image must be black and white.\n\n**lcd_gfx.py** is not my work. It came from here https://forum.micropython.org/viewtopic.php?t=195\n\n**icon.bmp** is the bitmap that is displayed in main.py. Be aware there is cuerrently no positioning, size check or resizing.\n\ninvoke the display with:\n\nfrom SSD1306 import SSD1306\n\nif you use different pins then you will need to specify these in the inital call\n\nd = PCD8544()\n\nd.poweron()\n\nd.init_display() # displays the Project Pages logo \n\nd.clear() # clears the display buffer\n\nd.display() # writes the buffer to the actual display\n\nd._row is the character row\n\nd._col is the character column\n\nd.p_char('x') \n* puts the character into the display buffer\n* advances _row and _col accordingly. They will wrap back to the top of the screen\n* requires d.display() to show it\n\nd.p_string('hello world') \n* prints the string to the display buffer\n* advances _row and _col accoridngly. They will wrap back to the top of the screen\n* requires d.display() to show it\n\nd.pixel(x,y,fill)\n* sets a pixel in the display buffer \n* this is for use by the lcd_gfx.py\n* this allows you to draw lines, rectangles, triangles and circles. Filled or not\n\nI have added a **main.py** that demonstrates the string printing and drawing capabilities\n\n\n","funding_links":[],"categories":["Libraries","精选驱动库"],"sub_categories":["Display","显示类"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAnthonyKNorman%2FMicroPython_SSD1306","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FAnthonyKNorman%2FMicroPython_SSD1306","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAnthonyKNorman%2FMicroPython_SSD1306/lists"}