Skip to content

Commit 6f8a704

Browse files
committed
Added more letters and numbers. Set the text parameter so that it can be piped
1 parent cc90d20 commit 6f8a704

File tree

2 files changed

+35
-7
lines changed

2 files changed

+35
-7
lines changed

ScrollpHat.psm1

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,11 @@ function Set-Brightness{
4040
}
4141

4242
function Write-String {
43+
[CmdletBinding()]
4344
param(
45+
[parameter(ValueFromPipeline=$True)]
4446
[string]$text,
45-
[System.Boolean]$forever = $true
47+
[System.Boolean]$forever = $false
4648
)
4749
Set-LedsOff
4850
do
@@ -82,6 +84,22 @@ function Write-Char {
8284
K = 0x1F, 0x04, 0x1B
8385
L = 0x1F, 0x10, 0x10
8486
M = 0x1F, 0x02, 0x04, 0x02, 0x1F
87+
N = 0x1F, 0x02, 0x0C,0x1F
88+
O = 0x0E, 0x11, 0x0E
89+
P = 0x1F, 0x09, 0x06
90+
Q = 0x0E, 0x11, 0x09,0x16
91+
R = 0x1F, 0x09, 0x16
92+
S = 0x12, 0x15, 0x09
93+
"1" = 0x12, 0x1F, 0x10
94+
"2" = 0x19, 0x15, 0x12
95+
"3" = 0x11, 0x15, 0x0A
96+
"4" = 0x0E, 0x09, 0x1C
97+
"5" = 0x17, 0x15, 0x09
98+
"6" = 0x0E, 0x15, 0x08
99+
"7" = 0x19, 0x05, 0x03
100+
"8" = 0x0A, 0x15, 0x0A
101+
"9" = 0x02, 0x15, 0x0E
102+
"0" = 0x0E, 0x15, 0x0E
85103
"!" = 0x17
86104
}
87105
###################################

alphabet.ps1

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,23 @@ $alphabet = @{
1212
K = 0x1F, 0x04, 0x1B
1313
L = 0x1F, 0x10, 0x10
1414
M = 0x1F, 0x02, 0x04, 0x02, 0x1F
15+
N = 0x1F, 0x02, 0x0C,0x1F
16+
O = 0x0E, 0x11, 0x0E
17+
P = 0x1F, 0x09, 0x06
18+
Q = 0x0E, 0x11, 0x09,0x16
19+
R = 0x1F, 0x09, 0x16
20+
S = 0x12, 0x15, 0x09
21+
"1" = 0x12, 0x1F, 0x10
22+
"2" = 0x19, 0x15, 0x12
23+
"3" = 0x11, 0x15, 0x0A
24+
"4" = 0x0E, 0x09, 0x1C
25+
"5" = 0x17, 0x15, 0x09
26+
"6" = 0x0E, 0x15, 0x08
27+
"7" = 0x19, 0x05, 0x03
28+
"8" = 0x0A, 0x15, 0x0A
29+
"9" = 0x02, 0x15, 0x0E
30+
"0" = 0x0E, 0x15, 0x0E
1531
}
16-
N =
17-
O =
18-
P =
19-
Q =
20-
R =
21-
S =
2232
T =
2333
U =
2434
V =

0 commit comments

Comments
 (0)