-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathNixieModels.h
63 lines (57 loc) · 1.48 KB
/
NixieModels.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
53
54
55
56
57
58
59
60
61
62
63
#pragma once
#include "NixieDisplay.h"
namespace Nixie {
struct Shield4IN14 {
static const uint8_t TUBES = 4;
static void initializeDisplay(Display<Shield4IN14> &d) {
d.setAnodePin(0, 12);
d.setAnodePin(1, 11);
d.setAnodePin(2, 9);
d.setAnodePin(3, 8);
d.setDotsAnodePin(10);
d.setDriverPins(4,6,7,5);
d.setBoostPins(3, A0);
}
};
struct Shield5IN14 {
static const int TUBES = 5;
static void initializeDisplay(Display<Shield5IN14> &d) {
d.setAnodePin(0, 12);
d.setAnodePin(1, 11);
d.setAnodePin(2, 10);
d.setAnodePin(3, 9);
d.setAnodePin(4, 8);
d.setDriverPins(4,6,7,5);
d.setBoostPins(3, A0);
}
};
struct Shield6IN14 {
static const int TUBES = 6;
static void initializeDisplay(Display<Shield6IN14> &d) {
d.setAnodePin(0, 12);
d.setAnodePin(1, 11);
d.setAnodePin(2, 9);
d.setAnodePin(3, 8);
d.setAnodePin(4, A1);
d.setAnodePin(5, A2);
d.setDotsAnodePin(10);
d.setDriverPins(4,6,7,5);
d.setBoostPins(3, A0);
}
};
struct Shield8IN14 {
static const int TUBES = 8;
static void initializeDisplay(Display<Shield8IN14> &d) {
d.setAnodePin(0, 12);
d.setAnodePin(1, 11);
d.setAnodePin(2, 9);
d.setAnodePin(3, 8);
d.setAnodePin(4, A1);
d.setAnodePin(5, A2);
d.setAnodePin(6, 10);
d.setAnodePin(7, 13);
d.setDriverPins(4,6,7,5);
d.setBoostPins(3, A0);
}
};
}