Open RTS
Full implementation of the Somfy RTS protocol
Loading...
Searching...
No Matches
boards.h File Reference

Common board definitions for microcontrollers and radio modules. More...

Go to the source code of this file.

Detailed Description

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 MCU
  • OPENRTS_RADIO_CS - SPI chip select pin for the radio module
  • OPENRTS_RADIO_DATA - Data pin for OOK control on the radio module
  • OPENRTS_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 pin
  • OPENRTS_RADIO_MOSI - The SPI MOSI pin
  • OPENRTS_RADIO_SCLK - The SPI SCLK pin

Where the board has onboard buttons/leds it is helpful to define these for use in example applications:

  • OPENRTS_LED - Onboard LED
  • OPENRTS_BUTTON_1 - Onboard button 1
  • OPENRTS_BUTTON_2 - Onboard button 2
  • OPENRTS_BUTTON_3 - Onboard button 3
  • OPENRTS_BUTTON_4 - Onboard button 4