NodeMCU Projects: Difference between revisions
Content added Content deleted
Line 448: | Line 448: | ||
*Print the output on the LCD: |
*Print the output on the LCD: |
||
<syntaxhighlight lang="python"> |
<syntaxhighlight lang="python"> |
||
import time |
import time |
||
Line 463: | Line 464: | ||
time.sleep(2) |
time.sleep(2) |
||
lcd.clear() |
lcd.clear() |
||
</syntaxhighlight> |
|||
= MAX7219 based 8x8 LED Matrix = |
|||
<syntaxhighlight lang="python"> |
|||
from machine import Pin, SPI |
|||
import max7219 |
|||
spi = SPI(1, baudrate=10000000) |
|||
screen = max7219.Max7219(32, 8, spi, Pin(15)) |
|||
screen.text('ABCD', 0, 0, 1) |
|||
screen.show() |
|||
</syntaxhighlight> |
</syntaxhighlight> |
||