telelco-v3.0: Minor setup fixes
authorKeith Packard <keithp@keithp.com>
Sat, 27 Jan 2024 00:06:44 +0000 (16:06 -0800)
committerKeith Packard <keithp@keithp.com>
Thu, 1 Feb 2024 01:50:19 +0000 (17:50 -0800)
Change beeper to lower tone. Switch LCD SPI to mode 3. Fix the
quadrature device ID.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/telelco-v3.0/ao_pins.h

index 8ff1c7bead53cc9bacfd1f44cb6ac1b83cc58a30..21d90328e644b59d47687cfc837e8241808aa1e4 100644 (file)
@@ -61,6 +61,7 @@
 #define BEEPER_CHANNEL         1
 #define BEEPER_PORT            (&stm_gpioc)
 #define BEEPER_PIN             6
+#define AO_BEEP_MID_DEFAULT    179     /* 2100 Hz */
 #define HAS_RADIO              1
 #define HAS_RADIO_RATE         1
 #define HAS_TELEMETRY          0
 #define AO_ST7565_RESET_PIN    5
 #define AO_ST7565_A0_PORT      (&stm_gpioa)    /* pin 3 */
 #define AO_ST7565_A0_PIN       3
-#define AO_ST7565_SPI_BUS      AO_SPI_1_PA5_PA6_PA7
+#define AO_ST7565_SPI_BUS      (AO_SPI_1_PA5_PA6_PA7 | AO_SPI_MODE_3)
 #define AO_ST7565_WIDTH                128
 #define AO_ST7565_HEIGHT       64
 #define AO_ST7565_BIAS         ST7565_LCD_BIAS_1_9
 #define AO_QUADRATURE_0_A      12
 #define AO_QUADRATURE_0_B      11
 
-#define AO_QUADRATURE_SELECT   10
+#define AO_QUADRATURE_SELECT   0
 
 /*
  * Buttons