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

Revision:
5:21a8ac83142c
Parent:
4:67478861c670
Child:
6:57dc760effd4
Child:
9:644867052318
--- a/Electric_Loco.h	Mon Apr 09 07:51:37 2018 +0000
+++ b/Electric_Loco.h	Tue May 01 08:34:36 2018 +0000
@@ -20,12 +20,8 @@
 Take finger off and control drifts down to central 'neutral' position.
 */
 
-//#define SDCARD
-
 #define QSPI
 
-//#define CANbus
-
 #define MAX_TOUCHES 6       //  Touch screen can decode up to this many simultaneous finger press positions
 #define NEUTRAL_VAL   150   //  Number of pixels
 
@@ -35,8 +31,8 @@
 #define SLIDERH 268         //  pixel height of slider
 
 //  To get speedo reading correctly, need to use correct gear ratio and wheel size info
-//#define BOGIE_5_INCH
-#define BOGIE_7_and_a_quarter_INCH
+#define BOGIE_5_INCH
+//#define BOGIE_7_and_a_quarter_INCH
 
 const   int
 
@@ -86,3 +82,14 @@
 struct  key     {   int keynum; int x;  int y;  bool pressed;  }   ;
 struct  ky_bd   {   int count,  slider_y; key ky[MAX_TOUCHES + 1];   bool  sli;   }  ;
 
+const   int MAX_PARAMS = 20;
+struct  parameters  {
+    struct kb_command const * clist;
+    char    cmd_line[120];
+    char    * cmd_line_ptr;
+    int32_t position_in_list, numof_dbls, target_unit, numof_menu_items, com_no, cl_index, gp_i;
+    double  dbl[MAX_PARAMS];
+    bool    respond;
+}   ;
+
+