finally the end of the road

This commit is contained in:
2026-04-02 22:20:07 +02:00
parent a30b9a9ba2
commit a14ebc3243
12 changed files with 621 additions and 827 deletions

12
composants/byPanda/LDR.py Normal file
View File

@@ -0,0 +1,12 @@
import RPi.GPIO as GPIO
LDR_PIN = 20
GPIO.setmode(GPIO.BCM)
GPIO.setup(LDR_PIN, GPIO.IN)
def lire_etat():
if GPIO.input(LDR_PIN) == GPIO.HIGH:
return "Nuit"
return "Jour"