blob: b7c903226b86a868200d82c898cdd75f31935331 (
plain)
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
39
|
/*
* Display.h
*
* Created on: 22 Jan 2018
* Author: David
*/
#ifndef SRC_DISPLAY_DISPLAY_H_
#define SRC_DISPLAY_DISPLAY_H_
#include "RotaryEncoder.h"
#include "ST7920/lcd7920.h"
#include "Menu.h"
#include "GCodes/GCodeResult.h"
class Display
{
public:
Display();
void Init();
GCodeResult Configure(GCodeBuffer& gb, const StringRef& reply);
void Spin(bool full);
void Exit();
void Beep(unsigned int frequency, unsigned int milliseconds);
bool IsPresent() const { return present; }
void UpdatingFirmware();
private:
Lcd7920 lcd;
RotaryEncoder encoder;
Menu *mainMenu;
uint32_t whenBeepStarted;
uint32_t beepLength;
bool present;
bool beepActive;
};
#endif /* SRC_DISPLAY_DISPLAY_H_ */
|