pio_sm_put_blocking() unable to keep FIFO topped.

This commit is contained in:
giomba 2022-10-15 18:42:46 +02:00
parent 9b596c80aa
commit 8b67fe9eda
1 changed files with 6 additions and 4 deletions

View File

@ -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;