Merge pull request #549 from cyberman54/development
M5 stack support & lib updates
This commit is contained in:
commit
0712ddfcde
@ -39,7 +39,7 @@ This can all be done with a single small and cheap ESP32 board for less than $20
|
||||
- WeMos: LoLin32 + [LoraNode32 shield](https://github.com/hallard/LoLin32-Lora),
|
||||
LoLin32lite + [LoraNode32-Lite shield](https://github.com/hallard/LoLin32-Lite-Lora)
|
||||
- Adafruit ESP32 Feather + LoRa Wing + OLED Wing, #IoT Octopus32 (Octopus + ESP32 Feather)
|
||||
- M5Stack: [Basic Core*](https://m5stack.com/collections/m5-core/products/basic-core-iot-development-kit) + [Lora Module RA-01H](https://m5stack.com/collections/m5-module/products/lora-module-868mhz)
|
||||
- M5Stack: [Basic Core IoT*](https://m5stack.com/collections/m5-core/products/basic-core-iot-development-kit) + [Lora Module RA-01H](https://m5stack.com/collections/m5-module/products/lora-module-868mhz), [Fire IoT*](https://m5stack.com/collections/m5-core/products/fire-iot-development-kit)
|
||||
|
||||
*) supports microSD-card
|
||||
|
||||
|
@ -45,7 +45,7 @@ description = Paxcounter is a device for metering passenger flows in realtime. I
|
||||
|
||||
[common]
|
||||
; for release_version use max. 10 chars total, use any decimal format like "a.b.c"
|
||||
release_version = 1.9.89
|
||||
release_version = 1.9.90
|
||||
; DEBUG LEVEL: For production run set to 0, otherwise device will leak RAM while running!
|
||||
; 0=None, 1=Error, 2=Warn, 3=Info, 4=Debug, 5=Verbose
|
||||
debug_level = 3
|
||||
@ -58,9 +58,9 @@ monitor_speed = 115200
|
||||
upload_speed = 115200
|
||||
lib_deps_lora =
|
||||
;MCCI LoRaWAN LMIC library@>=3.1.0 ; MCCI LMIC by Terrill Moore
|
||||
https://github.com/mcci-catena/arduino-lmic.git#98a1b35
|
||||
https://github.com/mcci-catena/arduino-lmic.git#79accbb
|
||||
lib_deps_display =
|
||||
ss_oled@3.3.0 ; simple and small OLED lib by Larry Bank
|
||||
ss_oled@>=3.3.0 ; simple and small OLED lib by Larry Bank
|
||||
BitBang_I2C@>=1.3.0
|
||||
QRCode@>=0.0.1
|
||||
lib_deps_matrix_display =
|
||||
|
@ -68,21 +68,11 @@ void init_display(bool verbose) {
|
||||
ESP_LOGV(TAG, "[%0.3f] i2c mutex lock failed", millis() / 1000.0);
|
||||
else {
|
||||
|
||||
// is we have display RST line we toggle it to re-initialize display
|
||||
#ifdef MY_OLED_RST
|
||||
pinMode(MY_OLED_RST, OUTPUT);
|
||||
digitalWrite(MY_OLED_RST, 0); // initialization of SSD1306 chip is executed
|
||||
delay(1); // keep RES low for at least 3us according to SSD1306 datasheet
|
||||
digitalWrite(MY_OLED_RST, 1); // normal operation
|
||||
#endif
|
||||
|
||||
// init display
|
||||
#ifndef DISPLAY_FLIP
|
||||
oledInit(OLED_128x64, false, false, -1, -1,
|
||||
MY_OLED_RST == NOT_A_PIN ? -1 : MY_OLED_RST, 400000L);
|
||||
oledInit(OLED_128x64, false, false, -1, -1, MY_OLED_RST, 400000L);
|
||||
#else
|
||||
oledInit(OLED_128x64, true, false, -1, -1,
|
||||
MY_OLED_RST == NOT_A_PIN ? -1 : MY_OLED_RST, 400000L);
|
||||
oledInit(OLED_128x64, true, false, -1, -1, MY_OLED_RST, 400000L);
|
||||
#endif
|
||||
|
||||
// set display buffer
|
||||
|
@ -46,11 +46,9 @@ void start_ota_update() {
|
||||
#ifdef HAS_DISPLAY
|
||||
|
||||
#ifndef DISPLAY_FLIP
|
||||
oledInit(OLED_128x64, false, false, -1, -1,
|
||||
MY_OLED_RST == NOT_A_PIN ? -1 : MY_OLED_RST, 400000L);
|
||||
oledInit(OLED_128x64, false, false, -1, -1, MY_OLED_RST, 400000L);
|
||||
#else
|
||||
oledInit(OLED_128x64, true, false, -1, -1,
|
||||
MY_OLED_RST == NOT_A_PIN ? -1 : MY_OLED_RST, 400000L);
|
||||
oledInit(OLED_128x64, true, false, -1, -1, MY_OLED_RST, 400000L);
|
||||
#endif
|
||||
|
||||
// set display buffer
|
||||
|
@ -77,7 +77,7 @@
|
||||
#define TIME_SYNC_INTERVAL_RETRY 10 // retry time sync after lost sync each .. minutes [default = 10], 0 means off
|
||||
#define TIME_SYNC_COMPILEDATE 0 // set to 1 to use compile date to initialize RTC after power outage [default = 0]
|
||||
#define TIME_SYNC_LORAWAN 0 // set to 1 to use LORA network as time source, 0 means off [default = 0]
|
||||
#define TIME_SYNC_LORASERVER 1 // set to 1 to use LORA timeserver as time source, 0 means off [default = 0]
|
||||
#define TIME_SYNC_LORASERVER 0 // set to 1 to use LORA timeserver as time source, 0 means off [default = 0]
|
||||
|
||||
// settings for syncing time with timeserver applications
|
||||
#define TIME_SYNC_SAMPLES 1 // number of time requests for averaging
|
||||
|
Loading…
Reference in New Issue
Block a user