forked from bracci/Qlockwork
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Renderer.h
47 lines (41 loc) · 1.43 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
/******************************************************************************
Renderer.h
******************************************************************************/
#ifndef RENDERER_H
#define RENDERER_H
#include <Arduino.h>
#include "Configuration.h"
#include "Modes.h"
#include "Languages.h"
#include "Letters.h"
#include "Numbers.h"
#include "Words.h"
enum eTextPos : uint8_t
{
TEXT_POS_TOP,
TEXT_POS_MIDDLE = 3,
TEXT_POS_BOTTOM = 6
};
class Renderer
{
public:
Renderer();
void setHours(uint8_t hours, boolean glatt, uint8_t language, uint16_t matrix[]);
void setTime(uint8_t hours, uint8_t minutes, uint8_t language, bool chGsi, uint16_t matrix[]);
void setCorners(uint8_t minutes, uint16_t matrix[]);
void setAlarmLed(uint16_t matrix[]);
void deactivateAlarmLed(uint16_t matrix[]);
void clearEntryWords(uint8_t language, uint16_t matrix[]);
void setSmallText(String menuText, eTextPos textPos, uint16_t matrix[]);
void setAMPM(uint8_t hours, uint8_t language, 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);
void FR_hours(uint8_t hours, uint16_t matrix[]);
void IT_hours(uint8_t hours, uint16_t matrix[]);
void ES_hours(uint8_t hours, uint16_t matrix[]);
};
#endif