{"id":13613242,"url":"https://github.com/AnthonyKNorman/MicroPython_ST7735","last_synced_at":"2025-04-13T15:32:53.188Z","repository":{"id":48155148,"uuid":"71766342","full_name":"AnthonyKNorman/MicroPython_ST7735","owner":"AnthonyKNorman","description":null,"archived":false,"fork":false,"pushed_at":"2016-11-03T10:54:27.000Z","size":89,"stargazers_count":25,"open_issues_count":0,"forks_count":8,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-08-02T20:45:18.680Z","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}},"created_at":"2016-10-24T08:06:54.000Z","updated_at":"2024-06-18T14:54:38.000Z","dependencies_parsed_at":"2022-08-25T18:21:12.865Z","dependency_job_id":null,"html_url":"https://github.com/AnthonyKNorman/MicroPython_ST7735","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/AnthonyKNorman%2FMicroPython_ST7735","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnthonyKNorman%2FMicroPython_ST7735/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnthonyKNorman%2FMicroPython_ST7735/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnthonyKNorman%2FMicroPython_ST7735/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AnthonyKNorman","download_url":"https://codeload.github.com/AnthonyKNorman/MicroPython_ST7735/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223592515,"owners_count":17170503,"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:42.419Z","updated_at":"2024-11-07T21:30:52.594Z","avatar_url":"https://github.com/AnthonyKNorman.png","language":"Python","readme":"# MicroPython_ST7735S\n\nLast update added support for a cheap 128x128 TFT display.\noffset - offsets the display by that number of pixels horizontally and vertically\nc_mode - Swaps around Blue and Red in the 565 colour packet. It seems some displays swap these.\n\nSample usage\n```python\nimport ST7735\n\n# height defaults to 160\nST7735.ST7735_TFTHEIGHT = 128\nspi = machine.SPI(1, baudrate=8000000, polarity=0, phase=0)\n\n# move image 3 pixels across and down\n# RGB is reversed = c_mode fixes that\nd = ST7735.ST7735(offset=3, c_mode='BGR')\nd.reset()\nd.begin()\nd._bground = 0xffff\nd.fill_screen(d._bground)\n```\n\nThis is for a 128 x 160 display that uses a different set of pins to the default\n```python\nimport ST7735\nspi = machine.SPI(1, baudrate=8000000, polarity=0, phase=0)\nd = ST7735.ST7735(spi, rst=4, ce=5, dc=16)\nd.reset()\nd.begin()\nd._bground = 0xffff\nd.fill_screen(d._bground)\n```\n\n.mpy versions are available in the releases\n","funding_links":[],"categories":["精选驱动库","Libraries"],"sub_categories":["显示类","Display"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAnthonyKNorman%2FMicroPython_ST7735","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FAnthonyKNorman%2FMicroPython_ST7735","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAnthonyKNorman%2FMicroPython_ST7735/lists"}