* misc fixes
This commit is contained in:
1 parent
6c45b94783
commit
54a88a307a
6 files changed
+10
-2
No files matched your search
@@ -12,9 +12,9 @@
|
|||||||
#ifdef DISPLAY_CLASS
|
#ifdef DISPLAY_CLASS
|
||||||
#include <helpers/ui/MomentaryButton.h>
|
#include <helpers/ui/MomentaryButton.h>
|
||||||
#include <helpers/ui/ST7735Display.h>
|
#include <helpers/ui/ST7735Display.h>
|
||||||
|
#include <UITask.h>
|
||||||
#else
|
#else
|
||||||
#include "helpers/ui/NullDisplayDriver.h"
|
#include "helpers/ui/NullDisplayDriver.h"
|
||||||
#include <UITask.h>
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
extern T096Board board;
|
extern T096Board board;
|
||||||
|
|||||||
@@ -12,9 +12,9 @@
|
|||||||
#ifdef DISPLAY_CLASS
|
#ifdef DISPLAY_CLASS
|
||||||
#include <helpers/ui/MomentaryButton.h>
|
#include <helpers/ui/MomentaryButton.h>
|
||||||
#include <helpers/ui/ST7735Display.h>
|
#include <helpers/ui/ST7735Display.h>
|
||||||
|
#include <UITask.h>
|
||||||
#else
|
#else
|
||||||
#include "helpers/ui/NullDisplayDriver.h"
|
#include "helpers/ui/NullDisplayDriver.h"
|
||||||
#include <UITask.h>
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
extern T1Board board;
|
extern T1Board board;
|
||||||
|
|||||||
@@ -26,17 +26,20 @@ build_flags = ${stm32_base.build_flags}
|
|||||||
build_src_filter = ${stm32_base.build_src_filter}
|
build_src_filter = ${stm32_base.build_src_filter}
|
||||||
+<../variants/lilygo_t3_stm32>
|
+<../variants/lilygo_t3_stm32>
|
||||||
+<helpers/ui/SSD1306Display.cpp>
|
+<helpers/ui/SSD1306Display.cpp>
|
||||||
|
+<helpers/ui/BaseUITask.cpp>
|
||||||
lib_deps = ${stm32_base.lib_deps}
|
lib_deps = ${stm32_base.lib_deps}
|
||||||
adafruit/Adafruit SSD1306 @ ^2.5.13
|
adafruit/Adafruit SSD1306 @ ^2.5.13
|
||||||
|
|
||||||
[env:LilyGo_T3_STM32_repeater]
|
[env:LilyGo_T3_STM32_repeater]
|
||||||
extends = lilygo_t3_stm32
|
extends = lilygo_t3_stm32
|
||||||
build_flags = ${lilygo_t3_stm32.build_flags}
|
build_flags = ${lilygo_t3_stm32.build_flags}
|
||||||
|
-I src/helpers/ui/server
|
||||||
-D ADVERT_NAME='"T3 STM32 Repeater"'
|
-D ADVERT_NAME='"T3 STM32 Repeater"'
|
||||||
-D ADMIN_PASSWORD='"password"'
|
-D ADMIN_PASSWORD='"password"'
|
||||||
-D MAX_NEIGHBOURS=50
|
-D MAX_NEIGHBOURS=50
|
||||||
build_src_filter = ${lilygo_t3_stm32.build_src_filter}
|
build_src_filter = ${lilygo_t3_stm32.build_src_filter}
|
||||||
+<../examples/simple_repeater/*.cpp>
|
+<../examples/simple_repeater/*.cpp>
|
||||||
|
+<helpers/ui/server>
|
||||||
|
|
||||||
[env:LilyGo_T3_STM32_companion_radio_usb]
|
[env:LilyGo_T3_STM32_companion_radio_usb]
|
||||||
extends = lilygo_t3_stm32
|
extends = lilygo_t3_stm32
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ SensorManager sensors;
|
|||||||
DISPLAY_CLASS display;
|
DISPLAY_CLASS display;
|
||||||
// PH3 is also BOOT0: the board's button is active high with an external pull-down.
|
// PH3 is also BOOT0: the board's button is active high with an external pull-down.
|
||||||
MomentaryButton user_btn(PIN_USER_BTN, 1000, false);
|
MomentaryButton user_btn(PIN_USER_BTN, 1000, false);
|
||||||
|
UITask ui_task(&board, &display);
|
||||||
|
|
||||||
static const uint32_t rfswitch_pins[] = {
|
static const uint32_t rfswitch_pins[] = {
|
||||||
PB2, PB6, RADIOLIB_NC, RADIOLIB_NC, RADIOLIB_NC
|
PB2, PB6, RADIOLIB_NC, RADIOLIB_NC, RADIOLIB_NC
|
||||||
|
|||||||
@@ -11,6 +11,7 @@
|
|||||||
#endif
|
#endif
|
||||||
#include <helpers/ui/SSD1306Display.h>
|
#include <helpers/ui/SSD1306Display.h>
|
||||||
#include <helpers/ui/MomentaryButton.h>
|
#include <helpers/ui/MomentaryButton.h>
|
||||||
|
#include <UITask.h>
|
||||||
|
|
||||||
class LilyGoT3STM32Board : public STM32Board {
|
class LilyGoT3STM32Board : public STM32Board {
|
||||||
public:
|
public:
|
||||||
@@ -31,6 +32,7 @@ extern SensorManager sensors;
|
|||||||
#endif
|
#endif
|
||||||
extern DISPLAY_CLASS display;
|
extern DISPLAY_CLASS display;
|
||||||
extern MomentaryButton user_btn;
|
extern MomentaryButton user_btn;
|
||||||
|
extern UITask ui_task;
|
||||||
|
|
||||||
bool radio_init();
|
bool radio_init();
|
||||||
mesh::LocalIdentity radio_new_identity();
|
mesh::LocalIdentity radio_new_identity();
|
||||||
@@ -26,6 +26,8 @@
|
|||||||
extern MomentaryButton joystick_left;
|
extern MomentaryButton joystick_left;
|
||||||
extern MomentaryButton joystick_right;
|
extern MomentaryButton joystick_right;
|
||||||
extern MomentaryButton back_btn;
|
extern MomentaryButton back_btn;
|
||||||
|
#include <UITask.h>
|
||||||
|
extern UITask ui_task;
|
||||||
#elif defined(DISPLAY_CLASS)
|
#elif defined(DISPLAY_CLASS)
|
||||||
#include "helpers/ui/NullDisplayDriver.h"
|
#include "helpers/ui/NullDisplayDriver.h"
|
||||||
extern DISPLAY_CLASS display;
|
extern DISPLAY_CLASS display;
|
||||||
|
|||||||
Reference in new issue
Block a user