Main Content
Functions Supported for Deployment
This table lists the Raspberry Pi® peripheral functions supported for deployment.
Peripheral | Function | Usage |
---|---|---|
Raspi | raspi | Create connection to Raspberry Pi hardware |
LEDs | writeLED | Turn LED on or off |
GPIO Pins | configurePin | Configure GPIO pin as digital input, digital output, or PWM output |
readDigitalPin | Read logical value from GPIO input pin | |
writeDigitalPin | Write logical value to GPIO output pin | |
I2C Interface | i2cdev | Create connection to I2C device |
read | Read data from I2C device | |
write | Write data to I2C device | |
readRegister | Read from register on I2C device | |
writeRegister | Write to register on I2C device | |
SPI Interface | spidev | Create connection to SPI device |
writeRead | Write data to and read data from SPI device | |
Serial Port | serialdev | Create connection to serial device |
read | Read data from serial device | |
write | Write data to serial device | |
Servo | servo | Create connection to servo motor |
writePosition | Write position of servo motor | |
Linux® | system | Run command in Linux shell on Raspberry Pi hardware |
Camera Board | cameraboard | Create connection to Raspberry Pi camera board module |
snapshot | Capture RGB image from camera | |
record | Record video from camera board | |
stop | Stop video recording from camera board | |
Sense HAT | sensehat | Create a Sense HAT object passing raspi object |
readHumidity | Read the humidity value from the Humidity sensor | |
readPressure | Read the pressure value from the Air Pressure sensor | |
readTemperature | Read the temperature value from the Humidity sensor or the Air Pressure sensor | |
readAngularVelocity | Read angular velocity measured by the gyroscope along x, y, and z axes | |
readAcceleration | Read acceleration measured by the Accelerometer along x, y, and z axes | |
readMagneticField | Read the magnetic field measured by the Magnetometer along the x, y and z axis | |
readJoystick | Read the status of the joystick | |
displayImage | Display an image on the Raspberry Pi hardware or on the LED Matrix of SenseHAT | |
writePixel | Write the specified color to an individual pixel at the specified column and row of LED Matrix | |
clearLEDMatrix | Clears the entire LED matrix and sets the all the pixels to blank ([0, 0, 0]) | |
Web Camera | webcam | Create connection to Raspberry Pi web camera |
snapshot | Capture RGB image from camera | |
Pulse Width Modulation | writePWMFrequency | Writes PWM frequency to a GPIO pin |
writePWMDutyCycle | Writes PWM duty cycle to PWM pin | |
writePWMVoltage | Writes average PWM voltage to a GPIO pin | |
Display | displayImage | Display an image on the Raspberry Pi hardware |