From 8b67fe9edabdf3e12ef4505d75e1e8952d9073a8 Mon Sep 17 00:00:00 2001 From: giomba Date: Sat, 15 Oct 2022 18:42:46 +0200 Subject: [PATCH] pio_sm_put_blocking() unable to keep FIFO topped. --- src/main.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/main.c b/src/main.c index 8e5916b..7168f30 100644 --- a/src/main.c +++ b/src/main.c @@ -91,14 +91,16 @@ int main() stdio_init_all(); // "draw" an horizontal dotted line (?) - for (unsigned int c = 0; c < 20; c += 3) + for (unsigned int c = 0; c < 5; c++) { - frames[0].data[80 * 64 + 50 + c] = 0x55; + frames[0].data[80 * 64 + 30 + c] = 0x55; } - for (unsigned int c = 0; c < 20; c += 3) + /* + for (unsigned int c = 0; c < 20; c++) { - frames[0].data[80 * 128 + 50 + c] = 0x99; + frames[0].data[80 * 128 + 30 + c] = 0x99; } + */ // PIO and state machines PIO pio = pio0;