From 9fd3ff0a5c4c5b21ed9cd86550d5d902b6fc9048 Mon Sep 17 00:00:00 2001 From: mattbk Date: Fri, 26 Jan 2024 10:50:57 -0600 Subject: [PATCH] Add rotary pins to config section. --- src/main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 54da8de..4d4cc3f 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -21,9 +21,11 @@ #define band A1 //The pin used by band selector push button. #define rx_tx A2 //The pin used by RX / TX selector switch, RX = switch open, TX = switch closed to GND. When in TX, the IF value is not considered. #define adc A3 //The pin used by Signal Meter A/D input. +#define rotary1 2 //First pin for rotary encoder. +#define rotary2 3 //Second pin for rotary encoder. //------------------------------------------------------------------------------------------------------------ -Rotary r = Rotary(2, 3); +Rotary r = Rotary(rotary1, rotary2); Adafruit_SSD1306 display = Adafruit_SSD1306(128, 64, &Wire); Si5351 si5351(0x60); //Si5351 I2C Address 0x60