Skip to content

Commit b71a27d

Browse files
remove while true from example
1 parent efca559 commit b71a27d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

CharLcd_matrix_example.rb

+4-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def rand_matrix(prng)
1515
prng.rand(2).zero? ? prng.rand(33..127) : prng.rand(161..253)
1616
end
1717

18-
while true
18+
(0..1000).each do
1919
c = prng.rand(COLUMNS)
2020
for l in 0...LINES
2121

@@ -47,3 +47,6 @@ def rand_matrix(prng)
4747

4848
end
4949
end
50+
51+
lcd.no_blink
52+
lcd.clear

0 commit comments

Comments
 (0)