A simple meter using Adafruit 2.8 TFT with touch v2

Dependencies:   SPI_STMPE610 UniGraphic mbed vt100

/media/uploads/Rhyme/tester_s.jpg

A dumb simple voltage tester using ADC.
With FRDM-KL25Z, you can measure about 0V to 3.28V.
Nothing to drop your jaw nor holding your breath
but I wanted one, so I wrote one ;-)

とても単純はADCを使用した電圧テスターです。
FRDM-KL25Z を使用した場合、0V ~ 3.28V くらいが測定範囲です。
特に目新しいことも、驚くこともありませんが、
自分が欲しいので書いてみました (^ - ^)

On 18-May-2018 
I changed the number display from 0.00 to 0.000
so that I can measure the change of a small loadcell.

2018年5月18日 
ロードセル (重量センサ)の出力値の変化を見たかったので
有効数字を小数点以下2桁から3桁に変更しました。

Committer:
Rhyme
Date:
Thu Jul 20 02:37:13 2017 +0000
Revision:
0:d01def9cf41e
Child:
3:bf8761c8eb17
first working version

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Rhyme 0:d01def9cf41e 1 #ifndef _METER_H_
Rhyme 0:d01def9cf41e 2 #define _METER_H_
Rhyme 0:d01def9cf41e 3
Rhyme 0:d01def9cf41e 4 class meter {
Rhyme 0:d01def9cf41e 5 public:
Rhyme 0:d01def9cf41e 6 meter(int x, int y, int width, int height, float min, float max) ;
Rhyme 0:d01def9cf41e 7 ~meter(void) ;
Rhyme 0:d01def9cf41e 8 void drawFrame(void) ;
Rhyme 0:d01def9cf41e 9 void drawScale(void) ;
Rhyme 0:d01def9cf41e 10 void drawHand(float value) ;
Rhyme 0:d01def9cf41e 11 void drawValue(float value) ;
Rhyme 0:d01def9cf41e 12 void draw(void) ;
Rhyme 0:d01def9cf41e 13 void draw(float value) ;
Rhyme 0:d01def9cf41e 14 void update(float value) ;
Rhyme 0:d01def9cf41e 15
Rhyme 0:d01def9cf41e 16 private:
Rhyme 0:d01def9cf41e 17 int _x ;
Rhyme 0:d01def9cf41e 18 int _y ;
Rhyme 0:d01def9cf41e 19 int _w ;
Rhyme 0:d01def9cf41e 20 int _h ;
Rhyme 0:d01def9cf41e 21 int _center_x ;
Rhyme 0:d01def9cf41e 22 int _center_y ;
Rhyme 0:d01def9cf41e 23 float _value ;
Rhyme 0:d01def9cf41e 24 float _min ;
Rhyme 0:d01def9cf41e 25 float _max ;
Rhyme 0:d01def9cf41e 26
Rhyme 0:d01def9cf41e 27 } ;
Rhyme 0:d01def9cf41e 28
Rhyme 0:d01def9cf41e 29 #endif /* _METER_H_ */