- ANALOG METER, initial offering - Emulation of an analog/mechanical meter using the SPI TFT display \"http://mbed.org/cookbook/SPI-driven-QVGA-TFT\" (touch not used) Meter takes an integer number from 0 - 100 and uses that number to position the meter\'s needle - An additional auto-scaling feature allows for + floating numbers from 0.0 - 10000.0 in \"NewfNumb\" Scaling is noted two ways a. Color of the meter body changes b. A text scale factor is displayed in the upper, right-hand corner, near the full scale reading Value of \"NewfNumb\" Meter_Body Scale_Factor < -0.0 Blue 0 0.1 - 9.9 Green x1 10.0 - 99.0 Yellow x10 100.0 - 999.0 Orange x100 1000.0 - 9990.0 Red x1k >= 10000.0 Red peg! - If NewfNumb is > 600.0, a flashing yellow warning message appears in the center of the meter movement - The date and time are displayed in the lower right corner of the display - The value of NewfNumb being shown in the movement is also displayed in the lower left coener of the display - A timer ISR automatically updates the meter\'s movement Other Stuff: - Additional demo test program, walks analog meter up and down through all auto scales by manipulating the value of NewfNumb - USB serial port used to dump a few messages. Not needed, set to 921600 BAUD - LED1 slowly gets brighter and dimmer as main loop runs - If for some reason, the \"MeterNumber\" int register ends up >100 or <0, a Purple display appears at 50% movement with a \"bad#\" scale factor - There is NO provision for setting the RTC. Note that TimeZone and DST are added to the RTC number
Files at revision 0:fc70640071d2
Name | Size | Actions |
---|---|---|
[up] | ||
Arial12x12.h | 17494 | Revisions Annotate |
Arial24x23.h | 45175 | Revisions Annotate |
Arial28x28.h | 68205 | Revisions Annotate |
BookAntiqua19x19-14.h | 36562 | Revisions Annotate |
Courier10x13-12B.h | 15240 | Revisions Annotate |
Courier8x12-10.h | 12932 | Revisions Annotate |
Terminal11x16-12.h | 16394 | Revisions Annotate |
Terminal6x8.h | 7166 | Revisions Annotate |
Terminal8x12-9.h | 12934 | Revisions Annotate |
Verdana22x21-16.h | 41736 | Revisions Annotate |
font_big.h | 124669 | Revisions Annotate |