Browse Source

Merge pull request #9 from carlallen/patch-1

Add GPIO Pin 27
tags/3.0
Manuel83 GitHub 8 years ago
parent
commit
3727c1494e
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      modules/base_plugins/gpio_actor/__init__.py

+ 4
- 4
modules/base_plugins/gpio_actor/__init__.py View File

@@ -18,7 +18,7 @@ except Exception as e:
@cbpi.actor @cbpi.actor
class GPIOSimple(ActorBase): class GPIOSimple(ActorBase):


gpio = Property.Select("GPIO", options=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26])
gpio = Property.Select("GPIO", options=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27])


def init(self): def init(self):
GPIO.setup(int(self.gpio), GPIO.OUT) GPIO.setup(int(self.gpio), GPIO.OUT)
@@ -35,7 +35,7 @@ class GPIOSimple(ActorBase):
@cbpi.actor @cbpi.actor
class GPIOPWM(ActorBase): class GPIOPWM(ActorBase):


gpio = Property.Select("GPIO", options=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26])
gpio = Property.Select("GPIO", options=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27])
duty_cylce = Property.Number("Duty Cycle", configurable=True) duty_cylce = Property.Number("Duty Cycle", configurable=True)


p = None p = None
@@ -69,7 +69,7 @@ class GPIOPWM(ActorBase):
@cbpi.actor @cbpi.actor
class RelayBoard(ActorBase): class RelayBoard(ActorBase):


gpio = Property.Select("GPIO", options=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26])
gpio = Property.Select("GPIO", options=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27])


def init(self): def init(self):
GPIO.setup(int(self.gpio), GPIO.OUT) GPIO.setup(int(self.gpio), GPIO.OUT)
@@ -90,4 +90,4 @@ class Dummy(ActorBase):
print "ON" print "ON"


def off(self): def off(self):
print "OFF"
print "OFF"

Loading…
Cancel
Save