Skip to content

Commit 8ad22c9

Browse files
authored
Merge pull request #966 from cyberman54/development
Development
2 parents 1043d0a + 831d94c commit 8ad22c9

File tree

6 files changed

+50
-55
lines changed

6 files changed

+50
-55
lines changed

platformio_orig.ini

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,15 @@ description = Paxcounter is a device for metering passenger flows in realtime. I
4747

4848
[common]
4949
; for release_version use max. 10 chars total, use any decimal format like "a.b.c"
50-
release_version = 3.5.0
50+
release_version = 3.6.0
5151
; DEBUG LEVEL: For production run set to 0, otherwise device will leak RAM while running!
5252
; 0=None, 1=Error, 2=Warn, 3=Info, 4=Debug, 5=Verbose
5353
debug_level = 3
5454
extra_scripts = pre:src/build.py
5555
otakeyfile = ota.conf
5656
lorakeyfile = loraconf.h
5757
lmicconfigfile = lmic_config.h
58-
platform_espressif32 = espressif32@6.0.1
58+
platform_espressif32 = espressif32@6.3.0
5959
monitor_speed = 115200
6060
upload_speed = 115200 ; set by build.py and taken from hal file
6161
lib_deps_lora =
@@ -92,19 +92,17 @@ lib_deps_all =
9292
${common.lib_deps_gps}
9393
${common.lib_deps_sensors}
9494
${common.lib_deps_ledmatrix}
95-
build_flags_basic =
95+
build_flags_all =
9696
-include "src/paxcounter.conf"
97-
'-DCORE_DEBUG_LEVEL=${common.debug_level}'
98-
'-DLOG_LOCAL_LEVEL=${common.debug_level}'
99-
'-DPROGVERSION="${common.release_version}"'
97+
'-D CORE_DEBUG_LEVEL=${common.debug_level}'
98+
'-D LOG_LOCAL_LEVEL=${common.debug_level}'
99+
'-D PROGVERSION="${common.release_version}"'
100100
'-D LIBPAX_WIFI'
101101
'-D LIBPAX_BLE'
102102
'-D LIBPAX_ARDUINO'
103-
'-DUSE_ESP_IDF_LOG'
104-
'-DTAG=__FILE__'
105-
build_flags_all =
106-
${common.build_flags_basic}
107-
-mfix-esp32-psram-cache-issue
103+
'-D USE_ESP_IDF_LOG'
104+
'-D TAG=__FILE__'
105+
'-U BOARD_HAS_PSRAM'
108106

109107
[env]
110108
framework = arduino

platformio_orig_s3.ini

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ description = Paxcounter is a device for metering passenger flows in realtime. I
1010

1111
[common]
1212
; for release_version use max. 10 chars total, use any decimal format like "a.b.c"
13-
release_version = 3.5.0
13+
release_version = 3.6.0
1414
; DEBUG LEVEL: For production run set to 0, otherwise device will leak RAM while running!
1515
; 0=None, 1=Error, 2=Warn, 3=Info, 4=Debug, 5=Verbose
1616
debug_level = 3
1717
extra_scripts = pre:src/build.py
1818
otakeyfile = ota.conf
1919
lorakeyfile = loraconf.h
2020
lmicconfigfile = lmic_config.h
21-
platform_espressif32 = espressif32@6.0.1
21+
platform_espressif32 = espressif32@6.3.0
2222
monitor_speed = 115200
2323
upload_speed = 115200 ; set by build.py and taken from hal file
2424
lib_deps_all =
@@ -31,19 +31,17 @@ lib_deps_all =
3131
mathertel/OneButton @ ^2.0.3
3232
256dpi/MQTT @ ^2.5.1
3333
ricmoo/QRCode @ ^0.0.1
34-
build_flags_basic =
34+
build_flags_all =
3535
-include "src/paxcounter.conf"
36-
'-DCORE_DEBUG_LEVEL=${common.debug_level}'
37-
'-DLOG_LOCAL_LEVEL=${common.debug_level}'
38-
'-DPROGVERSION="${common.release_version}"'
36+
'-D CORE_DEBUG_LEVEL=${common.debug_level}'
37+
'-D LOG_LOCAL_LEVEL=${common.debug_level}'
38+
'-D PROGVERSION="${common.release_version}"'
3939
'-D LIBPAX_WIFI'
4040
'-D LIBPAX_BLE'
4141
'-D LIBPAX_ARDUINO'
42-
'-DUSE_ESP_IDF_LOG'
43-
'-DTAG=__FILE__'
44-
build_flags_all =
45-
${common.build_flags_basic}
46-
-mfix-esp32-psram-cache-issue
42+
'-D USE_ESP_IDF_LOG'
43+
'-D TAG=__FILE__'
44+
'-U BOARD_HAS_PSRAM'
4745

