mirror of
git://soft.sys114.com/WiringPi2-Python
synced 2026-02-10 18:18:07 +09:00
Function bindings for all the things
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -2,4 +2,4 @@ build/
|
|||||||
wiringpi2.egg-info/
|
wiringpi2.egg-info/
|
||||||
dist/
|
dist/
|
||||||
__pycache__
|
__pycache__
|
||||||
.pyc
|
*.pyc
|
||||||
|
|||||||
113
functions.txt
Normal file
113
functions.txt
Normal file
@@ -0,0 +1,113 @@
|
|||||||
|
extern unsigned int ds1302rtcRead (const int reg) ;
|
||||||
|
extern void ds1302rtcWrite (const int reg, const unsigned int data) ;
|
||||||
|
extern unsigned int ds1302ramRead (const int addr) ;
|
||||||
|
extern void ds1302ramWrite (const int addr, const unsigned int data) ;
|
||||||
|
extern void ds1302clockRead (int clockData [8]) ;
|
||||||
|
extern void ds1302clockWrite (const int clockData [8]) ;
|
||||||
|
extern void ds1302trickleCharge (const int diodes, const int resistors) ;
|
||||||
|
extern void ds1302setup (const int clockPin, const int dataPin, const int csPin) ;
|
||||||
|
extern void gertboardAnalogWrite (const int chan, const int value) ;
|
||||||
|
extern int gertboardAnalogRead (const int chan) ;
|
||||||
|
extern int gertboardSPISetup (void) ;
|
||||||
|
extern int gertboardAnalogSetup (const int pinBase) ;
|
||||||
|
extern void lcd128x64setOrigin (int x, int y) ;
|
||||||
|
extern void lcd128x64setOrientation (int orientation) ;
|
||||||
|
extern void lcd128x64orientCoordinates (int *x, int *y) ;
|
||||||
|
extern void lcd128x64getScreenSize (int *x, int *y) ;
|
||||||
|
extern void lcd128x64point (int x, int y, int colour) ;
|
||||||
|
extern void lcd128x64line (int x0, int y0, int x1, int y1, int colour) ;
|
||||||
|
extern void lcd128x64lineTo (int x, int y, int colour) ;
|
||||||
|
extern void lcd128x64rectangle (int x1, int y1, int x2, int y2, int colour, int filled) ;
|
||||||
|
extern void lcd128x64circle (int x, int y, int r, int colour, int filled) ;
|
||||||
|
extern void lcd128x64ellipse (int cx, int cy, int xRadius, int yRadius, int colour, int filled) ;
|
||||||
|
extern void lcd128x64putchar (int x, int y, int c, int bgCol, int fgCol) ;
|
||||||
|
extern void lcd128x64puts (int x, int y, const char *str, int bgCol, int fgCol) ;
|
||||||
|
extern void lcd128x64update (void) ;
|
||||||
|
extern void lcd128x64clear (int colour) ;
|
||||||
|
extern int lcd128x64setup (void) ;
|
||||||
|
extern void lcdHome (const int fd) ;
|
||||||
|
extern void lcdClear (const int fd) ;
|
||||||
|
extern void lcdDisplay (const int fd, int state) ;
|
||||||
|
extern void lcdCursor (const int fd, int state) ;
|
||||||
|
extern void lcdCursorBlink (const int fd, int state) ;
|
||||||
|
extern void lcdSendCommand (const int fd, unsigned char command) ;
|
||||||
|
extern void lcdPosition (const int fd, int x, int y) ;
|
||||||
|
extern void lcdCharDef (const int fd, int index, unsigned char data [8]) ;
|
||||||
|
extern void lcdPutchar (const int fd, unsigned char data) ;
|
||||||
|
extern void lcdPuts (const int fd, const char *string) ;
|
||||||
|
extern void lcdPrintf (const int fd, const char *message, ...) ;
|
||||||
|
extern int lcdInit (const int rows, const int cols, const int bits,
|
||||||
|
extern int piFaceSetup (const int pinBase) ;
|
||||||
|
extern int setupNesJoystick (int dPin, int cPin, int lPin) ;
|
||||||
|
extern unsigned int readNesJoystick (int joystick) ;
|
||||||
|
extern int doExtension (char *progName, char *extensionData) ;
|
||||||
|
extern int mcp23008Setup (const int pinBase, const int i2cAddress) ;
|
||||||
|
extern int mcp23016Setup (const int pinBase, const int i2cAddress) ;
|
||||||
|
extern int mcp23017Setup (const int pinBase, const int i2cAddress) ;
|
||||||
|
extern int mcp23s08Setup (const int pinBase, const int spiPort, const int devId) ;
|
||||||
|
extern int mcp23s17Setup (int pinBase, int spiPort, int devId) ;
|
||||||
|
extern int mcp3002Setup (int pinBase, int spiChannel) ;
|
||||||
|
extern int mcp3422Setup (int pinBase, int i2cAddress, int channels, int sampleRate, int gain) ;
|
||||||
|
extern int mcp4802Setup (int pinBase, int spiChannel) ;
|
||||||
|
extern int pcf8574Setup (const int pinBase, const int i2cAddress) ;
|
||||||
|
extern int pcf8591Setup (const int pinBase, const int i2cAddress) ;
|
||||||
|
extern int softPwmCreate (int pin, int value, int range) ;
|
||||||
|
extern void softPwmWrite (int pin, int value) ;
|
||||||
|
extern void softServoWrite (int pin, int value) ;
|
||||||
|
extern int softServoSetup (int p0, int p1, int p2, int p3, int p4, int p5, int p6, int p7) ;
|
||||||
|
extern int softToneCreate (int pin) ;
|
||||||
|
extern void softToneWrite (int pin, int freq) ;
|
||||||
|
extern int sr595Setup (const int pinBase, const int numPins,
|
||||||
|
extern int wiringPiFailure (int fatal, const char *message, ...) ;
|
||||||
|
extern struct wiringPiNodeStruct *wiringPiNewNode (int pinBase, int numPins) ;
|
||||||
|
extern int wiringPiSetup (void) ;
|
||||||
|
extern int wiringPiSetupSys (void) ;
|
||||||
|
extern int wiringPiSetupGpio (void) ;
|
||||||
|
extern int wiringPiSetupPhys (void) ;
|
||||||
|
extern void pinMode (int pin, int mode) ;
|
||||||
|
extern void pullUpDnControl (int pin, int pud) ;
|
||||||
|
extern int digitalRead (int pin) ;
|
||||||
|
extern void digitalWrite (int pin, int value) ;
|
||||||
|
extern void pwmWrite (int pin, int value) ;
|
||||||
|
extern int analogRead (int pin) ;
|
||||||
|
extern void analogWrite (int pin, int value) ;
|
||||||
|
extern int wiringPiSetupPiFace (void) ;
|
||||||
|
extern int wiringPiSetupPiFaceForGpioProg (void) ; // Don't use this - for gpio program only
|
||||||
|
extern int piBoardRev (void) ;
|
||||||
|
extern int wpiPinToGpio (int wpiPin) ;
|
||||||
|
extern int physPinToGpio (int physPin) ;
|
||||||
|
extern void setPadDrive (int group, int value) ;
|
||||||
|
extern int getAlt (int pin) ;
|
||||||
|
extern void digitalWriteByte (int value) ;
|
||||||
|
extern void pwmSetMode (int mode) ;
|
||||||
|
extern void pwmSetRange (unsigned int range) ;
|
||||||
|
extern void pwmSetClock (int divisor) ;
|
||||||
|
extern void gpioClockSet (int pin, int freq) ;
|
||||||
|
extern int waitForInterrupt (int pin, int mS) ;
|
||||||
|
extern int wiringPiISR (int pin, int mode, void (*function)(void)) ;
|
||||||
|
extern int piThreadCreate (void *(*fn)(void *)) ;
|
||||||
|
extern void piLock (int key) ;
|
||||||
|
extern void piUnlock (int key) ;
|
||||||
|
extern int piHiPri (const int pri) ;
|
||||||
|
extern void delay (unsigned int howLong) ;
|
||||||
|
extern void delayMicroseconds (unsigned int howLong) ;
|
||||||
|
extern unsigned int millis (void) ;
|
||||||
|
extern unsigned int micros (void) ;
|
||||||
|
extern int wiringPiI2CRead (int fd) ;
|
||||||
|
extern int wiringPiI2CReadReg8 (int fd, int reg) ;
|
||||||
|
extern int wiringPiI2CReadReg16 (int fd, int reg) ;
|
||||||
|
extern int wiringPiI2CWrite (int fd, int data) ;
|
||||||
|
extern int wiringPiI2CWriteReg8 (int fd, int reg, int data) ;
|
||||||
|
extern int wiringPiI2CWriteReg16 (int fd, int reg, int data) ;
|
||||||
|
extern int wiringPiI2CSetupInterface (const char *device, int devId) ;
|
||||||
|
extern int wiringPiI2CSetup (const int devId) ;
|
||||||
|
extern int serialOpen (const char *device, const int baud) ;
|
||||||
|
extern void serialClose (const int fd) ;
|
||||||
|
extern void serialFlush (const int fd) ;
|
||||||
|
extern void serialPutchar (const int fd, const unsigned char c) ;
|
||||||
|
extern void serialPuts (const int fd, const char *s) ;
|
||||||
|
extern void serialPrintf (const int fd, const char *message, ...) ;
|
||||||
|
extern int serialDataAvail (const int fd) ;
|
||||||
|
extern int serialGetchar (const int fd) ;
|
||||||
|
extern uint8_t shiftIn (uint8_t dPin, uint8_t cPin, uint8_t order) ;
|
||||||
|
extern void shiftOut (uint8_t dPin, uint8_t cPin, uint8_t order, uint8_t val) ;
|
||||||
131
wiringpi.i
131
wiringpi.i
@@ -1,29 +1,37 @@
|
|||||||
%module wiringpi2
|
%module wiringpi2
|
||||||
|
|
||||||
%{
|
%{
|
||||||
#include "WiringPi/devLib/font.h"
|
#include "WiringPi/wiringPi/wiringPi.h"
|
||||||
#include "WiringPi/devLib/maxdetect.h"
|
#include "WiringPi/wiringPi/wiringPiSPI.h"
|
||||||
#include "WiringPi/devLib/ds1302.h"
|
#include "WiringPi/wiringPi/wiringPiI2C.h"
|
||||||
#include "WiringPi/devLib/gertboard.h"
|
#include "WiringPi/wiringPi/wiringSerial.h"
|
||||||
#include "WiringPi/devLib/lcd.h"
|
#include "WiringPi/wiringPi/wiringShift.h"
|
||||||
#include "WiringPi/devLib/lcd128x64.h"
|
|
||||||
#include "WiringPi/wiringPi/mcp23008.h"
|
|
||||||
#include "WiringPi/wiringPi/mcp23017.h"
|
#include "WiringPi/wiringPi/mcp23017.h"
|
||||||
|
#include "WiringPi/wiringPi/mcp4802.h"
|
||||||
|
#include "WiringPi/wiringPi/mcp3422.h"
|
||||||
#include "WiringPi/wiringPi/mcp23s08.h"
|
#include "WiringPi/wiringPi/mcp23s08.h"
|
||||||
#include "WiringPi/wiringPi/mcp23s17.h"
|
#include "WiringPi/wiringPi/mcp23008.h"
|
||||||
#include "WiringPi/wiringPi/mcp23x0817.h"
|
|
||||||
#include "WiringPi/wiringPi/mcp23x08.h"
|
#include "WiringPi/wiringPi/mcp23x08.h"
|
||||||
#include "WiringPi/devLib/piFace.h"
|
#include "WiringPi/wiringPi/mcp23016.h"
|
||||||
#include "WiringPi/devLib/piNes.h"
|
#include "WiringPi/wiringPi/mcp3002.h"
|
||||||
|
#include "WiringPi/wiringPi/mcp23016reg.h"
|
||||||
|
#include "WiringPi/wiringPi/mcp23x0817.h"
|
||||||
|
#include "WiringPi/wiringPi/mcp23s17.h"
|
||||||
|
#include "WiringPi/wiringPi/pcf8574.h"
|
||||||
|
#include "WiringPi/wiringPi/pcf8591.h"
|
||||||
|
#include "WiringPi/wiringPi/drc.h"
|
||||||
#include "WiringPi/wiringPi/softPwm.h"
|
#include "WiringPi/wiringPi/softPwm.h"
|
||||||
#include "WiringPi/wiringPi/softServo.h"
|
#include "WiringPi/wiringPi/softServo.h"
|
||||||
#include "WiringPi/wiringPi/softTone.h"
|
#include "WiringPi/wiringPi/softTone.h"
|
||||||
#include "WiringPi/wiringPi/sr595.h"
|
#include "WiringPi/wiringPi/sr595.h"
|
||||||
#include "WiringPi/wiringPi/wiringPi.h"
|
#include "WiringPi/devLib/gertboard.h"
|
||||||
#include "WiringPi/wiringPi/wiringPiI2C.h"
|
#include "WiringPi/devLib/lcd128x64.h"
|
||||||
#include "WiringPi/wiringPi/wiringPiSPI.h"
|
#include "WiringPi/devLib/font.h"
|
||||||
#include "WiringPi/wiringPi/wiringSerial.h"
|
#include "WiringPi/devLib/lcd.h"
|
||||||
#include "WiringPi/wiringPi/wiringShift.h"
|
#include "WiringPi/devLib/maxdetect.h"
|
||||||
|
#include "WiringPi/devLib/piFace.h"
|
||||||
|
#include "WiringPi/devLib/ds1302.h"
|
||||||
|
#include "WiringPi/devLib/piNes.h"
|
||||||
%}
|
%}
|
||||||
|
|
||||||
%apply unsigned char { uint8_t };
|
%apply unsigned char { uint8_t };
|
||||||
@@ -35,7 +43,7 @@ extern int wiringPiSetupSys (void) ;
|
|||||||
extern int wiringPiSetupGpio (void) ;
|
extern int wiringPiSetupGpio (void) ;
|
||||||
extern int wiringPiSetupPhys (void) ;
|
extern int wiringPiSetupPhys (void) ;
|
||||||
|
|
||||||
extern int piFaceSetup (int pinbase) ;
|
extern int piFaceSetup (const int pinBase) ;
|
||||||
|
|
||||||
extern void pinMode (int pin, int mode) ;
|
extern void pinMode (int pin, int mode) ;
|
||||||
extern void pullUpDnControl (int pin, int pud) ;
|
extern void pullUpDnControl (int pin, int pud) ;
|
||||||
@@ -81,14 +89,14 @@ extern unsigned int micros (void) ;
|
|||||||
|
|
||||||
// WiringSerial
|
// WiringSerial
|
||||||
|
|
||||||
extern int serialOpen (char *device, int baud) ;
|
extern int serialOpen (const char *device, const int baud) ;
|
||||||
extern void serialClose (int fd) ;
|
extern void serialClose (const int fd) ;
|
||||||
extern void serialFlush (int fd) ;
|
extern void serialFlush (const int fd) ;
|
||||||
extern void serialPutchar (int fd, unsigned char c) ;
|
extern void serialPutchar (const int fd, const unsigned char c) ;
|
||||||
extern void serialPuts (int fd, char *s) ;
|
extern void serialPuts (const int fd, const char *s) ;
|
||||||
extern void serialPrintf (int fd, char *message, ...) ;
|
extern void serialPrintf (const int fd, const char *message, ...) ;
|
||||||
extern int serialDataAvail (int fd) ;
|
extern int serialDataAvail (const int fd) ;
|
||||||
extern int serialGetchar (int fd) ;
|
extern int serialGetchar (const int fd) ;
|
||||||
|
|
||||||
// Shifting
|
// Shifting
|
||||||
|
|
||||||
@@ -134,24 +142,73 @@ extern int softServoSetup (int p0, int p1, int p2, int p3, int p4, int p5, int
|
|||||||
extern int softPwmCreate (int pin, int value, int range) ;
|
extern int softPwmCreate (int pin, int value, int range) ;
|
||||||
extern void softPwmWrite (int pin, int value) ;
|
extern void softPwmWrite (int pin, int value) ;
|
||||||
|
|
||||||
|
// MCP and stuff
|
||||||
|
|
||||||
|
extern int mcp23008Setup (const int pinBase, const int i2cAddress) ;
|
||||||
|
extern int mcp23016Setup (const int pinBase, const int i2cAddress) ;
|
||||||
|
extern int mcp23017Setup (const int pinBase, const int i2cAddress) ;
|
||||||
|
extern int mcp23s08Setup (const int pinBase, const int spiPort, const int devId) ;
|
||||||
extern int mcp23s17Setup (int pinBase, int spiPort, int devId) ;
|
extern int mcp23s17Setup (int pinBase, int spiPort, int devId) ;
|
||||||
extern int mcp23017Setup (int pinBase, int i2cAddress) ;
|
extern int mcp3002Setup (int pinBase, int spiChannel) ;
|
||||||
|
extern int mcp3422Setup (int pinBase, int i2cAddress, int channels, int sampleRate, int gain) ;
|
||||||
extern int mcp23s08Setup (int pinBase, int spiPort, int devId) ;
|
extern int mcp4802Setup (int pinBase, int spiChannel) ;
|
||||||
extern int mcp23008Setup (int pinBase, int i2cAddress) ;
|
extern int pcf8574Setup (const int pinBase, const int i2cAddress) ;
|
||||||
|
extern int pcf8591Setup (const int pinBase, const int i2cAddress) ;
|
||||||
|
|
||||||
extern int sr595Setup (int pinBase, int numPins, int dataPin, int clockPin, int latchPin) ;
|
extern int sr595Setup (int pinBase, int numPins, int dataPin, int clockPin, int latchPin) ;
|
||||||
|
|
||||||
extern void lcdHome (int fd) ;
|
// LCD
|
||||||
extern void lcdClear (int fd) ;
|
extern void lcdHome (const int fd) ;
|
||||||
extern void lcdSendCommand (int fd, uint8_t command) ;
|
extern void lcdClear (const int fd) ;
|
||||||
extern void lcdPosition (int fd, int x, int y) ;
|
extern void lcdDisplay (const int fd, int state) ;
|
||||||
extern void lcdPutchar (int fd, uint8_t data) ;
|
extern void lcdCursor (const int fd, int state) ;
|
||||||
extern void lcdPuts (int fd, char *string) ;
|
extern void lcdCursorBlink (const int fd, int state) ;
|
||||||
extern void lcdPrintf (int fd, char *message, ...) ;
|
extern void lcdSendCommand (const int fd, unsigned char command) ;
|
||||||
|
extern void lcdPosition (const int fd, int x, int y) ;
|
||||||
|
extern void lcdCharDef (const int fd, int index, unsigned char data [8]) ;
|
||||||
|
extern void lcdPutchar (const int fd, unsigned char data) ;
|
||||||
|
extern void lcdPuts (const int fd, const char *string) ;
|
||||||
|
extern void lcdPrintf (const int fd, const char *message, ...) ;
|
||||||
extern int lcdInit (int rows, int cols, int bits, int rs, int strb,
|
extern int lcdInit (int rows, int cols, int bits, int rs, int strb,
|
||||||
int d0, int d1, int d2, int d3, int d4, int d5, int d6, int d7) ;
|
int d0, int d1, int d2, int d3, int d4, int d5, int d6, int d7) ;
|
||||||
|
|
||||||
|
// ds1302
|
||||||
|
extern unsigned int ds1302rtcRead (const int reg) ;
|
||||||
|
extern void ds1302rtcWrite (const int reg, const unsigned int data) ;
|
||||||
|
extern unsigned int ds1302ramRead (const int addr) ;
|
||||||
|
extern void ds1302ramWrite (const int addr, const unsigned int data) ;
|
||||||
|
extern void ds1302clockRead (int clockData [8]) ;
|
||||||
|
extern void ds1302clockWrite (const int clockData [8]) ;
|
||||||
|
extern void ds1302trickleCharge (const int diodes, const int resistors) ;
|
||||||
|
extern void ds1302setup (const int clockPin, const int dataPin, const int csPin) ;
|
||||||
|
|
||||||
|
// Gertboard
|
||||||
|
extern void gertboardAnalogWrite (const int chan, const int value) ;
|
||||||
|
extern int gertboardAnalogRead (const int chan) ;
|
||||||
|
extern int gertboardSPISetup (void) ;
|
||||||
|
extern int gertboardAnalogSetup (const int pinBase) ;
|
||||||
|
|
||||||
|
// LCD128x64
|
||||||
|
extern void lcd128x64setOrigin (int x, int y) ;
|
||||||
|
extern void lcd128x64setOrientation (int orientation) ;
|
||||||
|
extern void lcd128x64orientCoordinates (int *x, int *y) ;
|
||||||
|
extern void lcd128x64getScreenSize (int *x, int *y) ;
|
||||||
|
extern void lcd128x64point (int x, int y, int colour) ;
|
||||||
|
extern void lcd128x64line (int x0, int y0, int x1, int y1, int colour) ;
|
||||||
|
extern void lcd128x64lineTo (int x, int y, int colour) ;
|
||||||
|
extern void lcd128x64rectangle (int x1, int y1, int x2, int y2, int colour, int filled) ;
|
||||||
|
extern void lcd128x64circle (int x, int y, int r, int colour, int filled) ;
|
||||||
|
extern void lcd128x64ellipse (int cx, int cy, int xRadius, int yRadius, int colour, int filled) ;
|
||||||
|
extern void lcd128x64putchar (int x, int y, int c, int bgCol, int fgCol) ;
|
||||||
|
extern void lcd128x64puts (int x, int y, const char *str, int bgCol, int fgCol) ;
|
||||||
|
extern void lcd128x64update (void) ;
|
||||||
|
extern void lcd128x64clear (int colour) ;
|
||||||
|
extern int lcd128x64setup (void) ;
|
||||||
|
|
||||||
|
// NES Joystick
|
||||||
|
extern int setupNesJoystick (int dPin, int cPin, int lPin) ;
|
||||||
|
extern unsigned int readNesJoystick (int joystick) ;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%include "wiringpi2-class.py"
|
%include "wiringpi2-class.py"
|
||||||
|
|||||||
168
wiringpi2.py
168
wiringpi2.py
@@ -296,9 +296,13 @@ def softPwmWrite(*args):
|
|||||||
return _wiringpi2.softPwmWrite(*args)
|
return _wiringpi2.softPwmWrite(*args)
|
||||||
softPwmWrite = _wiringpi2.softPwmWrite
|
softPwmWrite = _wiringpi2.softPwmWrite
|
||||||
|
|
||||||
def mcp23s17Setup(*args):
|
def mcp23008Setup(*args):
|
||||||
return _wiringpi2.mcp23s17Setup(*args)
|
return _wiringpi2.mcp23008Setup(*args)
|
||||||
mcp23s17Setup = _wiringpi2.mcp23s17Setup
|
mcp23008Setup = _wiringpi2.mcp23008Setup
|
||||||
|
|
||||||
|
def mcp23016Setup(*args):
|
||||||
|
return _wiringpi2.mcp23016Setup(*args)
|
||||||
|
mcp23016Setup = _wiringpi2.mcp23016Setup
|
||||||
|
|
||||||
def mcp23017Setup(*args):
|
def mcp23017Setup(*args):
|
||||||
return _wiringpi2.mcp23017Setup(*args)
|
return _wiringpi2.mcp23017Setup(*args)
|
||||||
@@ -308,9 +312,29 @@ def mcp23s08Setup(*args):
|
|||||||
return _wiringpi2.mcp23s08Setup(*args)
|
return _wiringpi2.mcp23s08Setup(*args)
|
||||||
mcp23s08Setup = _wiringpi2.mcp23s08Setup
|
mcp23s08Setup = _wiringpi2.mcp23s08Setup
|
||||||
|
|
||||||
def mcp23008Setup(*args):
|
def mcp23s17Setup(*args):
|
||||||
return _wiringpi2.mcp23008Setup(*args)
|
return _wiringpi2.mcp23s17Setup(*args)
|
||||||
mcp23008Setup = _wiringpi2.mcp23008Setup
|
mcp23s17Setup = _wiringpi2.mcp23s17Setup
|
||||||
|
|
||||||
|
def mcp3002Setup(*args):
|
||||||
|
return _wiringpi2.mcp3002Setup(*args)
|
||||||
|
mcp3002Setup = _wiringpi2.mcp3002Setup
|
||||||
|
|
||||||
|
def mcp3422Setup(*args):
|
||||||
|
return _wiringpi2.mcp3422Setup(*args)
|
||||||
|
mcp3422Setup = _wiringpi2.mcp3422Setup
|
||||||
|
|
||||||
|
def mcp4802Setup(*args):
|
||||||
|
return _wiringpi2.mcp4802Setup(*args)
|
||||||
|
mcp4802Setup = _wiringpi2.mcp4802Setup
|
||||||
|
|
||||||
|
def pcf8574Setup(*args):
|
||||||
|
return _wiringpi2.pcf8574Setup(*args)
|
||||||
|
pcf8574Setup = _wiringpi2.pcf8574Setup
|
||||||
|
|
||||||
|
def pcf8591Setup(*args):
|
||||||
|
return _wiringpi2.pcf8591Setup(*args)
|
||||||
|
pcf8591Setup = _wiringpi2.pcf8591Setup
|
||||||
|
|
||||||
def sr595Setup(*args):
|
def sr595Setup(*args):
|
||||||
return _wiringpi2.sr595Setup(*args)
|
return _wiringpi2.sr595Setup(*args)
|
||||||
@@ -324,6 +348,18 @@ def lcdClear(*args):
|
|||||||
return _wiringpi2.lcdClear(*args)
|
return _wiringpi2.lcdClear(*args)
|
||||||
lcdClear = _wiringpi2.lcdClear
|
lcdClear = _wiringpi2.lcdClear
|
||||||
|
|
||||||
|
def lcdDisplay(*args):
|
||||||
|
return _wiringpi2.lcdDisplay(*args)
|
||||||
|
lcdDisplay = _wiringpi2.lcdDisplay
|
||||||
|
|
||||||
|
def lcdCursor(*args):
|
||||||
|
return _wiringpi2.lcdCursor(*args)
|
||||||
|
lcdCursor = _wiringpi2.lcdCursor
|
||||||
|
|
||||||
|
def lcdCursorBlink(*args):
|
||||||
|
return _wiringpi2.lcdCursorBlink(*args)
|
||||||
|
lcdCursorBlink = _wiringpi2.lcdCursorBlink
|
||||||
|
|
||||||
def lcdSendCommand(*args):
|
def lcdSendCommand(*args):
|
||||||
return _wiringpi2.lcdSendCommand(*args)
|
return _wiringpi2.lcdSendCommand(*args)
|
||||||
lcdSendCommand = _wiringpi2.lcdSendCommand
|
lcdSendCommand = _wiringpi2.lcdSendCommand
|
||||||
@@ -332,6 +368,10 @@ def lcdPosition(*args):
|
|||||||
return _wiringpi2.lcdPosition(*args)
|
return _wiringpi2.lcdPosition(*args)
|
||||||
lcdPosition = _wiringpi2.lcdPosition
|
lcdPosition = _wiringpi2.lcdPosition
|
||||||
|
|
||||||
|
def lcdCharDef(*args):
|
||||||
|
return _wiringpi2.lcdCharDef(*args)
|
||||||
|
lcdCharDef = _wiringpi2.lcdCharDef
|
||||||
|
|
||||||
def lcdPutchar(*args):
|
def lcdPutchar(*args):
|
||||||
return _wiringpi2.lcdPutchar(*args)
|
return _wiringpi2.lcdPutchar(*args)
|
||||||
lcdPutchar = _wiringpi2.lcdPutchar
|
lcdPutchar = _wiringpi2.lcdPutchar
|
||||||
@@ -347,6 +387,122 @@ lcdPrintf = _wiringpi2.lcdPrintf
|
|||||||
def lcdInit(*args):
|
def lcdInit(*args):
|
||||||
return _wiringpi2.lcdInit(*args)
|
return _wiringpi2.lcdInit(*args)
|
||||||
lcdInit = _wiringpi2.lcdInit
|
lcdInit = _wiringpi2.lcdInit
|
||||||
|
|
||||||
|
def ds1302rtcRead(*args):
|
||||||
|
return _wiringpi2.ds1302rtcRead(*args)
|
||||||
|
ds1302rtcRead = _wiringpi2.ds1302rtcRead
|
||||||
|
|
||||||
|
def ds1302rtcWrite(*args):
|
||||||
|
return _wiringpi2.ds1302rtcWrite(*args)
|
||||||
|
ds1302rtcWrite = _wiringpi2.ds1302rtcWrite
|
||||||
|
|
||||||
|
def ds1302ramRead(*args):
|
||||||
|
return _wiringpi2.ds1302ramRead(*args)
|
||||||
|
ds1302ramRead = _wiringpi2.ds1302ramRead
|
||||||
|
|
||||||
|
def ds1302ramWrite(*args):
|
||||||
|
return _wiringpi2.ds1302ramWrite(*args)
|
||||||
|
ds1302ramWrite = _wiringpi2.ds1302ramWrite
|
||||||
|
|
||||||
|
def ds1302clockRead(*args):
|
||||||
|
return _wiringpi2.ds1302clockRead(*args)
|
||||||
|
ds1302clockRead = _wiringpi2.ds1302clockRead
|
||||||
|
|
||||||
|
def ds1302clockWrite(*args):
|
||||||
|
return _wiringpi2.ds1302clockWrite(*args)
|
||||||
|
ds1302clockWrite = _wiringpi2.ds1302clockWrite
|
||||||
|
|
||||||
|
def ds1302trickleCharge(*args):
|
||||||
|
return _wiringpi2.ds1302trickleCharge(*args)
|
||||||
|
ds1302trickleCharge = _wiringpi2.ds1302trickleCharge
|
||||||
|
|
||||||
|
def ds1302setup(*args):
|
||||||
|
return _wiringpi2.ds1302setup(*args)
|
||||||
|
ds1302setup = _wiringpi2.ds1302setup
|
||||||
|
|
||||||
|
def gertboardAnalogWrite(*args):
|
||||||
|
return _wiringpi2.gertboardAnalogWrite(*args)
|
||||||
|
gertboardAnalogWrite = _wiringpi2.gertboardAnalogWrite
|
||||||
|
|
||||||
|
def gertboardAnalogRead(*args):
|
||||||
|
return _wiringpi2.gertboardAnalogRead(*args)
|
||||||
|
gertboardAnalogRead = _wiringpi2.gertboardAnalogRead
|
||||||
|
|
||||||
|
def gertboardSPISetup():
|
||||||
|
return _wiringpi2.gertboardSPISetup()
|
||||||
|
gertboardSPISetup = _wiringpi2.gertboardSPISetup
|
||||||
|
|
||||||
|
def gertboardAnalogSetup(*args):
|
||||||
|
return _wiringpi2.gertboardAnalogSetup(*args)
|
||||||
|
gertboardAnalogSetup = _wiringpi2.gertboardAnalogSetup
|
||||||
|
|
||||||
|
def lcd128x64setOrigin(*args):
|
||||||
|
return _wiringpi2.lcd128x64setOrigin(*args)
|
||||||
|
lcd128x64setOrigin = _wiringpi2.lcd128x64setOrigin
|
||||||
|
|
||||||
|
def lcd128x64setOrientation(*args):
|
||||||
|
return _wiringpi2.lcd128x64setOrientation(*args)
|
||||||
|
lcd128x64setOrientation = _wiringpi2.lcd128x64setOrientation
|
||||||
|
|
||||||
|
def lcd128x64orientCoordinates(*args):
|
||||||
|
return _wiringpi2.lcd128x64orientCoordinates(*args)
|
||||||
|
lcd128x64orientCoordinates = _wiringpi2.lcd128x64orientCoordinates
|
||||||
|
|
||||||
|
def lcd128x64getScreenSize(*args):
|
||||||
|
return _wiringpi2.lcd128x64getScreenSize(*args)
|
||||||
|
lcd128x64getScreenSize = _wiringpi2.lcd128x64getScreenSize
|
||||||
|
|
||||||
|
def lcd128x64point(*args):
|
||||||
|
return _wiringpi2.lcd128x64point(*args)
|
||||||
|
lcd128x64point = _wiringpi2.lcd128x64point
|
||||||
|
|
||||||
|
def lcd128x64line(*args):
|
||||||
|
return _wiringpi2.lcd128x64line(*args)
|
||||||
|
lcd128x64line = _wiringpi2.lcd128x64line
|
||||||
|
|
||||||
|
def lcd128x64lineTo(*args):
|
||||||
|
return _wiringpi2.lcd128x64lineTo(*args)
|
||||||
|
lcd128x64lineTo = _wiringpi2.lcd128x64lineTo
|
||||||
|
|
||||||
|
def lcd128x64rectangle(*args):
|
||||||
|
return _wiringpi2.lcd128x64rectangle(*args)
|
||||||
|
lcd128x64rectangle = _wiringpi2.lcd128x64rectangle
|
||||||
|
|
||||||
|
def lcd128x64circle(*args):
|
||||||
|
return _wiringpi2.lcd128x64circle(*args)
|
||||||
|
lcd128x64circle = _wiringpi2.lcd128x64circle
|
||||||
|
|
||||||
|
def lcd128x64ellipse(*args):
|
||||||
|
return _wiringpi2.lcd128x64ellipse(*args)
|
||||||
|
lcd128x64ellipse = _wiringpi2.lcd128x64ellipse
|
||||||
|
|
||||||
|
def lcd128x64putchar(*args):
|
||||||
|
return _wiringpi2.lcd128x64putchar(*args)
|
||||||
|
lcd128x64putchar = _wiringpi2.lcd128x64putchar
|
||||||
|
|
||||||
|
def lcd128x64puts(*args):
|
||||||
|
return _wiringpi2.lcd128x64puts(*args)
|
||||||
|
lcd128x64puts = _wiringpi2.lcd128x64puts
|
||||||
|
|
||||||
|
def lcd128x64update():
|
||||||
|
return _wiringpi2.lcd128x64update()
|
||||||
|
lcd128x64update = _wiringpi2.lcd128x64update
|
||||||
|
|
||||||
|
def lcd128x64clear(*args):
|
||||||
|
return _wiringpi2.lcd128x64clear(*args)
|
||||||
|
lcd128x64clear = _wiringpi2.lcd128x64clear
|
||||||
|
|
||||||
|
def lcd128x64setup():
|
||||||
|
return _wiringpi2.lcd128x64setup()
|
||||||
|
lcd128x64setup = _wiringpi2.lcd128x64setup
|
||||||
|
|
||||||
|
def setupNesJoystick(*args):
|
||||||
|
return _wiringpi2.setupNesJoystick(*args)
|
||||||
|
setupNesJoystick = _wiringpi2.setupNesJoystick
|
||||||
|
|
||||||
|
def readNesJoystick(*args):
|
||||||
|
return _wiringpi2.readNesJoystick(*args)
|
||||||
|
readNesJoystick = _wiringpi2.readNesJoystick
|
||||||
class nes(object):
|
class nes(object):
|
||||||
def setupNesJoystick(self,*args):
|
def setupNesJoystick(self,*args):
|
||||||
return setupNesJoystick(*args)
|
return setupNesJoystick(*args)
|
||||||
|
|||||||
BIN
wiringpi2.pyc
BIN
wiringpi2.pyc
Binary file not shown.
1466
wiringpi_wrap.c
1466
wiringpi_wrap.c
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user