From 1beec108220733b3843668cd84432fcc6c3d5c92 Mon Sep 17 00:00:00 2001 From: Oliver Brandmueller Date: Tue, 3 Apr 2018 13:48:28 +0200 Subject: [PATCH 1/6] Add those for Atom/Linux environment --- .gitignore | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index f7a1e196..a535321a 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,5 @@ src/loraconf.h .vscode/*.db .vscode/.browse.c_cpp.db* +.clang_complete +.gcc-flags.json From ac9895e55af020614f2a11807c6b40a72b5ddb61 Mon Sep 17 00:00:00 2001 From: Klaus K Wilting Date: Fri, 11 Jan 2019 18:50:41 +0100 Subject: [PATCH 2/6] delete ttgobeam_old.h --- src/hal/ttgobeam_old.h | 50 ------------------------------------------ 1 file changed, 50 deletions(-) delete mode 100644 src/hal/ttgobeam_old.h diff --git a/src/hal/ttgobeam_old.h b/src/hal/ttgobeam_old.h deleted file mode 100644 index 4c5d1981..00000000 --- a/src/hal/ttgobeam_old.h +++ /dev/null @@ -1,50 +0,0 @@ -// clang-format off - -#ifndef _TTGOBEAM_H -#define _TTGOBEAM_H - -#include - -// Hardware related definitions for TTGO T-Beam board - -// enable only if device has these sensors, otherwise comment these lines -// BME680 sensor on I2C bus -#define HAS_BME GPIO_NUM_21, GPIO_NUM_22 // SDA, SCL -#define BME_ADDR BME680_I2C_ADDR_PRIMARY // connect SDIO of BME680 to GND -#define HAS_LED NOT_A_PIN // on board green LED uses same GPIO as SDA! - -// #define HAS_LED GPIO_NUM_21 // on board green LED - -// user defined sensors -//#define HAS_SENSORS 1 // comment out if device has user defined sensors - -//#define HAS_DISPLAY U8X8_SSD1306_128X64_NONAME_HW_I2C -//#define MY_OLED_SDA (21) -//#define MY_OLED_SCL (22) -//#define MY_OLED_RST U8X8_PIN_NONE -//#define DISPLAY_FLIP 1 // use if display is rotated - -#define HAS_LORA 1 // comment out if device shall not send data via LoRa -#define CFG_sx1276_radio 1 // HPD13A LoRa SoC -#define BOARD_HAS_PSRAM // use extra 4MB external RAM - -//#define DISABLE_BROWNOUT 1 // comment out if you want to keep brownout feature - -#define HAS_BUTTON GPIO_NUM_39 // on board button "BOOT" (next to reset button) - -#define HAS_BATTERY_PROBE ADC1_GPIO35_CHANNEL // battery probe GPIO pin -> ADC1_CHANNEL_7 -#define BATT_FACTOR 2 // voltage divider 100k/100k on board -#define HAS_GPS 1 // use on board GPS -#define GPS_SERIAL 9600, SERIAL_8N1, GPIO_NUM_12, GPIO_NUM_15 // UBlox NEO 6M or 7M with default configuration - -// Pins for LORA chip SPI interface, reset line and interrupt lines -#define LORA_SCK (5) -#define LORA_CS (18) -#define LORA_MISO (19) -#define LORA_MOSI (27) -#define LORA_RST LMIC_UNUSED_PIN -#define LORA_IRQ (26) -#define LORA_IO1 (32) // !! NEEDS EXTERNAL WIRING !! -#define LORA_IO2 LMIC_UNUSED_PIN - -#endif From 89343867182da328171200b941a9f0bdd53f1705 Mon Sep 17 00:00:00 2001 From: Verkehrsrot Date: Sat, 12 Jan 2019 11:03:17 +0100 Subject: [PATCH 3/6] Add files via upload --- img/paxcounter-curves.jpg | Bin 0 -> 35916 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 img/paxcounter-curves.jpg diff --git a/img/paxcounter-curves.jpg b/img/paxcounter-curves.jpg new file mode 100644 index 0000000000000000000000000000000000000000..21d787a9ee22741fff2e81a1e1ec4f6de6f98018 GIT binary patch literal 35916 zcmeFa2Ut_-);7FpB2AhU;D3PVCTxtZckm$TI;^o3Vs+r1)Nq@R8a&72nc|? z;2(e=1LOfBLc(wV;ENdiCpk$%LQG6TPD*;>Bqcc|B?UPJ1=T6q(^RKuPEk;tW;{(p zN6)~(KuOKS%t+5nOV2?6?Ir|7;5Eb~WF#bH^i&j7^#9W@{3n3sBw-H;Kt#X=5YiA3 z(GcL908RiPAOTDJt-$|$5fFl9JVAPrjGO{Iq2x3`NI*nHNKEvt)Zp2E;BkPMhJ^N< z$c+FaepNzJ>YDs5 z1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7u~8Su@RNCY9?))qrC6)DbN0yf3E5rc=FbQZHt{! zP2Pv{9-Y#+Rkwbb3 z9pt?;{xb;elUp};*}mP6s^;((Y^L7Ll<4bo*B*(lsC(Nc@o~59&NaZ3K%(U&KTf^2pTEN< z&}{bdSF^V6+n%vqWuPOr|K{!0ezo)mDAr%eA@V_uUt6Z{34c{iF&{L>WVOaaclm_e<1TA@Ep(j zBf(kAxTUkJqf0M-%leh`T1o77g~6l)4Td4LcLWS0?{8UtfKav@Ax^n=Ew(6X0GKH4B;(-4sth_|4G^$FI`a_yyx2bC)@nF?Pjk! z@ysoA-JaP~10GvWem>PMdEU;qL4Qm?es9nDW547jaLsYd#&xr6m%SEyD>mo-hUl5) zku?ia_Z5UWfBJKL)`wRb%=h*w|B3i;yvs)aQLfjyPs!_kOgePff4W(cCk8|aR*#1YU|DpU}5;edz6OG&E z|LJ!BW3~LD`ClG8W8kd>xBdUQuHOt?*ay`0@TxuM{uhZK=l^57RsTs>{==*JE%(0| z`~dFzWX`q!DYoy-q6Uzr_K-ioDT9UWzzce%fsKt5TSgr@3_`N1{LSCrVn39><$o;w z-totDRYlXUU!RU{`Kf$$ox&tTX-}D!Mj4IrG}HGz!bhvWVp&HxvadEG`&d#ehZv5U WHJX-2)4*sN7)=ATPXmnqZvp`D$A}{U literal 0 HcmV?d00001 From 76d7d187b154126ce5d1d48765d5371726503406 Mon Sep 17 00:00:00 2001 From: Verkehrsrot Date: Sat, 12 Jan 2019 11:04:35 +0100 Subject: [PATCH 4/6] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 74f8a44c..f27b906e 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,7 @@ + # Use case From af5235117749e5607b63b2da45f9dc35725b2be5 Mon Sep 17 00:00:00 2001 From: Klaus K Wilting Date: Mon, 14 Jan 2019 14:57:22 +0100 Subject: [PATCH 5/6] globals.h: fix wrong include Mallocator.h --- include/globals.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/globals.h b/include/globals.h index bff3fc78..fd0716f4 100644 --- a/include/globals.h +++ b/include/globals.h @@ -8,7 +8,7 @@ #include #include #include -#include "Mallocator.h" +#include "mallocator.h" //#include "inc/bsec_datatypes.h" #include "../lib/Bosch-BSEC/src/inc/bsec_datatypes.h" From 66ef9927824d12c77e19a36c9675b020c64d0920 Mon Sep 17 00:00:00 2001 From: Klaus K Wilting Date: Fri, 18 Jan 2019 22:19:40 +0100 Subject: [PATCH 6/6] board ttgo t-fox added --- platformio.ini | 20 ++++++++++++++++++-- src/hal/ttgofox.h | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 51 insertions(+), 2 deletions(-) create mode 100644 src/hal/ttgofox.h diff --git a/platformio.ini b/platformio.ini index 21943a92..01b8b602 100644 --- a/platformio.ini +++ b/platformio.ini @@ -16,6 +16,7 @@ env_default = generic ;env_default = ttgov21old ;env_default = ttgov21new ;env_default = ttgobeam +;env_default = ttgofox ;env_default = lopy ;env_default = lopy4 ;env_default = fipy @@ -32,14 +33,13 @@ description = Paxcounter is a proof-of-concept ESP32 device for metering passeng release_version = 1.7.11 ; 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 = 0 +debug_level = 3 ; UPLOAD MODE: select esptool to flash via USB/UART, select custom to upload to cloud for OTA upload_protocol = esptool ;upload_protocol = custom extra_scripts = pre:build.py keyfile = ota.conf platform_espressif32 = espressif32@1.6.0 -;platform_espressif32 = https://github.com/platformio/platform-espressif32.git#feature/stage board_build.partitions = min_spiffs.csv monitor_speed = 115200 lib_deps_lora = @@ -202,6 +202,22 @@ upload_protocol = ${common.upload_protocol} extra_scripts = ${common.extra_scripts} monitor_speed = ${common.monitor_speed} +[env:ttgofox] +platform = ${common.platform_espressif32} +framework = arduino +board = esp32dev +board_build.partitions = ${common.board_build.partitions} +upload_speed = 921600 +lib_deps = + ${common.lib_deps_basic} + ${common.lib_deps_lora} + ${common.lib_deps_display} +build_flags = + ${common.build_flags_basic} +upload_protocol = ${common.upload_protocol} +extra_scripts = ${common.extra_scripts} +monitor_speed = ${common.monitor_speed} + [env:ttgobeam] platform = ${common.platform_espressif32} framework = arduino diff --git a/src/hal/ttgofox.h b/src/hal/ttgofox.h new file mode 100644 index 00000000..8f0a6d2d --- /dev/null +++ b/src/hal/ttgofox.h @@ -0,0 +1,33 @@ +// clang-format off + +#ifndef _TTGOFOX_H +#define _TTGOFOX_H + +#include + +#define HAS_LORA 1 // comment out if device shall not send data via LoRa +#define CFG_sx1276_radio 1 // HPD13A LoRa SoC + +#define HAS_DISPLAY U8X8_SSD1306_128X64_NONAME_HW_I2C +#define HAS_LED NOT_A_PIN // green on board LED +//#define LED_ACTIVE_LOW 1 // Onboard LED is active when pin is LOW +#define HAS_BATTERY_PROBE ADC1_GPIO35_CHANNEL // uses GPIO7 +#define BATT_FACTOR 2 // voltage divider 100k/100k on board +#define HAS_BUTTON GPIO_NUM_36 // on board button (next to reset) + +// Pins for I2C interface of OLED Display +#define MY_OLED_SDA (21) +#define MY_OLED_SCL (22) +#define MY_OLED_RST U8X8_PIN_NONE + +// Pins for LORA chip SPI interface, reset line and interrupt lines +#define LORA_SCK (5) +#define LORA_CS (18) +#define LORA_MISO (19) +#define LORA_MOSI (27) +#define LORA_RST (23) +#define LORA_IRQ (26) +#define LORA_IO1 (33) +#define LORA_IO2 (32) + +#endif \ No newline at end of file