-
Notifications
You must be signed in to change notification settings - Fork 22
/
Renderer.h
52 lines (44 loc) · 1.47 KB
/
Renderer.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
//*****************************************************************************
// Renderer.h
//*****************************************************************************
#ifndef RENDERER_H
#define RENDERER_H
#include <Arduino.h>
#include "Configuration.h"
#include "Languages.h"
#include "Letters.h"
#include "Numbers.h"
#include "Words.h"
enum eTextPos : uint8_t {
TEXT_POS_TOP,
TEXT_POS_MIDDLE = 2,
TEXT_POS_BOTTOM = 5
};
class Renderer {
public:
Renderer();
void setHours(uint8_t hours, boolean glatt, uint16_t matrix[]);
void setTime(uint8_t hours, uint8_t minutes, uint16_t matrix[]);
void setCorners(uint8_t minutes, uint16_t matrix[]);
void setAlarmLed(uint16_t matrix[]);
void deactivateAlarmLed(uint16_t matrix[]);
void clearEntryWords(uint16_t matrix[]);
void setSmallText(String menuText, eTextPos textPos, uint16_t matrix[]);
void setAMPM(uint8_t hours, uint16_t matrix[]);
void setPixelInScreenBuffer(uint8_t x, uint8_t y, uint16_t matrix[]);
void unsetPixelInScreenBuffer(uint8_t x, uint8_t y, uint16_t matrix[]);
void clearScreenBuffer(uint16_t matrix[]);
void setAllScreenBuffer(uint16_t matrix[]);
private:
boolean isNumber(char symbol);
#if defined(FRONTCOVER_FR)
void FR_hours(uint8_t hours, uint16_t matrix[]);
#endif
#if defined(FRONTCOVER_IT)
void IT_hours(uint8_t hours, uint16_t matrix[]);
#endif
#if defined(FRONTCOVER_ES)
void ES_hours(uint8_t hours, uint16_t matrix[]);
#endif
};
#endif