wemos_matrix_led_shield
If you want to send us your comments, please do so. Thanks
More on comments
Wemos matrix LED shield
Follow the instructions on D1 mini shields matrix led shield
- Download and install the library
- Click on the green Clone or Download button
- Click on Download ZIP
- In the Arduino IDE click on Sketch | Include library | Add .ZIP Library… |
- In the window that opens goto the directory that contains WEMOS_Matrix_LED_Shield_Arduino_Library-master.zip
- Click on WEMOS_Matrix_LED_Shield_Arduino_Library-master.zip and click on OK
- The library is now installed
Commands
All commands are written as mled.command
Command | Example | Explanation |
---|---|---|
MLED(uint8_t _intensity=4, byte dataPin=D7, byte clockPin=D5); | Initial settings | |
void display(); | mled.display(); | Activate the set and unset LEDs |
void clear(); | mled.clear(); | Clear all dots |
void dot(uint8_t x, uint8_t y, bool draw=1); | mled.dot(4,7,1) | s is status: on (1) or off (0) |
volatile uint8_t disBuffer[n]={0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; | mled.disBuffer[3]={0x34}; | Set the displaybuffer, LEDs, for line 3 (of 0-7), in the example the LEDs 0,2 and 6 are on. If something like mled.disBuffer[3]={0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00} can be used is not clear at this moment. It seems not. We get an error: cannot convert '<brace-enclosed initializer list>' to 'volatile uint8_t {aka volatile unsigned char}' in assignment |
uint8_t intensity; | mled.intensity=4 | Set intensity to 4 out of the permitted values 0-7 for the whole display. This is a modulo so 4 is the same as 4+7 |
Main subjects on this wiki: Linux, Debian, HTML, Microcontrollers, Privacy
RSS
Disclaimer
Privacy statement
Bugs statement
Cookies
Copyright © : 2014 - 2024 Webevaluation.nl and the authors
Changes reserved.
wemos_matrix_led_shield.txt · Last modified: 19-10-2019 15:23 by wim