KioGPIOBoard Class

When running KioWare OS on single board computers (SBCs) such as the Raspberry Pi 4B/400 or the Asus Tinker Board S, this class allows web pages to control the General Purpose Input/Output (GPIO) pins of these devices. GPIO pins can be used to control physical electronic circuits by setting or reading voltages on the pins.

Functions

Type Signature
void setPortStates(int64)
Toggles the on/off or high/low state of all ports/pins, each represented by one bit
void setPortState(int, bool)
Toggles the on/off or high/low state of a single port/pin
int64 getPortStates()
Gets the on/off or high/low state of all ports/pins, each represented by one bit
void setPortIOStates(int64)
Toggles the input/output state of all ports/pins, each represented by one bit
int64 getPortIOStates()
Gets the input/output state of all ports/pins, each represented by one bit
void setPortDutyCycle(int, int)
Sets the duty cycle of the specified port/pin
int getPortDutyCycle(int)
Gets the duty cycle of the specified port/pin

Linux® is the registered trademark of Linus Torvalds in the U.S. and other countries.