wallah pardon sur le coran de l eglise c'est pas de ma faute
This commit is contained in:
23
composants/test/7segments.py
Normal file
23
composants/test/7segments.py
Normal file
@@ -0,0 +1,23 @@
|
||||
import tm1637
|
||||
import time as t
|
||||
|
||||
# attention : mode BOARD
|
||||
display = tm1637.TM1637(clk=7, dio=11)
|
||||
|
||||
display.brightness(2)
|
||||
|
||||
print("Test affichage...")
|
||||
|
||||
try:
|
||||
while True:
|
||||
display.show("1234")
|
||||
print("1234")
|
||||
t.sleep(2)
|
||||
|
||||
display.show("0000")
|
||||
print("0000")
|
||||
t.sleep(2)
|
||||
|
||||
except KeyboardInterrupt:
|
||||
display.show("----")
|
||||
print("Stop")
|
||||
Reference in New Issue
Block a user