Help comment
This commit is contained in:
+2
-3
@@ -14,20 +14,19 @@ try:
|
||||
):
|
||||
raise ImportError("RPi functionality disabled via environment/CLI flag.")
|
||||
import RPi.GPIO as GPIO
|
||||
|
||||
GPIO_AVAILABLE = True
|
||||
except (ImportError, RuntimeError):
|
||||
GPIO_AVAILABLE = False
|
||||
GPIO = None
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
class Raspi:
|
||||
CLOCKWISE = False
|
||||
COUNTER_CLOCKWISE = True
|
||||
|
||||
def __init__(self) -> None:
|
||||
# Power Pins: 2 5V; 9 GND
|
||||
self.in1 = 3
|
||||
self.in2 = 5
|
||||
self.in3 = 7
|
||||
|
||||
Reference in New Issue
Block a user