mirror of
https://github.com/Manuel83/craftbeerpi3
synced 2026-09-19 15:59:07 +02:00
Import of RPi.GPIO is missing
@@ -5,6 +5,15 @@ from modules import cbpi
|
||||
from modules.core.props import Property
|
||||
from modules.core.hardware import ActorBase
|
||||
|
||||
try:
|
||||
import RPi.GPIO as GPIO
|
||||
|
||||
GPIO.setmode(GPIO.BCM)
|
||||
except Exception as e:
|
||||
print e
|
||||
pass
|
||||
|
||||
|
||||
@cbpi.actor
|
||||
class SampleActor(ActorBase):
|
||||
#custom property
|
||||
|
||||
Reference in New Issue
Block a user