-
Notifications
You must be signed in to change notification settings - Fork 1
/
data.py
105 lines (95 loc) · 1.63 KB
/
data.py
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
legend = [
("GP single-ended", "gpsingle" ),
("GN single-ended", "gnsingle"),
("FPGA site","site"),
("Analog", "analog"),
("Communication", "comms"),
("Ground", "gnd"),
("GPIO", "gpio"),
("Touch", "touch"),
("Power", "pwr"),
("PWM", "pwm"),
]
# Pinlabels
left_header_even = [
[
("2", "pwr"),
],
[
("4", "gnd"),
],
[
("6", "gpio"),
("GP0", "gpsingle"),
],
[
("8", "gpio"),
("GP1", "gpsingle"),
],
[
("10", "gpio"),
("GP2", "gpsingle"),
],
[
("12", "gpio"),
("GP3", "gpsingle"),
],
]
left_header_odd = [
[
("1", "pwr"),
],
[
("3", "gnd"),
],
[
("5", "gpio"),
("GN0", "GP-s"),
],
[
("7", "gpio"),
("GN1", "GP-s"),
],
[
("9", "gpio"),
("GN2", "GP-s"),
],
[
("11", "gpio"),
("GN3", "GP-s"),
("B11","site")
],
]
lower_header = [
[
("3", "gpio"),
("PWM", "pwm"),
],
[
("4", "gpio"),
("A2", "analog"),
("TOUCH", "touch"),
],
[
("5", "gpio"),
("A3", "analog"),
],
]
right_header = [
[
("Vcc", "pwr"),
],
[
("GND", "gnd"),
],
[
("6", "gpio"),
("A4", "analog"),
("TOUCH", "touch"),
],
]
# Text
title = "<tspan class='h1'>ULX3S Pinout</tspan>"
description = """Created with Python tool kit to assist with
documentation of electronic hardware.
More info at <tspan class='italic strong'>pinout.readthedocs.io</tspan>"""