Touch screen drivers control dashboard for miniature locomotive. Features meters for speed, volts, power. Switches for lights, horns. Drives multiple STM3_ESC brushless motor controllers for complete brushless loco system as used in "The Brute" - www.jons-workshop.com
Dependencies: TS_DISCO_F746NG mbed Servo LCD_DISCO_F746NG BSP_DISCO_F746NG QSPI_DISCO_F746NG AsyncSerial FastPWM
Diff: Electric_Loco.h
- Revision:
- 14:6bcec5ac21ca
- Parent:
- 12:a25bdf135348
--- a/Electric_Loco.h Mon Jan 14 16:51:16 2019 +0000
+++ b/Electric_Loco.h Mon Mar 04 17:47:27 2019 +0000
@@ -37,8 +37,6 @@
#define AMMETER_Y 202
#define SPEEDO_X 274 // Speedometer screen position
#define SPEEDO_Y 135
-//#define V_A_SIZE 54 // Size of voltmeter and ammeter
-//#define SPEEDO_SIZE 112
#define V_A_SIZE 56 // Size of voltmeter and ammeter
#define SPEEDO_SIZE 114
@@ -127,7 +125,7 @@
void clr (uint32_t) ;
uint32_t read (uint32_t) ;
bool all_good () ;
- void report_any () ;
+ void report_any (bool) ;
} ;
class command_line_interpreter_core {
@@ -161,7 +159,7 @@
esc_speeds[i] = 0.0;
}
}
- bool request_mph () ; // Issue "'n'mph\r" to one particular STM3_ESC board to request RPM 22/06/2018
+ bool request_mph () ; // Issue "'n'mph\r" to one particular STM3_ESC board to request MPH 22/06/2018
void mph_update (double) ; // touched 08/01/2019
void set_board_ID (int) ; // called in response to 'whon' coming back from a STM3_ESC
void search_for_escs () ; // one-off call during startup to identify all connected STM3_ESCs