Open RTS
Full implementation of the Somfy RTS protocol
Loading...
Searching...
No Matches
boards.h
Go to the documentation of this file.
1
32#if defined(OPENRTS_BOARD_SPARKFUN_LORA_GATEWAY)
33// SparkFun LoRa Gateway 1-Channel (with modification)
34// Assumes the default 915MHz radio module has been removed and replaced with a
35// 433MHz module (RFM69HCW)
36#define OPENRTS_RADIO_TYPE_RFM69
37#define OPENRTS_RADIO_MISO 12
38#define OPENRTS_RADIO_MOSI 13
39#define OPENRTS_RADIO_SCLK 14
40#define OPENRTS_RADIO_CS 16
41#define OPENRTS_RADIO_RST 27
42#define OPENRTS_RADIO_DATA 32
43#define OPENRTS_BUTTON_1 0
44#define OPENRTS_LED 17
45#elif defined(OPENRTS_BOARD_TTGO_LORA32_V21)
46// LILYGO TTGO LoRa32 (V2.1) - 433MHz
47#define OPENRTS_RADIO_TYPE_SX1278
48#define OPENRTS_RADIO_MISO 19
49#define OPENRTS_RADIO_MOSI 27
50#define OPENRTS_RADIO_SCLK 5
51#define OPENRTS_RADIO_CS 18
52#define OPENRTS_RADIO_RST 23
53#define OPENRTS_RADIO_DATA 32
54#define OPENRTS_LED 25
55#define OPENRTS_OLED_TYPE_SSD1306
56#elif defined(OPENRTS_BOARD_HELTEC_WIFI_LORA_32_V2)
57// Heltec WiFi LoRa 32 (V2) - 433MHz
58#define OPENRTS_RADIO_TYPE_SX1278
59#define OPENRTS_RADIO_MISO 19
60#define OPENRTS_RADIO_MOSI 27
61#define OPENRTS_RADIO_SCLK 5
62#define OPENRTS_RADIO_CS 18
63#define OPENRTS_RADIO_RST 14
64#define OPENRTS_RADIO_DATA 34
65#define OPENRTS_BUTTON_1 0
66#define OPENRTS_LED 25
67#define OPENRTS_OLED_TYPE_SSD1306
68#define OPENRTS_OLED_RST 16
69#define OPENRTS_OLED_SCL 15
70#define OPENRTS_OLED_SDA 4
71#elif defined(OPENRTS_BOARD_ADAFRUIT_M0_RFM69)
72// Adafruit Feather M0 RFM69HCW Packet Radio - 433MHz
73// TODO: Double check these pins
74#define OPENRTS_RADIO_TYPE_RFM69
75#define OPENRTS_RADIO_CS 8
76#define OPENRTS_RADIO_RST 4
77#define OPENRTS_RADIO_DATA 0
78#define OPENRTS_LED 13
79#define OPENRTS_OLED_TYPE_SH1107 // If 128x64 OLED FeatherWing attached
80#elif defined(OPENRTS_BOARD_ADAFRUIT_32U4_RFM69)
81// Adafruit Feather 32u4 RFM69HCW Packet Radio - 433MHz
82#define OPENRTS_RADIO_TYPE_RFM69
83#define OPENRTS_RADIO_CS 8
84#define OPENRTS_RADIO_RST 4
85#define OPENRTS_RADIO_DATA 0
86#define OPENRTS_LED 13
87#define OPENRTS_OLED_TYPE_SH1107 // If 128x64 OLED FeatherWing attached
88#elif defined(OPENRTS_BOARD_RASPBERRY_PI_RFM69_BONNET)
89// Raspberry Pi with Adafruit RFM69HCW Transceiver Radio Bonnet - 433 MHz
90#define OPENRTS_RADIO_TYPE_RFM69
91#define OPENRTS_BUTTON_1 5
92#define OPENRTS_BUTTON_2 6
93#define OPENRTS_BUTTON_3 12
94#define OPENRTS_BUTTON_4 13
95#define OPENRTS_RADIO_DATA 24
96#define OPENRTS_RADIO_RST 25
97#define OPENRTS_SPI_DEVICE "/dev/spidev0.1"
98#define OPENRTS_GPIOD_DEVICE "/dev/gpiochip0"
99#elif defined(OPENRTS_BOARD_RASPBERRY_PI_RFM96_BONNET)
100// Raspberry Pi with Adafruit LoRa Radio Bonnet RFM96W - 433 MHz
101#define OPENRTS_RADIO_TYPE_SX1278
102#define OPENRTS_BUTTON_1 5
103#define OPENRTS_BUTTON_2 6
104#define OPENRTS_BUTTON_3 12
105#define OPENRTS_BUTTON_4 13
106#define OPENRTS_RADIO_DATA 24
107#define OPENRTS_RADIO_RST 25
108#define OPENRTS_SPI_DEVICE "/dev/spidev0.1"
109#define OPENRTS_GPIOD_DEVICE "/dev/gpiochip0"
110#endif