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.cpp
- Committer:
- ovidiup13
- Date:
- 2015-04-26
- Revision:
- 3:688b62ff6474
- Child:
- 5:5b1a8ad6c187
File content as of revision 3:688b62ff6474:
#include "LevelMeter.h"
void LevelMeter::display(void){
draw_circles(0,0);
}
void LevelMeter::update(char c){
if(c == 'y')
this->setSelectedScreen(back);
}
void LevelMeter::draw_circles(double rX, double rY){
int X1 = 95, Y1 = 35, X2 = 30, Y2 = 35; //need to calculate these
//draw the circles
st7565->fillcircle(X1, Y1, RADIUS_lvl, 20);
st7565->drawcircle(X2, Y2, RADIUS_lvl, 1);
//draw cross
st7565->drawline(X0 - 2, Y0, X0 + 2, Y0, 20);
st7565->drawline(X0, Y0 - 2, X0, Y0 + 2, 20);
st7565->display();
}