{"id":22253907,"url":"https://github.com/mcauser/micropython-st7735","last_synced_at":"2025-06-15T21:09:32.002Z","repository":{"id":232884561,"uuid":"750396696","full_name":"mcauser/micropython-st7735","owner":"mcauser","description":"🚧 WIP 🚧 MicroPython ST7735 TFT display driver","archived":false,"fork":false,"pushed_at":"2024-01-30T17:19:54.000Z","size":11,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-30T11:27:55.354Z","etag":null,"topics":[],"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/mcauser.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,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2024-01-30T15:12:33.000Z","updated_at":"2024-07-03T22:45:30.000Z","dependencies_parsed_at":"2024-04-12T03:43:38.709Z","dependency_job_id":null,"html_url":"https://github.com/mcauser/micropython-st7735","commit_stats":null,"previous_names":["mcauser/micropython-st7735"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcauser%2Fmicropython-st7735","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcauser%2Fmicropython-st7735/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcauser%2Fmicropython-st7735/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcauser%2Fmicropython-st7735/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mcauser","download_url":"https://codeload.github.com/mcauser/micropython-st7735/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245460728,"owners_count":20619126,"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-12-03T07:20:59.651Z","updated_at":"2025-03-25T12:26:31.951Z","avatar_url":"https://github.com/mcauser.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MicroPython ST7735R TFT display driver\n\n## WIP\n\nSee [test.py](/test.py) for examples\n\n#### special methods\n\n```python\ndef __init__(self, spi, dc, cs=None, rst=None, w=80, h=160, x=26, y=1, rot=0, inv=True, bgr=True)\n```\n\n#### private methods\n\n```python\ndef _init_rotate(self, r)\ndef _dc_low(self)\ndef _dc_high(self)\ndef _rst_low(self)\ndef _rst_high(self)\ndef _cs_low(self)\ndef _cs_high(self)\ndef _repeat_data_slow(self, data, count)\ndef _repeat_data(self, data, count)\ndef _repeat_data_bulk(self, data, count)\n```\n\n#### public methods\n\n```python\ndef init(self)\ndef hard_reset(self)\ndef soft_reset(self)\ndef rotate(self, r=0)\ndef cmd(self, command=None, data=None)\ndef data(self, data)\ndef sleep(self, sleep=False)\ndef power(self, on=None)\ndef invert(self, invert=True)\ndef set_window(self, x0, y0, x1, y1)\ndef fill(self, color=COLOR_WHITE)\ndef fill_slow(self, color=COLOR_WHITE)\ndef fill_bulk(self, color=COLOR_WHITE)\ndef color565(self, r, g, b)\ndef pixel(self, x, y, color)\ndef rect_outline(self, x, y, w, h, color)\ndef rect(self, x, y, w, h, color)\ndef circle(self, x, y, radius, color)\ndef circle_outline(self, x, y, radius, color)\ndef triangle_outline(x0, y0, x1, y1, x2, y2, color)\ndef line(self, x0, y0, x1, y1, color)\ndef hline(self, x, y, w, color)\ndef vline(self, x, y, h, color)\ndef text(self, x, y, string, font, color, size=1, x_wrap=None)\ndef char(self, x, y, char, font, color, sizex=1, sizey=1)\n```\n\nInspired by various ST7735 implementations and sources:\n\n* https://github.com/hosaka/micropython-st7735\n* https://github.com/boochow/MicroPython-ST7735\n* https://github.com/AnthonyKNorman/MicroPython_ST7735\n* https://github.com/GuyCarver/MicroPython/blob/master/lib/ST7735.py\n* https://github.com/adafruit/Adafruit-ST7735-Library\n* https://github.com/adafruit/Adafruit_CircuitPython_ST7735R\n* https://github.com/adafruit/Adafruit_CircuitPython_ST7735\n* http://www.sunshine2k.de/coding/java/TriangleRasterization/TriangleRasterization.html\n* https://www.instructables.com/Drawing-Filled-Circles-and-Triangles-With-MicroPyt/\n* https://github.com/devbis/st7789py_mpy/blob/master/st7789py.py\n* https://rgbcolorpicker.com/565\n* https://docs.micropython.org/en/latest/library/framebuf.html\n\n## License\n\nLicensed under the [MIT License](http://opensource.org/licenses/MIT).\n\nCopyright (c) 2024 Mike Causer\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmcauser%2Fmicropython-st7735","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmcauser%2Fmicropython-st7735","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmcauser%2Fmicropython-st7735/lists"}