16
Thumby / Re: Blockly graphics not working
« on: December 04, 2023, 10:37:47 AM »
Could you share a screenshot of your blockly program? I can help you debug it that way.
Figured it out, i didn't put the Draw to display block beforehand. Still, if i see draw to display it should draw to display without anything else no?
The draw block/code is required. Drawing everything out to the screen right away would take more time and impact performance. When you draw anything it is put in a buffer very quickly (compared to sending data to the screen) and then the entire buffer is sent in one transmission to the screen when you use the draw block.
Another issue would be that it only works in a loop? First does, second stays on print to display
The first image starts a while loop once A is pressed and then exits out of it when B is pressed.
The second image will only fill the screen with white while A is held down (not just quickly pressed).