Interface | Description |
---|---|
Action | |
BarometerInterface | |
DigitalInputDeviceInterface | |
DistanceSensorInterface | |
GpioExpander | |
HygrometerInterface | |
I2CConstants | |
InputEventListener<T extends DeviceEvent> | |
LuminositySensorInterface | |
OutputDeviceInterface | |
SPIConstants | |
ThermometerInterface |
Class | Description |
---|---|
AnalogInputDevice |
The AnalogInputDevice base class encapsulates logic for interfacing with
analog devices.
|
AnalogInputEvent | |
Animation |
The Animation class constructs objects that represent a single Animation.
|
AnimationObject | |
AnimationObject.KeyFrame | |
DeviceEvent | |
DigitalInputDevice |
Represents a generic digital input device.
|
DigitalInputEvent | |
DigitalInputOutputDevice | |
DigitalOutputDevice |
Provides generic digital (on/off) output control with support for active high
and low logic.
|
GpioDevice |
Abstract base class for all GPIO related devices.
|
GpioInputDevice<T extends DeviceEvent> |
Common base class for digital and analog input devices.
|
I2CDevice |
Utility class reading / writing to I2C devices.
|
PinInfo | |
PwmOutputDevice |
Provide generic
Pulse Width
Modulation (PWM) output control.
|
PwmPinInfo | |
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 (active / inactive).
|
Enum | Description |
---|---|
DeviceMode | |
GpioEventTrigger | |
GpioPullUpDown | |
PwmType | |
SpiClockMode |
SPI Clock Polarity Clock Phase Clock Edge
Mode (CPOL/CKP) (CPHA) (CKE/NCPHA)
0 0 0 1
1 0 1 0
2 1 0 1
3 1 1 0
|
Exception | Description |
---|---|
DeviceAlreadyOpenedException |
Copyright © 2016–2017 mattjlewis. All rights reserved.