1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2025-07-28 18:03:45 +02:00

Compare commits

...

2 Commits

Author SHA1 Message Date
FrightRisk
041c9bc045 add monitor commands to csb1 branch for the esp32 2024-07-16 08:45:39 -04:00
FrightRisk
156a29a629 Add EX-CSB1 definitions 2024-05-24 08:46:11 -04:00
2 changed files with 20 additions and 1 deletions

View File

@@ -89,10 +89,27 @@
// EX 8874 based shield connected to a 3.3V system (like ESP32) and 12bit (4096) ADC
// numbers are GPIO numbers. comments are UNO form factor shield pin numbers
#define EX8874_SHIELD F("EX8874"),\
#define EX8874_SHIELD F("EX-8874"),\
new MotorDriver(25/* 3*/, 19/*12*/, UNUSED_PIN, 13/*9*/, 35/*A2*/, 1.27, 5000, 36 /*A4*/), \
new MotorDriver(23/*11*/, 18/*13*/, UNUSED_PIN, 12/*8*/, 34/*A3*/, 1.27, 5000, 39 /*A5*/)
// EX-CSB1 motor shield definition - note it is different from ESPduino32 pins!
#define EX_CSB1 F("EX-CSB1"),\
new MotorDriver(25, 0, UNUSED_PIN, -14, 34, 1.27, 5000, 19), \
new MotorDriver(27, 15, UNUSED_PIN, -2, 35, 1.27, 5000, 23)
// EX-CSB1 with EX-8874 stacked on top for 4 outputs
#define EX_CSB1_STACK F("EX-CSB1 Stacked"),\
new MotorDriver(25, 0, UNUSED_PIN, -14, 34, 1.27, 5000, 19), \
new MotorDriver(27, 15, UNUSED_PIN, -2, 35, 1.27, 5000, 23), \
new MotorDriver(26, 5, UNUSED_PIN, 13, 36, 1.27, 5000, 18), \
new MotorDriver(16, 4, UNUSED_PIN, 12, 39, 1.27, 5000, 17)
// BOOSTER PIN INPUT ON ESP32
// On ESP32 you have the possibility to define a pin as booster input
// Arduino pin D2 is GPIO 26 on ESPDuino32, and GPIO 32 on EX-CSB1
#define BOOSTER_INPUT 32
#else
// STANDARD shield on any Arduino Uno or Mega compatible with the original specification.
#define STANDARD_MOTOR_SHIELD F("STANDARD_MOTOR_SHIELD"), \

View File

@@ -173,6 +173,8 @@ board = esp32dev
framework = arduino
lib_deps = ${env.lib_deps}
build_flags = -std=c++17
monitor_speed = 115200
monitor_echo = yes
[env:Nucleo-F411RE]
platform = ststm32