-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSet.cpp
More file actions
37 lines (29 loc) · 761 Bytes
/
Set.cpp
File metadata and controls
37 lines (29 loc) · 761 Bytes
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
//
//
//
#include "Set.h"
void Set::Begin()
{
}
void Set::Enter()
{
ObserverManager::notify(&DisplayContentObserver::LeftDisplay, "SET", FontType::Normal);
setPoint = Settings::GetSetPoint();
ObserverManager::notify(&DisplayContentObserver::RightDisplay, String(setPoint), FontType::Normal);
}
void Set::Exit()
{
Settings::SaveSetPoint(setPoint);
}
void Set::UpButtonPress()
{
setPoint++;
if (setPoint > 100) setPoint = 100;
ObserverManager::notify(&DisplayContentObserver::RightDisplay, String(setPoint), FontType::Normal);
}
void Set::DownButtonPress()
{
setPoint--;
if (setPoint < 1) setPoint = 1;
ObserverManager::notify(&DisplayContentObserver::RightDisplay, String(setPoint), FontType::Normal);
}