4846
[env]
4947
framework = arduino

src/display.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ void dp_init(bool verbose) {
142142
void dp_refresh(bool nextPage) {
143143
struct count_payload_t count; // libpax count storage
144144
static uint8_t DisplayPage = 0;
145-
char timeState, strftime_buf[64];
145+
char timeState, strftime_buf[45];
146146
time_t now;
147147
struct tm timeinfo = {0};
148148
#ifndef HAS_BUTTON

src/hal/generic.h

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111
// generic.h is kitchensink with all available options
1212

1313
#define HAS_LORA 1 // comment out if device shall not send data via LoRa or has no LoRa
14-
#define HAS_SPI 1 // comment out if device shall not send data via SPI
14+
//#define HAS_SPI 1 // comment out if device shall not send data via SPI
1515
// pin definitions for SPI slave interface
16-
#define SPI_MOSI GPIO_NUM_23
17-
#define SPI_MISO GPIO_NUM_19
18-
#define SPI_SCLK GPIO_NUM_18
19-
#define SPI_CS GPIO_NUM_5
16+
//#define SPI_MOSI GPIO_NUM_23
17+
//#define SPI_MISO GPIO_NUM_19
18+
//#define SPI_SCLK GPIO_NUM_18
19+
//#define SPI_CS GPIO_NUM_5
2020

2121
// enable only if you want to store a local paxcount table on the device
2222
#define HAS_SDCARD 1 // this board has an SD-card-reader/writer
@@ -35,9 +35,9 @@
3535
// for loading necessary libraries
3636

3737
// BME680 sensor on I2C bus
38-
#define HAS_BME 1 // Enable BME sensors in general
39-
#define HAS_BME680 GPIO_NUM_21, GPIO_NUM_22 // SDA, SCL
40-
#define BME680_ADDR BME68X_I2C_ADDR_LOW // connect SDIO of BME680 to GND
38+
//#define HAS_BME 1 // Enable BME sensors in general
39+
//#define HAS_BME680 GPIO_NUM_21, GPIO_NUM_22 // SDA, SCL
40+
//#define BME680_ADDR BME68X_I2C_ADDR_LOW // connect SDIO of BME680 to GND
4141

4242
// BME280 sensor on I2C bus
4343
//#define HAS_BME 1 // Enable BME sensors in general
@@ -49,10 +49,10 @@
4949
//#define BMP180_ADDR 0x77
5050

5151
// SDS011 dust sensor settings
52-
#define HAS_SDS011 1 // use SDS011
52+
//#define HAS_SDS011 1 // use SDS011
5353
// used pins on the ESP-side:
54-
#define SDS_TX 19 // connect to RX on the SDS011
55-
#define SDS_RX 23 // connect to TX on the SDS011
54+
//#define SDS_TX 19 // connect to RX on the SDS011
55+
//#define SDS_RX 23 // connect to TX on the SDS011
5656

5757
// up to three user defined sensors (if connected)
5858
//#define HAS_SENSOR_1 1 // comment out if device has user defined sensor #1
@@ -64,29 +64,29 @@
6464
//#define BOARD_HAS_PSRAM // use if board has external SPIRAM, note: this will reduce IRAM0 by 64KB for SPIRAM cache
6565
#define DISABLE_BROWNOUT 1 // comment out if you want to keep brownout feature
6666

67-
#define HAS_DISPLAY 1
67+
//#define HAS_DISPLAY 1
6868
//#define MY_DISPLAY_FLIP 1 // use if display is rotated
6969
#define BAT_MEASURE_ADC ADC1_GPIO35_CHANNEL // battery probe GPIO pin -> ADC1_CHANNEL_7
7070
#define BAT_VOLTAGE_DIVIDER 2 // voltage divider 100k/100k on board
7171

7272
#define HAS_LED (21) // on board LED
7373
#define HAS_BUTTON (39) // on board button
74-
#define RGB_LED_COUNT 1 // we have 1 LED
75-
#define HAS_RGB_LED FastLED.addLeds<WS2812, GPIO_NUM_0, GRB>(leds, RGB_LED_COUNT);
74+
//#define RGB_LED_COUNT 1 // we have 1 LED
75+
//#define HAS_RGB_LED FastLED.addLeds<WS2812, GPIO_NUM_0, GRB>(leds, RGB_LED_COUNT);
7676

7777
// GPS settings
78-
#define HAS_GPS 1 // use on board GPS
79-
#define GPS_SERIAL 9600, SERIAL_8N1, GPIO_NUM_12, GPIO_NUM_15 // UBlox NEO 6M RX, TX
80-
#define GPS_INT GPIO_NUM_13 // 30ns accurary timepulse, to be external wired on pcb: NEO 6M Pin#3 -> GPIO13
78+
//#define HAS_GPS 1 // use on board GPS
79+
//#define GPS_SERIAL 9600, SERIAL_8N1, GPIO_NUM_12, GPIO_NUM_15 // UBlox NEO 6M RX, TX
80+
//#define GPS_INT GPIO_NUM_13 // 30ns accurary timepulse, to be external wired on pcb: NEO 6M Pin#3 -> GPIO13
8181

8282
// Pins for I2C interface of OLED Display
83-
#define MY_DISPLAY_SDA (4)
84-
#define MY_DISPLAY_SCL (15)
85-
#define MY_DISPLAY_RST (16)
83+
//#define MY_DISPLAY_SDA (4)
84+
//#define MY_DISPLAY_SCL (15)
85+
//#define MY_DISPLAY_RST (16)
8686

8787
// Settings for on board DS3231 RTC chip
88-
#define HAS_RTC MY_DISPLAY_SDA, MY_DISPLAY_SCL // SDA, SCL
89-
#define RTC_INT GPIO_NUM_34 // timepulse with accuracy +/- 2*e-6 [microseconds] = 0,1728sec / day
88+
//#define HAS_RTC MY_DISPLAY_SDA, MY_DISPLAY_SCL // SDA, SCL
89+
//#define RTC_INT GPIO_NUM_34 // timepulse with accuracy +/- 2*e-6 [microseconds] = 0,1728sec / day
9090

9191
// Settings for IF482 interface
9292
//#define HAS_IF482 9600, SERIAL_7E1, GPIO_NUM_12, GPIO_NUM_14 // IF482 serial port parameters

src/hal/m5fire.h

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// clang-format off
22
// upload_speed 921600
3-
// board m5stack-core-esp32
4-
// b0ard m5stack-fire -> does not compile due to IRAM0 shortage, because 64KB of 192KB used for caching external SPIRAM
3+
// board m5stack-fire
54

65
// note use of GPIO16/17
76
// https://www.bjoerns-techblog.de/2019/03/m5stack-fire-eine-uebersicht/
@@ -22,18 +21,18 @@
2221
#define LORA_IO2 LMIC_UNUSED_PIN
2322

2423
// enable only if you want to store a local paxcount table on the device
25-
#define HAS_SDCARD 1 // this board has an SD-card-reader/writer
26-
#define SDCARD_CS GPIO_NUM_4
27-
#define SDCARD_MOSI MOSI
28-
#define SDCARD_MISO MISO
29-
#define SDCARD_SCLK SCK
24+
//#define HAS_SDCARD 1 // this board has an SD-card-reader/writer
25+
//#define SDCARD_CS GPIO_NUM_4
26+
//#define SDCARD_MOSI MOSI
27+
//#define SDCARD_MISO MISO
28+
//#define SDCARD_SCLK SCK
3029

3130
#define CFG_sx1276_radio 1 // select LoRa chip
3231
#define DISABLE_BROWNOUT 1 // comment out if you want to keep brownout feature
3332

3433
#define HAS_LED NOT_A_PIN // no on board LED (?)
35-
#define RGB_LED_COUNT 10 // M5fire has a stripe of 10 RGB Pixels
36-
#define HAS_RGB_LED FastLED.addLeds<SK6812, GPIO_NUM_15, GRB>(leds, RGB_LED_COUNT);
34+
//#define RGB_LED_COUNT 10 // M5fire has a stripe of 10 RGB Pixels
35+
//#define HAS_RGB_LED FastLED.addLeds<SK6812, GPIO_NUM_15, GRB>(leds, RGB_LED_COUNT);
3736
#define HAS_BUTTON (39) // on board button A
3837

3938
// power management settings

src/lmic_config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,4 +106,4 @@
106106
//#define USE_MBEDTLS_AES
107107

108108
// Define this for devices with external power.
109-
//#define LMIC_MCMD_DEVS_BATT_DEFAULT MCMD_DEVS_EXT_POWER
109+
//#define LMIC_MCMD_DEVS_BATT_DEFAULT MCMD_DEVS_EXT_POWER

0 commit comments

Comments
 (0)