Open RTS
Full implementation of the Somfy RTS protocol
|
Common board definitions for microcontrollers and radio modules. More...
Go to the source code of this file.
Common board definitions for microcontrollers and radio modules.
Each board config should define the following:
OPENRTS_RADIO_TYPE_*
- Type of radio module connected to the MCUOPENRTS_RADIO_CS
- SPI chip select pin for the radio moduleOPENRTS_RADIO_DATA
- Data pin for OOK control on the radio moduleOPENRTS_RADIO_RST
- Reset pin for the radio module (if present)Although Arduino typically defines MISO/MOSI/SCLK for us, on other platforms it is useful to know these:
OPENRTS_RADIO_MISO
- The SPI MISO pinOPENRTS_RADIO_MOSI
- The SPI MOSI pinOPENRTS_RADIO_SCLK
- The SPI SCLK pinWhere the board has onboard buttons/leds it is helpful to define these for use in example applications:
OPENRTS_LED
- Onboard LEDOPENRTS_BUTTON_1
- Onboard button 1OPENRTS_BUTTON_2
- Onboard button 2OPENRTS_BUTTON_3
- Onboard button 3OPENRTS_BUTTON_4
- Onboard button 4