Mercurial > micropython-ht16k33
changeset 1:b9541fcf5aa4
Added a readme
| author | Radomir Dopieralski <sheep-devel@sheep.art.pl> |
|---|---|
| date | Thu, 05 May 2016 13:52:52 +0200 |
| parents | 5d326413d29a |
| children | 228650cd85d8 |
| files | README.rst |
| diffstat | 1 files changed, 23 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/README.rst Thu May 05 13:52:52 2016 +0200 @@ -0,0 +1,23 @@ +Micropython Library for the HT16K33-based LED Matrices +****************************************************** + +This is a library for using the I²C-based LED matrices with the HT16K33 chip. +It supports both 16x8 and 8x8 matrices. + +Example +======= + +This is an example for the ESP8266 port of Micropython:: + + from machine import I2C, Pin + import ht16k33 + i2c = I2C(sda=Pin(4), scl=Pin(5)) + display = ht16k33.Matrix8x8() + display.brightness(8) + display.blink_rate(2) + display.fill(True) + display.pixel(0, 0, False) + display.pixel(7, 0, False) + display.pixel(0, 7, False) + display.pixel(7, 7, False) + display.show()
