Skip to content

Commit

Permalink
Create raspberry_pi.py
Browse files Browse the repository at this point in the history
  • Loading branch information
KOSASIH authored Aug 16, 2024
1 parent 02e1714 commit bf2446f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions iot/device_drivers/raspberry_pi.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import RPi.GPIO as GPIO

class RaspberryPiDriver:
def __init__(self):
GPIO.setmode(GPIO.BCM)

def read_temperature(self):
# Read temperature sensor data
pass

def control_led(self, state):
# Control LED state
pass

0 comments on commit bf2446f

Please sign in to comment.