sforkowany z mirror/meshtastic-firmware
commit
57d5a54099
|
@ -21,6 +21,10 @@
|
||||||
"platforms": "*",
|
"platforms": "*",
|
||||||
"dependencies": [
|
"dependencies": [
|
||||||
{ "name": "Update" },
|
{ "name": "Update" },
|
||||||
{ "name": "ESP32 BLE Arduino" }
|
{ "name": "ESP32 BLE Arduino" },
|
||||||
|
{
|
||||||
|
"name": "arduino-fsm",
|
||||||
|
"version": "https://github.com/geeksville/arduino-fsm.git"
|
||||||
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,8 +21,8 @@ framework = arduino
|
||||||
board_build.partitions = partition-table.csv
|
board_build.partitions = partition-table.csv
|
||||||
|
|
||||||
; note: we add src to our include search path so that lmic_project_config can override
|
; note: we add src to our include search path so that lmic_project_config can override
|
||||||
; FIXME fix dependencies on arduino-fsm
|
; FIXME: fix lib/BluetoothOTA dependency back on src/ so we can remove -Isrc
|
||||||
build_flags = -Wall -Wextra -Wno-missing-field-initializers -I.pio/libdeps/esp32/arduino-fsm -Isrc -Os -Wl,-Map,.pio/build/esp32/output.map -DAXP_DEBUG_PORT=Serial
|
build_flags = -Wall -Wextra -Wno-missing-field-initializers -Isrc -Os -Wl,-Map,.pio/build/esp32/output.map -DAXP_DEBUG_PORT=Serial
|
||||||
|
|
||||||
; not needed included in ttgo-t-beam board file
|
; not needed included in ttgo-t-beam board file
|
||||||
; also to use PSRAM https://docs.platformio.org/en/latest/platforms/espressif32.html#external-ram-psram
|
; also to use PSRAM https://docs.platformio.org/en/latest/platforms/espressif32.html#external-ram-psram
|
||||||
|
@ -55,14 +55,16 @@ debug_tool = jlink
|
||||||
|
|
||||||
debug_init_break = tbreak setup
|
debug_init_break = tbreak setup
|
||||||
|
|
||||||
|
; Note: some libraries are specified by #ID where there are conflicting library
|
||||||
|
; names.
|
||||||
lib_deps =
|
lib_deps =
|
||||||
https://github.com/geeksville/RadioHead.git
|
https://github.com/geeksville/RadioHead.git
|
||||||
TinyGPSPlus
|
1655 ; TinyGPSPlus
|
||||||
https://github.com/geeksville/esp8266-oled-ssd1306.git ; ESP8266_SSD1306
|
https://github.com/geeksville/esp8266-oled-ssd1306.git ; ESP8266_SSD1306
|
||||||
AXP202X_Library
|
AXP202X_Library
|
||||||
SPI
|
SPI
|
||||||
OneButton
|
1260 ; OneButton
|
||||||
CRC32 ; explicitly needed because dependency is missing in the ble ota update lib
|
1202 ; CRC32, explicitly needed because dependency is missing in the ble ota update lib
|
||||||
Wire ; explicitly needed here because the AXP202 library forgets to add it
|
Wire ; explicitly needed here because the AXP202 library forgets to add it
|
||||||
https://github.com/geeksville/arduino-fsm.git
|
https://github.com/geeksville/arduino-fsm.git
|
||||||
|
|
||||||
|
@ -71,4 +73,4 @@ lib_deps =
|
||||||
|
|
||||||
;[env:heltec]
|
;[env:heltec]
|
||||||
;build_type = debug ; to make it possible to step through our jtag debugger
|
;build_type = debug ; to make it possible to step through our jtag debugger
|
||||||
;board = heltec_wifi_lora_32_V2
|
;board = heltec_wifi_lora_32_V2
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "Fsm.h"
|
#include <Fsm.h>
|
||||||
|
|
||||||
// See sw-design.md for documentation
|
// See sw-design.md for documentation
|
||||||
|
|
||||||
|
@ -16,4 +16,4 @@
|
||||||
|
|
||||||
extern Fsm powerFSM;
|
extern Fsm powerFSM;
|
||||||
|
|
||||||
void PowerFSM_setup();
|
void PowerFSM_setup();
|
||||||
|
|
|
@ -510,7 +510,7 @@ void Screen::setOn(bool on)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void screen_print(const char *text, uint8_t x, uint8_t y, uint8_t alignment)
|
void screen_print(const char *text, uint8_t x, uint8_t y, uint8_t alignment)
|
||||||
{
|
{
|
||||||
DEBUG_MSG(text);
|
DEBUG_MSG(text);
|
||||||
|
|
||||||
|
@ -709,4 +709,4 @@ void Screen::onPress()
|
||||||
targetFramerate = TRANSITION_FRAMERATE;
|
targetFramerate = TRANSITION_FRAMERATE;
|
||||||
ui.setTargetFPS(targetFramerate);
|
ui.setTargetFPS(targetFramerate);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
#include "PeriodicTask.h"
|
#include "PeriodicTask.h"
|
||||||
|
|
||||||
void screen_print(const char * text);
|
void screen_print(const char * text);
|
||||||
|
void screen_print(const char * text, uint8_t x, uint8_t y, uint8_t alignment);
|
||||||
|
|
||||||
|
|
||||||
// Show the bluetooth PIN screen
|
// Show the bluetooth PIN screen
|
||||||
|
@ -36,4 +37,4 @@ public:
|
||||||
void onPress();
|
void onPress();
|
||||||
};
|
};
|
||||||
|
|
||||||
extern Screen screen;
|
extern Screen screen;
|
||||||
|
|
Ładowanie…
Reference in New Issue