PaulStoffregen / ILI9341_t3

Optimized ILI9341 TFT Library
http://pjrc.com/store/display_ili9341.html
241 stars 93 forks source link

Speedup for drawChar() and 'everything' with setAddr() #59

Closed bitbank2 closed 4 years ago

bitbank2 commented 4 years ago

This PR includes 2 main changes. I simplified and cleaned up the code for drawChar(). Now it's much easier to follow and will be faster on slow CPUs. I also optimized the setAddr() function which is used by everything. It now retains the last x/y info so that it will only use the X or Y (col / page) to avoid extra commands/data being transmitted.