mirror of
git://soft.sys114.com/WiringPi2-Python
synced 2025-12-19 02:58:41 +09:00
PiGlow fixes
This commit is contained in:
4
piglow.py
Normal file
4
piglow.py
Normal file
@@ -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)
|
||||
%}
|
||||
|
||||
BIN
wiringpi2.pyc
BIN
wiringpi2.pyc
Binary file not shown.
Reference in New Issue
Block a user