1
Fork 0
mirror of https://github.com/RGBCube/GDUS synced 2025-07-28 05:27:45 +00:00

Fix import

This commit is contained in:
RGBCube 2023-12-20 14:31:42 +03:00
parent be1bb01bdf
commit e69cec1b40
No known key found for this signature in database
2 changed files with 5 additions and 3 deletions

View file

@ -1,12 +1,14 @@
import os
from fastapi import FastAPI
from RPi import GPIO as gpio
import RPi.GPIO as gpio
LED_PIN = 17
led_state = False
gipo.setmode(gpio.BCM)
gpio.setmode(gpio.BCM)
gpio.setup(LED_PIN, gpio.OUT)
gpio.output(LED_PIN, int(led_state))
app = FastAPI()