{"id":13613278,"url":"https://github.com/pdwerryhouse/max7219_8digit","last_synced_at":"2025-04-13T15:32:55.804Z","repository":{"id":51162245,"uuid":"85469968","full_name":"pdwerryhouse/max7219_8digit","owner":"pdwerryhouse","description":"Micropython driver for the max7219 with 8 x 7segment display","archived":false,"fork":false,"pushed_at":"2023-03-18T23:27:06.000Z","size":20,"stargazers_count":23,"open_issues_count":4,"forks_count":6,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-11-07T21:41:56.945Z","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":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pdwerryhouse.png","metadata":{"files":{"readme":"README.rst","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,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2017-03-19T11:14:30.000Z","updated_at":"2024-10-21T16:31:29.000Z","dependencies_parsed_at":"2024-01-29T19:30:26.241Z","dependency_job_id":"82fdea3c-4629-438e-8276-704362a48ef3","html_url":"https://github.com/pdwerryhouse/max7219_8digit","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/pdwerryhouse%2Fmax7219_8digit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pdwerryhouse%2Fmax7219_8digit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pdwerryhouse%2Fmax7219_8digit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pdwerryhouse%2Fmax7219_8digit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pdwerryhouse","download_url":"https://codeload.github.com/pdwerryhouse/max7219_8digit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248736071,"owners_count":21153530,"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:43.231Z","updated_at":"2025-04-13T15:32:55.533Z","avatar_url":"https://github.com/pdwerryhouse.png","language":"Python","funding_links":[],"categories":["Libraries","精选驱动库"],"sub_categories":["Display","显示类"],"readme":"\nThis is a micropython library for MAX7219 + 8 x 7digit display boards.\n\nI have tested it with both an ESP8266 and a ESP32, running micropython version 1.19.1.\n\nRequires a minimum of three spare GPIO lines to run SPI.\n\n\nExample of use:\n\n.. code:: python\n\n   # Connections:\n   # SCK (CLK) -\u003e GPIO4 (D2)\n   # MOSI (DIN) -\u003e GPIO2 (D4)\n   # SS (CS) -\u003e GPIO5 (D1)\n   \n   from machine import Pin, SPI\n   import max7219_8digit\n   \n   # the max7219 doesn't use the MISO, but unfortunately SoftSPI requires that\n   # we specify it anyway\n   spi = SoftSPI(baudrate=100000, polarity=1, phase=0, sck=Pin(4), mosi=Pin(2), miso=Pin(0))\n\n   ss = Pin(5, Pin.OUT)\n   \n   display = max7219_8digit.Display(spi, ss)\n   display.write_to_buffer('12345678')\n   display.display()\n   \n\nThere is also a write_to_buffer_with_dots method, which attempts to use the\ndisplay decimal points properly. Note that there are some rather big bugs in\nthis at the moment, do not put dots at the start of the string, or put two \nof them in a row.\n\n\n.. code:: python\n\n   # Connections:\n   # SCK (CLK) -\u003e GPIO4 (D2)\n   # MOSI (DIN) -\u003e GPIO2 (D4)\n   # SS (CS) -\u003e GPIO5 (D1)\n   \n   from machine import Pin, SPI\n   import max7219_8digit\n   \n   spi = SoftSPI(baudrate=100000, polarity=1, phase=0, sck=Pin(4), mosi=Pin(2), miso=Pin(0))\n\n   ss = Pin(5, Pin.OUT)\n   \n   display = max7219_8digit.Display(spi, ss)\n   display.write_to_buffer_with_dots('1234.56.78')\n   display.display()\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpdwerryhouse%2Fmax7219_8digit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpdwerryhouse%2Fmax7219_8digit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpdwerryhouse%2Fmax7219_8digit/lists"}