forked from caru/StenoFW
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtxbolt.py
34 lines (31 loc) · 826 Bytes
/
txbolt.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
txboltMap = {
'S1': (0, 0), 'S2': (0, 0),
'T': (0, 1),
'K': (0, 2),
'P': (0, 3),
'W': (0, 4),
'H': (0, 5),
# Bit 6 of byte 1 is also set
'R': (1, 0),
'A': (1, 1),
'O': (1, 2),
'*1': (1, 3), '*2': (1, 3), '*3': (1,3), '*4': (1, 3),
'E': (1, 4),
'U': (1, 5),
# Bit 7 of byte 2 is also set
'-F': (2, 0),
'-R': (2, 1),
'-P': (2, 2),
'-B': (2, 3),
'-L': (2, 4),
'-G': (2, 5),
# Bits 6 and 7 of byte 3 are also set
'-T': (3, 0),
'-S': (3, 1),
'-D': (3, 2),
'-Z': (3, 3),
'#1': (3, 4), '#2': (3, 4), '#3': (3, 4), '#4': (3, 4), '#5': (3, 4), '#6': (3, 4),
'#7': (3, 4), '#8': (3, 4), '#9': (3, 4), '#A': (3, 4), '#B': (3, 4), '#C': (3, 4),
# Send only bytes whose key bits are not all 0
# Send a trailing 0 byte
}