A few example programs are given with the driver and these you can find here:
https://github.com/uraich/MicroPython_IoTDemos/tree/master/drivers/ledArray
I added a new class matrix on top of mled which implements a method setLevel(value) taking a value (0..64) specifying how many leds should be switched on, starting from the bottom left led. This could be used to show the fill state of a tank: full: most leds on, empty: most leds off.
The cayenne version of the program
https://github.com/uraich/MicroPython_IoTDemos/blob/master/cayenne/ledArray/cayenneLedMatrix.py
subscribes to a Cayenne channel to get the value for the setLevel value. Try to run it with a slider providing values 0..64.
https://github.com/uraich/MicroPython_IoTDemos/blob/master/cayenne/ledArray/cayenneLedMatrix.py
-- %USERSIG{UliRaich - 2019-03-22}%
| I | Attachment | Action | Size | Date | Who | Comment |
|---|---|---|---|---|---|---|
| |
ledMatrix.png | manage | 138 K | 22 Mar 2019 - 14:34 | UnknownUser |