-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathIldaEsp32Output.cpp
More file actions
57 lines (43 loc) · 1.06 KB
/
IldaEsp32Output.cpp
File metadata and controls
57 lines (43 loc) · 1.06 KB
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
53
54
55
56
57
// #include "IldaEsp32Output.h"
// void IldaEsp32Output::Init()
// {
// pinMode(_pinBlanking, OUTPUT);
// SetAndOut(0, 0, 0, 0, 0, 0, true);
// }
// void IldaEsp32Output::SetCoords(int16_t x, int16_t y, int16_t z)
// {
// _x = x;
// _y = y;
// _z = z;
// }
// void IldaEsp32Output::SetColor(uint8_t r, uint8_t g, uint8_t b)
// {
// _r = r;
// _g = g;
// _b = b;
// }
// void IldaEsp32Output::SetBlank(bool value)
// {
// _blanking = value;
// }
// void IldaEsp32Output::SetAndOut(
// int16_t x, int16_t y, int16_t z,
// uint8_t r, uint8_t g, uint8_t b,
// bool blank)
// {
// _x = x;
// _y = y;
// _z = z;
// _r = r;
// _g = g;
// _b = b;
// _blanking = blank;
// Out();
// }
// void IldaEsp32Output::Out()
// {
// // esp wroom32
// digitalWrite(_pinBlanking, _blanking ? _pinBlankingEnable : _pinBlankingDisable);
// dacWrite(_pinDacX, (_x + 32768) / 256);
// dacWrite(_pinDacY, (_y + 32768) / 256);
// }