Raspberry PI GPIO Scol plugin
|
Functions | |
int | _GPIOdelay (mmachine m) |
_GPIOdelay : This function make a delay in millisecond | |
int | _GPIOdelayMicroseconds (mmachine m) |
_GPIOdelayMicroseconds : This function make a delay in microsecond | |
int | _crGPIOpin (mmachine m) |
_crGPIOpin : This function create a GPIO pin object | |
int | _dsGPIOpin (mmachine m) |
_dsGPIOpin : This function destroy a GPIO pin object | |
int | _setGPIOpinPullMode (mmachine m) |
_setGPIOpinPullMode : This function set the pull-up or pull-down resistor mode on a GPIO pin | |
int | _GPIOdigitalWrite (mmachine m) |
_GPIOdigitalWrite : This function write a high or low value on a GPIO pin | |
int | _GPIOdigitalRead (mmachine m) |
_GPIOdigitalRead : This function read a high or low value on a GPIO pin | |
int | _GPIOanalogWrite (mmachine m) |
_GPIOanalogWrite : This function write an analogic value on a GPIO pin | |
int | _GPIOanalogRead (mmachine m) |
_GPIOanalogRead : This function read an analogic value on a GPIO pin | |
int | _GPIOpwmWrite (mmachine m) |
_GPIOpwmWrite : This function write a value on a PWM GPIO pin (pin 18 on RPI), use softPWM for other pins | |
int | _crGPIOlcd (mmachine m) |
_crGPIOlcd : This function initialize a 4bits or 8 bits display based in Hitachi (HD44780U) | |
int | _dsGPIOlcd (mmachine m) |
_dsGPIOlcd : This function destroy a GPIO LCD object | |
int | _GPIOlcdHome (mmachine m) |
_GPIOlcdHome : This function set the cursor to home state on lcd display | |
int | _GPIOlcdClear (mmachine m) |
_GPIOlcdClear : This function clear an lcd display | |
int | _GPIOlcdDisplay (mmachine m) |
_GPIOlcdDisplay : This function change the display state On/Off of an lcd display | |
int | _GPIOlcdCursor (mmachine m) |
_GPIOlcdCursor : This function change the cursor state On/Off of an lcd display | |
int | _GPIOlcdCursorBlink (mmachine m) |
_GPIOlcdCursorBlink : This function change the cursor blink state On/Off of an lcd display | |
int | _GPIOlcdPosition (mmachine m) |
_GPIOlcdPosition : This function set the cursor position for next text input of an lcd display | |
int | _GPIOlcdPuts (mmachine m) |
_GPIOlcdPuts : This function add text at the current cursor position of an lcd display | |
int | _crGPIOservo (mmachine m) |
_crGPIOservo : This function create a GPIO servo motor object | |
int | _dsGPIOservo (mmachine m) |
_dsGPIOservo : This function destroy a GPIO servo motor object | |
int | _setGPIOservoAngle (mmachine m) |
_setGPIOservoAngle : This function set a servo motor angle | |
int | _crGPIOshiftDriver (mmachine m) |
_crGPIOshiftDriver : This function create a GPIO shift driver, it can change a shift register values in threaded loop | |
int | _dsGPIOshiftDriver (mmachine m) |
_dsGPIOshiftDriver : This function destroy a GPIO shift driver object | |
int | _setGPIOshiftDriverValues (mmachine m) |
_setGPIOshiftDriverValues : This function set a servo motor angle | |
int | _crGPIOi2c (mmachine m) |
_crGPIOi2c : This function create a GPIO I2C object | |
int | _dsGPIOi2c (mmachine m) |
_dsGPIOi2c : This function destroy a GPIO I2C object | |
int | _GPIOi2cWrite (mmachine m) |
_GPIOi2cWrite : This function write a value on a GPIO I2C device | |
int | _GPIOi2cRead (mmachine m) |
_GPIOi2cRead : This function read the value on a GPIO I2C device | |
int | _GPIOi2cWrite8 (mmachine m) |
_GPIOi2cWrite8 : This function write a value on a GPIO I2C device 8bits register | |
int | _GPIOi2cRead8 (mmachine m) |
_GPIOi2cRead8 : This function read the value on a GPIO I2C device 8bits register | |
int | _GPIOi2cWrite16 (mmachine m) |
_GPIOi2cWrite16 : This function write a value on a GPIO I2C device 16bits register | |
int | _GPIOi2cRead16 (mmachine m) |
_GPIOi2cRead16 : This function read the value on a GPIO I2C device 16bits register | |
int | _crGPIOpca9685 (mmachine m) |
_crGPIOpca9685 : This function create a GPIO I2C PCA9685 object | |
int | _dsGPIOpca9685 (mmachine m) |
_dsGPIOpca9685 : This function destroy a GPIO I2C PCA9685 object | |
int | _GPIOpca9685Write (mmachine m) |
_GPIOpca9685Write : This function write a value on a GPIO I2C PCA9685 device | |
int | _GPIOpca9685Read (mmachine m) |
_GPIOpca9685Read : This function read the value on a GPIO I2C PCA9685 device | |
int | _GPIOpca9685Reset (mmachine m) |
_GPIOpca9685Reset : This function reset a GPIO I2C PCA9685 device | |
int | _GPIOpca9685SetFrequency (mmachine m) |
_GPIOpca9685SetFrequency : This function change the PWM frequency on a GPIO I2C PCA9685 device | |
int | _crGPIOecho (mmachine m) |
_crGPIOecho : This function create a GPIO echo object It allows to read a sensor value with a trigger pin and a echo pin like SR04 sensor | |
int | _dsGPIOecho (mmachine m) |
_dsGPIOecho : This function destroy a GPIO echo object | |
int | _getGPIOechoValue (mmachine m) |
_getGPIOechoValue : This function read the distance of an echo object | |
Scol functions definition
int _crGPIOecho | ( | mmachine | m | ) |
_crGPIOecho : This function create a GPIO echo object It allows to read a sensor value with a trigger pin and a echo pin like SR04 sensor
Prototype: fun [Chn I I] ObjGpioEcho
Chn | the scol channel |
I | the GPIO pin number on trigger |
I | the GPIO pin number on echo / input |
Definition at line 1620 of file plugin.cpp.
int _crGPIOi2c | ( | mmachine | m | ) |
_crGPIOi2c : This function create a GPIO I2C object
Prototype: fun [Chn I] ObjGpioI2C
Chn | the scol channel |
I | the I2C device id |
Definition at line 1071 of file plugin.cpp.
int _crGPIOlcd | ( | mmachine | m | ) |
_crGPIOlcd : This function initialize a 4bits or 8 bits display based in Hitachi (HD44780U)
Prototype: fun [Chn I I I I I I I I I I I I I] ObjGpioLcd
Chn | scol channel |
I | number of rows |
I | number of cols |
I | bits (4 or 8) |
I | rs gpio pin |
I | strb gpio pin |
I | d0 gpio pin for data |
I | d1 gpio pin for data |
I | d2 gpio pin for data |
I | d3 gpio pin for data |
I | d4 gpio pin for data |
I | d5 gpio pin for data |
I | d6 gpio pin for data |
I | d7 gpio pin for data |
Definition at line 447 of file plugin.cpp.
int _crGPIOpca9685 | ( | mmachine | m | ) |
_crGPIOpca9685 : This function create a GPIO I2C PCA9685 object
Prototype: fun [Chn I I I] ObjGpioPCA9685
Chn | the scol channel |
I | the I2C device id |
I | pin base (300 by default) |
I | PWM frequency (50hz by default) |
Definition at line 1386 of file plugin.cpp.
int _crGPIOpin | ( | mmachine | m | ) |
_crGPIOpin : This function create a GPIO pin object
Prototype: fun [Chn I I] ObjGpioPin
Chn | the scol channel |
I | the GPIO pin number |
I | pin mode: GPIO_INPUT, GPIO_OUTPUT, GPIO_DIGITAL_INPUT (soft emulated using a capacitor), GPIO_CLOCK (only for pin 4), GPIO_PWM_OUTPUT (hardware for pin 18, use fost mode for other pins) |
Definition at line 144 of file plugin.cpp.
int _crGPIOservo | ( | mmachine | m | ) |
_crGPIOservo : This function create a GPIO servo motor object
Prototype: fun [Chn I F] ObjGpioServo
Chn | the scol channel |
I | the GPIO pin number |
F | initial angle value (from 0 to 180 degree) |
Definition at line 816 of file plugin.cpp.
int _crGPIOshiftDriver | ( | mmachine | m | ) |
_crGPIOshiftDriver : This function create a GPIO shift driver, it can change a shift register values in threaded loop
Prototype: fun [Chn I I I I] ObjGpioShiftDriver
Chn | the scol channel |
I | the data GPIO pin number |
I | the clock GPIO pin number |
I | the latch GPIO pin number |
I | number of outputs (8, 16, 24, 32) |
Definition at line 937 of file plugin.cpp.
int _dsGPIOecho | ( | mmachine | m | ) |
_dsGPIOecho : This function destroy a GPIO echo object
Prototype: fun [ObjGpioEcho] I
ObjGpioEcho | the echo object |
Definition at line 1663 of file plugin.cpp.
int _dsGPIOi2c | ( | mmachine | m | ) |
_dsGPIOi2c : This function destroy a GPIO I2C object
Prototype: fun [ObjGpioI2C] I
ObjGpioI2C | the I2C object |
Definition at line 1112 of file plugin.cpp.
int _dsGPIOlcd | ( | mmachine | m | ) |
_dsGPIOlcd : This function destroy a GPIO LCD object
Prototype: fun [ObjGpioLcd] I
ObjGpioLcd | the lcd object |
Definition at line 510 of file plugin.cpp.
int _dsGPIOpca9685 | ( | mmachine | m | ) |
_dsGPIOpca9685 : This function destroy a GPIO I2C PCA9685 object
Prototype: fun [ObjGpioPCA9685] I
ObjGpioPCA9685 | the I2C object |
Definition at line 1439 of file plugin.cpp.
int _dsGPIOpin | ( | mmachine | m | ) |
_dsGPIOpin : This function destroy a GPIO pin object
Prototype: fun [ObjGpioPin] I
ObjGpioPin | the pin object |
Definition at line 194 of file plugin.cpp.
int _dsGPIOservo | ( | mmachine | m | ) |
_dsGPIOservo : This function destroy a GPIO servo motor object
Prototype: fun [ObjGpioServo] I
ObjGpioServo | the servo object |
Definition at line 862 of file plugin.cpp.
int _dsGPIOshiftDriver | ( | mmachine | m | ) |
_dsGPIOshiftDriver : This function destroy a GPIO shift driver object
Prototype: fun [ObjGpioShiftDriver] I
ObjGpioServo | the servo object |
Definition at line 984 of file plugin.cpp.
int _getGPIOechoValue | ( | mmachine | m | ) |
_getGPIOechoValue : This function read the distance of an echo object
Prototype: fun [ObjGpioEcho] I
ObjGpioEcho | the echo object |
Definition at line 1695 of file plugin.cpp.
int _GPIOanalogRead | ( | mmachine | m | ) |
_GPIOanalogRead : This function read an analogic value on a GPIO pin
Prototype: fun [ObjGpioPin] I
ObjGpioPin | the pin object |
Definition at line 368 of file plugin.cpp.
int _GPIOanalogWrite | ( | mmachine | m | ) |
_GPIOanalogWrite : This function write an analogic value on a GPIO pin
Prototype: fun [ObjGpioPin I] I
ObjGpioPin | the pin object |
I | value |
Definition at line 333 of file plugin.cpp.
int _GPIOdelay | ( | mmachine | m | ) |
_GPIOdelay : This function make a delay in millisecond
Prototype: fun [I] I
I | delay in millisecond |
Definition at line 92 of file plugin.cpp.
int _GPIOdelayMicroseconds | ( | mmachine | m | ) |
_GPIOdelayMicroseconds : This function make a delay in microsecond
Prototype: fun [I] I
I | delay in microsecond |
Definition at line 117 of file plugin.cpp.
int _GPIOdigitalRead | ( | mmachine | m | ) |
_GPIOdigitalRead : This function read a high or low value on a GPIO pin
Prototype: fun [ObjGpioPin] I
ObjGpioPin | the pin object |
Definition at line 302 of file plugin.cpp.
int _GPIOdigitalWrite | ( | mmachine | m | ) |
_GPIOdigitalWrite : This function write a high or low value on a GPIO pin
Prototype: fun [ObjGpioPin I] I
ObjGpioPin | the pin object |
I | value: GPIO_LOW, GPIO_HIGH |
Definition at line 262 of file plugin.cpp.
int _GPIOi2cRead | ( | mmachine | m | ) |
_GPIOi2cRead : This function read the value on a GPIO I2C device
Prototype: fun [ObjGpioI2C] I
ObjGpioI2C | the I2C object |
Definition at line 1179 of file plugin.cpp.
int _GPIOi2cRead16 | ( | mmachine | m | ) |
_GPIOi2cRead16 : This function read the value on a GPIO I2C device 16bits register
Prototype: fun [ObjGpioI2C I] I
ObjGpioI2C | the I2C object |
I | register |
Definition at line 1343 of file plugin.cpp.
int _GPIOi2cRead8 | ( | mmachine | m | ) |
_GPIOi2cRead8 : This function read the value on a GPIO I2C device 8bits register
Prototype: fun [ObjGpioI2C I] I
ObjGpioI2C | the I2C object |
I | register |
Definition at line 1256 of file plugin.cpp.
int _GPIOi2cWrite | ( | mmachine | m | ) |
_GPIOi2cWrite : This function write a value on a GPIO I2C device
Prototype: fun [ObjGpioI2C I] I
ObjGpioI2C | the I2C object |
I | value |
Definition at line 1144 of file plugin.cpp.
int _GPIOi2cWrite16 | ( | mmachine | m | ) |
_GPIOi2cWrite16 : This function write a value on a GPIO I2C device 16bits register
Prototype: fun [ObjGpioI2C I I] I
ObjGpioI2C | the I2C object |
I | register |
I | value |
Definition at line 1298 of file plugin.cpp.
int _GPIOi2cWrite8 | ( | mmachine | m | ) |
_GPIOi2cWrite8 : This function write a value on a GPIO I2C device 8bits register
Prototype: fun [ObjGpioI2C I I] I
ObjGpioI2C | the I2C object |
I | register |
I | value |
Definition at line 1211 of file plugin.cpp.
int _GPIOlcdClear | ( | mmachine | m | ) |
_GPIOlcdClear : This function clear an lcd display
Prototype: fun [ObjGpioLcd] I
ObjGpioLcd | the lcd handle |
Definition at line 573 of file plugin.cpp.
int _GPIOlcdCursor | ( | mmachine | m | ) |
_GPIOlcdCursor : This function change the cursor state On/Off of an lcd display
Prototype: fun [ObjGpioLcd I] I
ObjGpioLcd | the lcd handle |
I | state, 0 off, 1 on |
Definition at line 645 of file plugin.cpp.
int _GPIOlcdCursorBlink | ( | mmachine | m | ) |
_GPIOlcdCursorBlink : This function change the cursor blink state On/Off of an lcd display
Prototype: fun [ObjGpioLcd I] I
ObjGpioLcd | the lcd handle |
I | state, 0 off, 1 on |
Definition at line 684 of file plugin.cpp.
int _GPIOlcdDisplay | ( | mmachine | m | ) |
_GPIOlcdDisplay : This function change the display state On/Off of an lcd display
Prototype: fun [ObjGpioLcd I] I
ObjGpioLcd | the lcd handle |
I | state, 0 off, 1 on |
Definition at line 606 of file plugin.cpp.
int _GPIOlcdHome | ( | mmachine | m | ) |
_GPIOlcdHome : This function set the cursor to home state on lcd display
Prototype: fun [ObjGpioLcd] I
ObjGpioLcd | the lcd handle |
Definition at line 541 of file plugin.cpp.
int _GPIOlcdPosition | ( | mmachine | m | ) |
_GPIOlcdPosition : This function set the cursor position for next text input of an lcd display
Prototype: fun [ObjGpioLcd I] I
ObjGpioLcd | the lcd handle |
I | X cols position |
I | Y rows position |
Definition at line 724 of file plugin.cpp.
int _GPIOlcdPuts | ( | mmachine | m | ) |
_GPIOlcdPuts : This function add text at the current cursor position of an lcd display
Prototype: fun [ObjGpioLcd S] I
ObjGpioLcd | the lcd handle |
S | text to print on the lcd display |
Definition at line 769 of file plugin.cpp.
int _GPIOpca9685Read | ( | mmachine | m | ) |
_GPIOpca9685Read : This function read the value on a GPIO I2C PCA9685 device
Prototype: fun [ObjGpioPCA9685 I] I
ObjGpioPCA9685 | the I2C object |
I | pin / channel |
Definition at line 1511 of file plugin.cpp.
int _GPIOpca9685Reset | ( | mmachine | m | ) |
_GPIOpca9685Reset : This function reset a GPIO I2C PCA9685 device
Prototype: fun [ObjGpioPCA9685] I
ObjGpioPCA9685 | the I2C object |
Definition at line 1544 of file plugin.cpp.
int _GPIOpca9685SetFrequency | ( | mmachine | m | ) |
_GPIOpca9685SetFrequency : This function change the PWM frequency on a GPIO I2C PCA9685 device
Prototype: fun [ObjGpioPCA9685 I] I
ObjGpioPCA9685 | the I2C object |
I | new frequency (hz) |
Definition at line 1577 of file plugin.cpp.
int _GPIOpca9685Write | ( | mmachine | m | ) |
_GPIOpca9685Write : This function write a value on a GPIO I2C PCA9685 device
Prototype: fun [ObjGpioPCA9685 I I] I
ObjGpioPCA9685 | the I2C object |
I | pin / channel |
I | value |
Definition at line 1473 of file plugin.cpp.
int _GPIOpwmWrite | ( | mmachine | m | ) |
_GPIOpwmWrite : This function write a value on a PWM GPIO pin (pin 18 on RPI), use softPWM for other pins
Prototype: fun [ObjGpioPin I] I
ObjGpioPin | the pin object |
I | value between 0 to 1023 |
Definition at line 399 of file plugin.cpp.
int _setGPIOpinPullMode | ( | mmachine | m | ) |
_setGPIOpinPullMode : This function set the pull-up or pull-down resistor mode on a GPIO pin
Prototype: fun [ObjGpioPin I] I
ObjGpioPin | the pin object |
I | pin pull resistor mode: GPIO_PUD_DOWN, GPIO_PUD_UP, GPIO_PUD_OFF |
Definition at line 226 of file plugin.cpp.
int _setGPIOservoAngle | ( | mmachine | m | ) |
_setGPIOservoAngle : This function set a servo motor angle
Prototype: fun [ObjGpioServo F] I
ObjGpioServo | the servo object |
F | the angle value to set on the servo (from 0 to 180 degree) |
Definition at line 895 of file plugin.cpp.
int _setGPIOshiftDriverValues | ( | mmachine | m | ) |
_setGPIOshiftDriverValues : This function set a servo motor angle
Prototype: fun [ObjGpioShiftDriver [[I I] r1]] I
ObjGpioShiftDriver | the shift register object |
[I | I] r1: a list of tuple containing the shift value and the time in microseconds to wait until it read the next value |
Definition at line 1017 of file plugin.cpp.