A simple meter using Adafruit 2.8 TFT with touch v2
Dependencies: SPI_STMPE610 UniGraphic mbed vt100
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桁に変更しました。
meter.h
- Committer:
- Rhyme
- Date:
- 2017-07-20
- Revision:
- 0:d01def9cf41e
- Child:
- 3:bf8761c8eb17
File content as of revision 0:d01def9cf41e:
#ifndef _METER_H_ #define _METER_H_ class meter { public: meter(int x, int y, int width, int height, float min, float max) ; ~meter(void) ; void drawFrame(void) ; void drawScale(void) ; void drawHand(float value) ; void drawValue(float value) ; void draw(void) ; void draw(float value) ; void update(float value) ; private: int _x ; int _y ; int _w ; int _h ; int _center_x ; int _center_y ; float _value ; float _min ; float _max ; } ; #endif /* _METER_H_ */