-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathChronoGui.h
38 lines (34 loc) · 913 Bytes
/
ChronoGui.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*
* ChronoGui.h
*
* Created on: 12/lug/2014
* Author: Tongo
*/
#ifndef CHRONOGUI_H_
#define CHRONOGUI_H_
#include <ILI_SdSpi.h>
#include <ILI_SdFatConfig.h>
#include <ILI9341_due_gText.h>
#include <ILI9341_due.h>
class ChronoGui {
public:
ChronoGui();
void initTft(ILI9341_due* tft);
void updateLapTime(long lapTime);
void updateLapNumber(int lapCount);
void updateGpsFixState(bool gpsState);
void updateGpsSatelliteNumber(int8_t satelliteNumber);
void updateTrackName(char* trackName);
void updateLapDelay(long delay);
void updateLapDelayState(bool bestLapDelay);
void updateGearCounter(uint8_t gear);
private:
ILI9341_due* tft;
ILI9341_due_gText * timeTextBox;
ILI9341_due_gText * gpsSatTextBox;
ILI9341_due_gText * trackNameTextBox;
ILI9341_due_gText * lapCountTextBox;
ILI9341_due_gText * lapDelayTextBox;
ILI9341_due_gText * lapDelayStateTextBox;
};
#endif /* CHRONOGUI_H_ */