Hi,
in my project with T4.1 I try to use Audio Library, ST7735_T3, SDFat, and TeensyThreads. Recently I run into timing problems, which only occur, if I activate a thread, which is dealing with a ST7735 display. There are some Text outputs and tft.fillRect(). I am wondering about reasons...
Is it true/possible, that ST7735_T3 blocks interrupts or uses interrupts? I have read, that TeensyThreads does not switch tasks, if the switch interrupt falls into an ISR.
What would be good ideas to cut the display handling into smaller slices, which can be interrupted?
Many thanks in advance!
Christof
Edit, this silly peace of code seems to work:
in my project with T4.1 I try to use Audio Library, ST7735_T3, SDFat, and TeensyThreads. Recently I run into timing problems, which only occur, if I activate a thread, which is dealing with a ST7735 display. There are some Text outputs and tft.fillRect(). I am wondering about reasons...
Is it true/possible, that ST7735_T3 blocks interrupts or uses interrupts? I have read, that TeensyThreads does not switch tasks, if the switch interrupt falls into an ISR.
What would be good ideas to cut the display handling into smaller slices, which can be interrupted?
Many thanks in advance!
Christof
Edit, this silly peace of code seems to work:
Code:
void slowFillRect(int x, int y, int w, int h, int col) {
for(int i=0;i<w;i++) {
tft.fillRect(x+i,y, 1,h, col);
}
}
Last edited: