diff --git a/composants/byPanda/septsegments.py b/composants/byPanda/septsegments.py new file mode 100644 index 0000000..254b56c --- /dev/null +++ b/composants/byPanda/septsegments.py @@ -0,0 +1,22 @@ +import tm1637 +import time as t + +# attention : mode BOARD +display = tm1637.TM1637(clk=4, dio=17) + +display.brightness = 5 + + +def afficher_temperature(temperature): + print("Test affichage...") + + + try: + while True: + display.show(temperature) + print(temperature) + t.sleep(2) + + except KeyboardInterrupt: + display.show("----") + print("Stop") \ No newline at end of file