display a graph of temperature from the NTC on the OLED

Dependencies:   SSD1308_128x64_I2C Grove_temperature

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers wave.h Source File

wave.h

00001 #ifndef WAVE_H
00002 #define WAVE_H
00003 
00004 #include "mbed.h"
00005 
00006 class Temperature{
00007 public:
00008     Temperature();
00009     ~Temperature();
00010     void calcPage(void);
00011     void calcValue(void);
00012     
00013     uint8_t u8_page; // 0 ~ 7   The display page
00014     uint8_t u8_col; // 0 ~127
00015     uint8_t u8_temperature; // 0 ~ 64
00016     uint8_t u8_value; //I2c data that will be sent to I2C
00017 };
00018 
00019 #endif