-

Dependencies:   CommandHandler HygroClip2 InterruptBasedEncoder SPI_TFT_ILI9341 mbed-src-no-hal

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers GraphScale.h Source File

GraphScale.h

00001 #ifndef GRAPHSCALE_H_
00002 #define GRAPHSCALE_H_
00003 
00004 #include "SPI_TFT_ILI9341.h"
00005 
00006 class GraphScale
00007 {
00008 public:
00009     GraphScale(SPI_TFT_ILI9341 * tft, int x, int y, int width, int height, int min, int max, int scaleSteps);
00010     void draw(int color);
00011 private:
00012     float scaleY(float value);
00013     SPI_TFT_ILI9341 * tft_;
00014     int x_;
00015     int y_;
00016     int width_;
00017     int height_;
00018     int min_;
00019     int max_;
00020     int scaleSteps_;
00021 };
00022 
00023 #endif