mirror of
https://github.com/RGBCube/GDUS
synced 2025-07-28 05:27:45 +00:00
Fix import
This commit is contained in:
parent
be1bb01bdf
commit
e69cec1b40
2 changed files with 5 additions and 3 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue