Browse Source

add panzer config

master
phail 2 years ago
parent
commit
3e92726c3a
  1. 2
      .travis.yml
  2. 9
      include/config.h
  3. 8
      platformio.ini
  4. 12
      src/config.cpp

2
.travis.yml

@ -17,4 +17,4 @@ matrix:
include:
- name: pio
script: platformio run -e default -e wrover_testrun -e odroidgo -e featheresp32_ESPrelay -e TTGO_IMU_WIFI -e TTGO_PADDELEC -e featheresp32_UDPrelay -e nodemcu -e featheresp32_nunchuk_espnow -e paddelec
script: platformio run -e default -e wrover_testrun -e odroidgo -e featheresp32_ESPrelay -e TTGO_IMU_WIFI -e TTGO_PADDELEC -e featheresp32_UDPrelay -e nodemcu -e panzer -e paddelec

9
include/config.h

@ -36,7 +36,7 @@ extern comm_settings communicationSettings;
#define CFG_PADDLE 6
#define CFG_WIRESHARK 7
#define CFG_NUNCHUK_ESPNOW_RELAY 8
#define CFG_NUNCHUK_REMOTE 10
#define CFG_PANZER 10
// Default config setting
@ -129,10 +129,9 @@ extern comm_settings communicationSettings;
# define ESPNOW_PEERMAC 0x30,0xAE,0xA4,0xE0,0x34,0x70 // odroid phail
#endif
#if (CONFIGURATION_SET == CFG_NUNCHUK_REMOTE)
# define INPUT_NUNCHUK
//# define ESPNOW_PEERMAC 0x30,0xAE,0xA4,0x26,0x26,0x14 // feather board with OLED
# define ESPNOW_PEERMAC 0x24,0x0A,0xC4,0xAF,0xC9,0xE0 // Woodeboard
#if (CONFIGURATION_SET == CFG_PANZER)
# define OTA_HANDLER
# define SERIAL2_GNDPIN 26 // Pin used as GND - Needed for psycho
#endif

8
platformio.ini

@ -19,7 +19,7 @@
;default_envs = paddelec
;default_envs = featheresp32_UDPrelay
;default_envs = wireshark
;default_envs = featheresp32_nunchuk_espnow
;default_envs = panzer
[env:default]
@ -164,15 +164,17 @@ build_flags =
-I src/hoverboardAPI/src/hbprotocol
-D CONFIGURATION_SET=6 ; Use config set Type 'CFG_PADDLE'
[env:featheresp32_nunchuk_espnow]
[env:panzer]
; Pinout: https://learn.adafruit.com/adafruit-huzzah32-esp32-feather/pinouts
board = featheresp32
platform = espressif32
framework = arduino
lib_deps = U8g2, I2Cdevlib-MPU6050
upload_port = 192.168.4.1
upload_protocol = espota
monitor_speed = 115200
build_flags =
-I include
-I src/hoverboardAPI/src
-I src/hoverboardAPI/src/hbprotocol
-D CONFIGURATION_SET=10 ; Use config set Type 'CFG_NUNCHUK_REMOTE'
-D CONFIGURATION_SET=10 ; Use config set Type 'CFG_PANZER'

12
src/config.cpp

@ -6,8 +6,8 @@ comm_settings communicationSettings =
{
input : COMM_IN_OTHER,
output : COMM_OUT_UDP,
{ wifi_ssid : "wireshark" },
{ wifi_pass : "bewegungsappar.at "}
{ wifi_ssid : "panzer" },
{ wifi_pass : "bewegungsappar.at"}
};
#endif
@ -94,12 +94,12 @@ comm_settings communicationSettings =
};
#endif
#if (CONFIGURATION_SET == CFG_NUNCHUK_REMOTE)
#if (CONFIGURATION_SET == CFG_PANZER)
comm_settings communicationSettings =
{
input : COMM_IN_OTHER,
output : COMM_OUT_ESPNOW,
{ wifi_ssid : "wireshark" },
input : COMM_IN_UDP,
output : COMM_OUT_UART,
{ wifi_ssid : "panzer" },
{ wifi_pass : "bewegungsappar.at" },
};
#endif
Loading…
Cancel
Save