From 7c1efe8270f609a4d5180e1efc695e510faf4302 Mon Sep 17 00:00:00 2001 From: Cody Ardoin Date: Sun, 29 Dec 2024 06:09:21 -0600 Subject: [PATCH] Smoochiees board finally builds --- boards/pinouts/smoochiee-board.h | 5 +++++ boards/smoochiee-board.ini | 2 +- boards/smoochiee-board/interface.cpp | 8 ++++---- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/boards/pinouts/smoochiee-board.h b/boards/pinouts/smoochiee-board.h index 7214853d..8085bd9e 100644 --- a/boards/pinouts/smoochiee-board.h +++ b/boards/pinouts/smoochiee-board.h @@ -46,6 +46,11 @@ static const uint8_t G46 = 46; static const uint8_t ADC1 = 7; static const uint8_t ADC2 = 8; +#define SERIAL_RX 2 +#define SERIAL_TX 1 +#define BAD_RX SERIAL_RX +#define BAD_TX SERIAL_TX + #define BTN_ALIAS '"OK"' #define SEL_BTN 0 #define UP_BTN 40 diff --git a/boards/smoochiee-board.ini b/boards/smoochiee-board.ini index 5f3fd2c2..cc446e27 100644 --- a/boards/smoochiee-board.ini +++ b/boards/smoochiee-board.ini @@ -26,4 +26,4 @@ build_flags = lib_deps = ${env.lib_deps} - lewisxhe/XPowersLib @ ^0.2.4 \ No newline at end of file + lewisxhe/XPowersLib @0.2.6 \ No newline at end of file diff --git a/boards/smoochiee-board/interface.cpp b/boards/smoochiee-board/interface.cpp index 1913be48..39e34508 100644 --- a/boards/smoochiee-board/interface.cpp +++ b/boards/smoochiee-board/interface.cpp @@ -12,10 +12,10 @@ ***************************************************************************************/ - // Power handler for battery detection - #include - #include - XPowersPPM PPM; +// Power handler for battery detection +#include +#include +XPowersPPM PPM; void _setup_gpio() {