fix examples

This commit is contained in:
Vinzenz Schroeter 2024-05-18 15:49:22 +02:00
parent b21040c1f3
commit 1fe7760ee2
3 changed files with 13 additions and 14 deletions

View file

@ -19,8 +19,8 @@ fn main() {
for x_offset in 0..usize::MAX {
pixels.fill(false);
for y in 0..PIXEL_HEIGHT as usize {
pixels.set((y + x_offset) % PIXEL_WIDTH as usize, y, true);
for y in 0..PIXEL_HEIGHT {
pixels.set((y + x_offset) % PIXEL_WIDTH, y, true);
}
connection
.send(