Merge pull request #42 from bobbycar-graz/peters_bobbycar

Peters bobbycar
This commit is contained in:
2020-06-01 01:36:10 +02:00
committed by GitHub
3 changed files with 58 additions and 1 deletions

View File

@@ -62,6 +62,25 @@ build_flags =
-DPINS_BREMS=33
-DFEATURE_OTA
[peters_platine_reversed]
build_flags =
-DILI9341_DRIVER=1
-DTFT_MOSI=13
-DTFT_SCLK=15
-DTFT_CS=14
-DTFT_DC=12
-DTFT_RST=2
-DSPI_FREQUENCY=27000000
-DSPI_READ_FREQUENCY=20000000
-DSPI_TOUCH_FREQUENCY=2500000
-DDEFAULT_SWAPSCREENBYTES=false
-DPINS_RX1=4
-DPINS_TX1=5
-DPINS_RX2=25
-DPINS_TX2=26
-DPINS_GAS=33
-DPINS_BREMS=35
-DFEATURE_OTA
[feedc0de]
@@ -300,3 +319,41 @@ build_flags =
-DDEFAULT_GASMAX=4095
-DDEFAULT_BREMSMIN=0
-DDEFAULT_BREMSMAX=4095
[peter]
build_flags =
${common_env_data.build_flags}
${peters_platine_reversed.build_flags}
${default_limits.build_flags}
-DDEVICE_PREFIX=bobbycar
-DDEFAULT_GASMIN=1000
-DDEFAULT_GASMAX=4000
-DDEFAULT_BREMSMIN=200
-DDEFAULT_BREMSMAX=2700
[env:peter_usb]
platform = ${common_env_data.platform}
board = ${common_env_data.board}
framework = ${common_env_data.framework}
board_build.partitions = ${common_env_data.board_build.partitions}
lib_deps = ${common_env_data.lib_deps}
lib_compat_mode = ${common_env_data.lib_compat_mode}
build_unflags = ${common_env_data.build_unflags}
build_flags = ${peter.build_flags}
upload_speed = 921600
[env:peter_ota]
platform = ${common_env_data.platform}
board = ${common_env_data.board}
framework = ${common_env_data.framework}
board_build.partitions = ${common_env_data.board_build.partitions}
lib_deps = ${common_env_data.lib_deps}
lib_compat_mode = ${common_env_data.lib_compat_mode}
build_unflags = ${common_env_data.build_unflags}
build_flags = ${peter.build_flags}
upload_protocol = espota
upload_port = 192.168.127.83

View File

@@ -21,7 +21,7 @@
#include "actions/bluetoothbeginaction.h"
#include "actions/bluetoothbeginmasteraction.h"
#include "actions/bluetoothconnectbmsaction.h"
#include "webserver.h"
#include "bobby_webserver.h"
namespace {
ModeInterface *lastMode{};