-
Notifications
You must be signed in to change notification settings - Fork 7
/
Renderer.h
52 lines (45 loc) · 1.6 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 "Woerter_DE.h"
#include "Woerter_DE_MKF.h"
#include "Woerter_D3.h"
#include "Woerter_CH.h"
#include "Woerter_EN.h"
#include "Woerter_ES.h"
#include "Woerter_FR.h"
#include "Woerter_IT.h"
#include "Woerter_NL.h"
#include "Languages.h"
#include "Staben.h"
#include "Zahlen.h"
class Renderer {
public:
enum eTextPos : uint8_t {
TEXT_POS_TOP,
TEXT_POS_MIDDLE = 2,
TEXT_POS_BOTTOM = 5
};
Renderer();
void setHours(uint8_t hours, boolean glatt, uint8_t language, word matrix[16]);
void setTime(uint8_t hours, uint8_t minutes, uint8_t language, word matrix[16]);
void setCorners(uint8_t minutes, word matrix[16]);
void activateAlarmLed(word matrix[16]);
void deactivateAlarmLed(word matrix[16]);
void clearEntryWords(uint8_t language, word matrix[16]);
void setSmallText(String menuText, eTextPos textPos, word matrix[16]);
void setAMPM(uint8_t hours, uint8_t language, word matrix[16]);
void setPixelInScreenBuffer(uint8_t x, uint8_t y, word matrix[16]);
void unsetPixelInScreenBuffer(uint8_t x, uint8_t y, word matrix[16]);
void clearScreenBuffer(word matrix[16]);
void setAllScreenBuffer(word matrix[16]);
private:
boolean isNumber(char symbol);
void FR_hours(uint8_t hours, word matrix[16]);
void IT_hours(uint8_t hours, word matrix[16]);
void ES_hours(uint8_t hours, word matrix[16]);
};
#endif