The Neowbit has a 160 x 128 TFT color screen usable thru the pyb library (pyb.SCREEN()) and a unique method: show(fb, mode).
I'm not sure what type of TFT this is and as I don't have the source code of the SCREEN class that's pretty complicated to understand how it works behind the scene.
https://github.com/KittenBot/uf2-meowbi ... it/board.h
https://github.com/KittenBot/uf2-meowbi ... t/screen.c
I guess a ST7735
So currently I'm using show(fb,mode) to display a framebuffer it works but within a loop that's too fast. So I'd like to mimic a VBL interrupt to trigger the rasterization only when it should.
I tried using a timer callback at 60Hz but I got:
Code: Select all
>> uncaught exception in Timer(4) interrupt handler
#MemoryError:
Is it the TFT Controller " Tearing Effect Output Line" signal that needs be caught ?
Thanks