initialer commit

This commit is contained in:
2025-06-09 13:18:00 +02:00
commit 0f8507284f
7 changed files with 158 additions and 0 deletions

9
wind_sensor.py Normal file
View File

@@ -0,0 +1,9 @@
import RPi.GPIO as GPIO
class WindSensor:
def __init__(self, pin):
self.pin = pin
GPIO.setup(pin, GPIO.IN)
def read_data(self):
return GPIO.input(self.pin)