Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed mbed-rtos MLX90614
LevelMeter.h
00001 #include "Item.h" 00002 #include "mbed.h" 00003 00004 //define coordinates 00005 #define X0 63 //center 00006 #define Y0 31 //center 00007 #define POINTER_LENGTH 10 00008 #define RADIUS_lvl 3 00009 00010 class LevelMeter: public Item { 00011 public: 00012 //constructors 00013 LevelMeter(ST7565 *lcd, Item * back, DigitalOut *gyro, DigitalOut *thermo); 00014 00015 //inherited functions 00016 virtual void display(void); 00017 virtual void update(char c); 00018 00019 private: 00020 Thread *lt; 00021 00022 DigitalOut *gyro, *thermo; 00023 void draw_elements(double rx, double ry); 00024 static void lt_start(void const *args); 00025 void update_cross(void); 00026 00027 };
Generated on Thu Jul 14 2022 11:25:13 by
1.7.2