Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/JulienBacquart/micropython-max7219
Micropython library for a 8 digits 7-segment display based on the MAX7219.
https://github.com/JulienBacquart/micropython-max7219
Last synced: about 16 hours ago
JSON representation
Micropython library for a 8 digits 7-segment display based on the MAX7219.
- Host: GitHub
- URL: https://github.com/JulienBacquart/micropython-max7219
- Owner: JulienBacquart
- Created: 2017-06-11T16:11:52.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-06-11T16:19:06.000Z (over 7 years ago)
- Last Synced: 2024-04-22T12:34:15.371Z (7 months ago)
- Language: Python
- Size: 1000 Bytes
- Stars: 4
- Watchers: 1
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-mpython - micropython-max7219 - Driver for MAX7219 8-digit 7-segment LED modules. (精选驱动库 / 显示类)
- awesome-micropython - micropython-max7219 - Driver for MAX7219 8-digit 7-segment LED modules. (Libraries / Display)
README
Micropython library for a 8 digits 7-segment display based on the MAX7219.
Thanks to https://github.com/adafruit/micropython-adafruit-max7219 for getting me started.
# Wiring:
| ESP8266 | MAX7219 |
| --------- | ------- |
| HMOSI (GPIO13) | DIN |
| HSCLK (GPIO14) | CLK |
| I/O (GPIO15) | CS |The I/0 pin can be moved to any other pin.
I'm using the hardware SPI, but it can be moved to any other pin using the software SPI.
# Example of use:
from machine import Pin, SPI
import max7219hspi = SPI(1, baudrate=10000000, polarity=0, phase=0)
display = max7219.Max7219(hspi, Pin(15))
display.clear()
display.write_hex(0xAB9F)