PiGlow fixes

pull/12/head
Philip Howard 12 years ago
parent 1a6514e356
commit 77a4244474

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

@ -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"

@ -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.
Loading…
Cancel
Save