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.props import Property
|
||||||
from modules.core.hardware import ActorBase
|
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
|
@cbpi.actor
|
||||||
class SampleActor(ActorBase):
|
class SampleActor(ActorBase):
|
||||||
#custom property
|
#custom property
|
||||||
|
|||||||
Reference in New Issue
Block a user