user pin selection for CC1101 gpios

This commit is contained in:
he.so 2020-02-27 21:03:05 +01:00
parent fb87a03dbc
commit 23ca2ff36d
2 changed files with 8 additions and 3 deletions

View File

@ -222,6 +222,8 @@ enum UserSelectablePins {
GPIO_HM10_TX, // HM10-BLE-Mijia-bridge serial interface GPIO_HM10_TX, // HM10-BLE-Mijia-bridge serial interface
GPIO_LE01MR_RX, // F&F LE-01MR energy meter GPIO_LE01MR_RX, // F&F LE-01MR energy meter
GPIO_LE01MR_TX, // F&F LE-01MR energy meter GPIO_LE01MR_TX, // F&F LE-01MR energy meter
GPIO_CC1101_GDO0, // CC1101 pin for RX
GPIO_CC1101_GDO2, // CC1101 pin for RX
GPIO_SENSOR_END }; GPIO_SENSOR_END };
// Programmer selectable GPIO functionality // Programmer selectable GPIO functionality
@ -790,7 +792,10 @@ const uint8_t kGpioNiceList[] PROGMEM = {
#ifdef USE_DEEPSLEEP #ifdef USE_DEEPSLEEP
GPIO_DEEPSLEEP, GPIO_DEEPSLEEP,
#endif #endif
#ifdef USE_KEELOQ
GPIO_CC1101_GDO0, // CC1101 pin for RX
GPIO_CC1101_GDO2, // CC1101 pin for RX
#endif
}; };
const uint8_t kModuleNiceList[] PROGMEM = { const uint8_t kModuleNiceList[] PROGMEM = {

View File

@ -27,8 +27,8 @@
#define Lowpulse 400 #define Lowpulse 400
#define Highpulse 800 #define Highpulse 800
#define TX_PORT 4 // Outputport for transmission #define TX_PORT pin[GPIO_CC1101_GDO2] // Outputport for transmission
#define RX_PORT 5 // Inputport for reception #define RX_PORT pin[GPIO_CC1101_GDO0] // Inputport for reception
const char kJaroliftCommands[] PROGMEM = "Keeloq|" // prefix const char kJaroliftCommands[] PROGMEM = "Keeloq|" // prefix
"SendRaw|SendButton|Set"; "SendRaw|SendButton|Set";