Interface | Description |
---|---|
Action | |
DistanceSensorInterface | |
I2CConstants | |
InputEventListener<T extends DeviceEvent> | |
LuminositySensorInterface | |
PressureSensorInterface | |
SPIConstants | |
TemperaturePressureSensorInterface | |
TemperatureSensorInterface |
Class | Description |
---|---|
AnalogInputDevice | |
AnalogInputEvent | |
DeviceEvent | |
DigitalInputDevice |
Represents a generic input device.
|
DigitalInputEvent | |
DigitalOutputDevice | |
GpioDevice | |
GpioInputDevice<T extends DeviceEvent> | |
I2CDevice |
This is more of a utility class providing various read/write methods
|
PwmOutputDevice |
Represent a generic PWM output GPIO.
|
SmoothedInputDevice |
Represents a generic input device which takes its value from the number of active
events over a specific time period.
|
SpiDevice |
https://www.raspberrypi.org/documentation/hardware/raspberrypi/spi/README.md
For modern Raspberry Pis:
2 SPI controllers, 0 (SPI-0) and 1 (SPI-1)
Controller 0 has 2 channels (CE-0 on physical pin 24, CE-1 on physical pin 26)
Controller 1 has 3 channels (CE-0 on physical pin 12, CE-1 on physical pin 11, CE-2 on physical pin 36)
SPI-1 is more limited that SPI-0 on the Raspberry Pi (https://www.raspberrypi.org/forums/viewtopic.php?t=81903&p=579154)
- The SPI-1 clock is derived from the system clock therefore you have to be careful when over/underclocking to set the right divisor
- Limited IRQ support, no thresholding on the FIFO except "TX empty" or "done".
|
WaitableDigitalInputDevice |
Represents a digital input device with distinct waitable states.
|
Enum | Description |
---|---|
GpioEventTrigger | |
GpioPullUpDown | |
PwmType | |
SpiClockMode |
Exception | Description |
---|---|
DeviceAlreadyOpenedException |
Copyright © 2016 mattjlewis. All rights reserved.