LCD implementation of our project.

Dependencies:   mbed mbed-rtos MLX90614

LevelMeter.h

Committer:
ovidiup13
Date:
2015-05-30
Revision:
6:49a007861c76
Parent:
5:5b1a8ad6c187
Child:
7:11675c1dce4f

File content as of revision 6:49a007861c76:

#include "Item.h"
#include "gyro.h"

//define coordinates
#define X0 63 //center
#define Y0 31 //center
#define POINTER_LENGTH 10
#define RADIUS_lvl 3

class LevelMeter: public Item {
    public:
        //constructors
        LevelMeter(ST7565 *lcd, Item * back);
        
        //inherited functions
        virtual void display(void);
        virtual void update(char c);
        
        private:
            Thread *lt;
            
            void draw_elements(double rx, double ry);
            static void lt_start(void const *args);
            void update_cross(void);
        
};