PiGlow fixes

This commit is contained in:
Philip Howard
2013-08-15 22:32:14 +01:00
parent 1a6514e356
commit 77a4244474
4 changed files with 13 additions and 0 deletions

4
piglow.py Normal file
View File

@@ -0,0 +1,4 @@
import wiringpi2 as wiringpi
io = wiringpi.GPIO(wiringpi.GPIO.WPI_MODE_PINS)
io.piGlowSetup()
io.piGlowLeg(1,100)

View File

@@ -218,5 +218,6 @@ extern unsigned int readNesJoystick (int joystick) ;
extern void piGlow1 (const int leg, const int ring, const int intensity) ;
extern void piGlowLeg (const int leg, const int intensity) ;
extern void piGlowRing (const int ring, const int intensity) ;
extern void piGlowSetup (int clear) ;
%include "wiringpi2-class.py"

View File

@@ -177,4 +177,12 @@ class GPIO(object):
return lcdPrintf(self,*args)
def lcdInit(self,*args):
return lcdInit(self,*args)
def piGlowSetup(self,*args):
return piGlowSetup(self,*args)
def piGlow1(self,*args):
return piGlow1(self,*args)
def piGlowLeg(self,*args):
return piGlowLeg(self,*args)
def piGlowRing(self,*args):
return piGlowRing(self,*args)
%}

Binary file not shown.