Raspberry Pi - Micro Dot pHAT

Micro Dot pHAT


INSTALL

apt-get install python3-microdotphat

Tests

from microdotphat import fill, clear, show, WIDTH, HEIGHT

clear()
show()

fill(1)
show()

#blink
import time
clear()

while True:
    fill(1)
    show()
    time.sleep(0.2)
    clear()
    show()
    time.sleep(0.2)

#scrolling
import time
from microdotphat import write_string, scroll, clear, show

clear()
write_string('HALLO WELT!!      ')

while True:
    scroll()
    show()
    time.sleep(0.05)