{"id":22253948,"url":"https://github.com/mcauser/circuitpython-feathers2neo-rgb-matrix","last_synced_at":"2025-03-25T12:26:38.997Z","repository":{"id":150620420,"uuid":"404030544","full_name":"mcauser/circuitpython-feathers2neo-rgb-matrix","owner":"mcauser","description":"CircuitPython library for FeatherS2 Neo RGB Matrix","archived":false,"fork":false,"pushed_at":"2021-09-07T15:38:31.000Z","size":914,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-30T11:28:11.688Z","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":"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,"publiccode":null,"codemeta":null}},"created_at":"2021-09-07T15:29:45.000Z","updated_at":"2021-09-08T03:21:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"f833db3c-9ecd-4482-a18a-868faa940354","html_url":"https://github.com/mcauser/circuitpython-feathers2neo-rgb-matrix","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/mcauser%2Fcircuitpython-feathers2neo-rgb-matrix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcauser%2Fcircuitpython-feathers2neo-rgb-matrix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcauser%2Fcircuitpython-feathers2neo-rgb-matrix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcauser%2Fcircuitpython-feathers2neo-rgb-matrix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mcauser","download_url":"https://codeload.github.com/mcauser/circuitpython-feathers2neo-rgb-matrix/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245460771,"owners_count":20619139,"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:21:16.189Z","updated_at":"2025-03-25T12:26:38.958Z","avatar_url":"https://github.com/mcauser.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CircuitPython FeatherS2 Neo RGB Matrix\n\nPorting the [TinyPICO 5x14 LOL RGB Shield library](https://github.com/mcauser/circuitpython-tinys2-lol-rgb-shield) to the [FeatherS2 Neo](https://unexpectedmaker.com/feathers2-neo) 5x5 matrix\n\n5x5 RGB Matrix power pin IO4, data pin IO21.\n\n## Demo\n\n![demo](docs/demo.gif)\n\n```python\nfrom matrix import *\ndisplay = MATRIX()\n\ndisplay.write('It Works!', RAINBOW)\ndisplay.power(False)\n```\n\n## Examples\n\n```python\nfrom matrix import *\ndisplay = MATRIX()\n\n# persist settings so you dont need to add them to each write() call\ndisplay.set_color(RED)\ndisplay.set_delay(SHORT_PAUSE)\ndisplay.set_boundary(CHAR_BOUNDARY)\n\n# strings inheriting settings\ndisplay.write('Hello World')\ndisplay.write('This is really cool', RED, SHORT_PAUSE)\n\n# providing a colour but not replacing settings\ndisplay.write('Red', RED)\ndisplay.write('Green', GREEN)\ndisplay.write('Blue', BLUE)\n\ndisplay.set_color(GREEN)\ndisplay.write('Green')\n\n# you can provide colours using a color tuple (r,g,b)\ndisplay.write('Bright Red', (255,0,0), SHORT_PAUSE)\ndisplay.write('Bright White', (255,255,255), SHORT_PAUSE)\n# congratulations, you are now blind for the next few minutes\n\n# you can write at different speeds\ndisplay.write('Slow', RED, LONG_PAUSE)\ndisplay.write('Fast', RED, MEDIUM_PAUSE)\ndisplay.write('Faster', RED, SHORT_PAUSE)\ndisplay.write('Fastest', RED, NO_PAUSE)\n\n# you can write in cycling colours by providing a list of color tuples\n# eg. [(r,g,b), (r,g,b), (r,g,b)]\n# colour cycles at word boundaries (spaces)\ndisplay.write('Red Blue Red Blue', [RED,BLUE], SHORT_PAUSE, WORD_BOUNDARY)\ndisplay.write('Red Green Blue', RGB, SHORT_PAUSE, WORD_BOUNDARY)\ndisplay.write('R G B R G B', RGB, SHORT_PAUSE, WORD_BOUNDARY)\ndisplay.write('Rainbow Coloured Words', RAINBOW, MEDIUM_PAUSE, WORD_BOUNDARY)\n\n# colour cycles at character boundaries\ndisplay.write('RGB', RGB, SHORT_PAUSE, CHAR_BOUNDARY)\ndisplay.write('Rainbow Coloured Letters', RAINBOW, MEDIUM_PAUSE, CHAR_BOUNDARY)\n\n# you can write bytes\ndisplay.write(b'Red')\ndisplay.write(bytearray(b'Red'))\n\n# you can write ints\ndisplay.write(1234, RAINBOW, MEDIUM_PAUSE, CHAR_BOUNDARY)\n\n# you can write floats\ndisplay.write(12.34, RAINBOW, MEDIUM_PAUSE, CHAR_BOUNDARY)\ndisplay.write(1/3, RAINBOW, MEDIUM_PAUSE, CHAR_BOUNDARY)\n\n# all supported ascii chars (32-127)\ndisplay.write(''.join(chr(i) for i in range(32,128)), RED, FAST)\n\n# unsupported chars\ndisplay.write(chr(31))   # \u003c 32 == hollow rect\ndisplay.write(chr(128))  # \u003e 127 == filled rect\n```\n\n## TomThumb font\n\nOriginal 3x5 font Brian Swetland.\n\nI've excluding ascii characters \u003c 32 and \u003e 127 to save space.\n\nEnlarged 10x:\n\n![10x](docs/tomthumb@10x.png)\n\nEnlarged 10x spaced apart:\n\n![10x spaced](docs/tomthumb-spaced@10x.png)\n\nActual size:\n\n![actual](docs/tomthumb.png)\n\nWas unable to add [Robey Pointer's](https://robey.lag.net/2010/01/23/tiny-monospace-font.html) improvements as it requires 6 lines and this matrix only has 5.\n\n## Links\n\n* [circuitpython.org](http://circuitpython.org)\n* [Download CircuitPython for FeatherS2 Neo](https://circuitpython.org/board/unexpectedmaker_feathers2_neo/)\n* [Buy a FeatherS2 Neo](https://unexpectedmaker.com/shop/feathers2neo-esp32s2)\n* [FeatherS2 Neo Getting Started](https://unexpectedmaker.com/feathers2-neo)\n* [CircuitPython TinyS2 version](https://github.com/mcauser/circuitpython-tinys2-lol-rgb-shield)\n* [MicroPython TinyPICO version](https://github.com/mcauser/micropython-tinypico-lol-rgb-shield)\n* [Arduino version](https://github.com/tinypico/tinypico-arduino)\n* [Brian Swetlands original 3x5 font](https://vt100.tarunz.org/#font)\n* [Robey Pointers TomThumb improvements](https://robey.lag.net/2010/01/23/tiny-monospace-font.html)\n\n## License\n\nLicensed under the [MIT License](http://opensource.org/licenses/MIT).\n\nCopyright (c) 2021 Mike Causer\n\nTomThumb font\n\nCopyright 1999 Brian Swetland - [CC0 License](https://creativecommons.org/share-your-work/public-domain/cc0/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmcauser%2Fcircuitpython-feathers2neo-rgb-matrix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmcauser%2Fcircuitpython-feathers2neo-rgb-matrix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmcauser%2Fcircuitpython-feathers2neo-rgb-matrix/lists"}