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

Embed: (wiki syntax)

« Back to documentation index

moving_coil_meter Class Reference

moving_coil_meter Class Reference

class moving_coil_meter Create moving coil meter graphic using STM32F746G-DISCO. More...

#include <movingcoilmeter.h>


Detailed Description

class moving_coil_meter Create moving coil meter graphic using STM32F746G-DISCO.

Usage example :

top line of constructor : moving_coil_meter::moving_coil_meter ( int bod_col, int bgcol, int needlecol, int textcol, int scalecol, int cx, int cy, int size, double lo, double hi, double start_ang, double end_ang, int scaleticks, char * units, int decimal_places, bool sign)

moving_coil_meter Voltmeter ( LCD_COLOR_BLACK, // Frame / body colour LCD_COLOR_WHITE, // Dial face colour LCD_COLOR_RED, // Moving needle colour LCD_COLOR_BLUE, // Text colour for Units e.g. 'V' and e.g. '32.7' LCD_COLOR_MAGENTA, // Scale graduations colour VOLTMETER_X, // X co-ord, centre of meter VOLTMETER_Y, // Y co-ord, centre of meter V_A_SIZE, // Meter is square with rounded corners. This is meter dial face radius 22.0, // Scale not limited to e.g. 0 to 10. This is reading at anti-clock limit 59.0, // This is reading at full scale deflection 1.25 * PI, // Angle of needle at anti-clockwise limit -0.25 * PI , // Angle of needle at full scale deflection (clockwise max) 30, // Number of scale graduation marks drwan "V", // Text for Units, e.g. 'V' or 'MPH' ONE_DP, // NO_DPS or ONE_DP - supports only no decimal places or one false) ; // true to show '+' or '-', false to supress sign display

Definition at line 33 of file movingcoilmeter.h.