NodeMCU Projects: Difference between revisions

Line 448:
 
*Print the output on the LCD:
 
<syntaxhighlight lang="python">
import time
Line 463 ⟶ 464:
time.sleep(2)
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>