adafruit / Adafruit_RA8875

Adafruit Arduino library driver for the RA8875 TFT driver
http://www.adafruit.com/products/1590
Other
68 stars 58 forks source link

Added drawPixels() function for much faster BMP drawing #13

Closed makermelissa closed 5 years ago

makermelissa commented 5 years ago

I added a new drawing function called drawPixels() which takes an array of pixels and outputs them to the display reducing any overhead. The format of the function was taken from the sumotoy/RA8875 which does not run on ESP32 processors and implemented in this library with the code formatting as close to other functions in here as possible. According to my tests, using this function is about 4.3 times as fast as just using drawPixel().

I went ahead and modified the ra8875_bitmap example (called ra8875_bitmap_fast) to use this and ran both sketches. I compared the times shown in the serial monitor using the same image to determine the speed increase. Since this is quite a slow display, I thought this would be very useful. I included the modified example in the examples folder.

I'm not aware of any limitations of this function and since it is a new function it should not break any existing code.

ladyada commented 5 years ago

thankx!

makermelissa commented 5 years ago

You’re welcome. I just did another PR because I had forgotten to update the version number being new to working on Arduino libraries.

Melissa LeBlanc-Williams

Check out my YouTube Channel at https://www.youtube.com/channel/UCmDzlRL-Wkg3HCBlF58A4cw

Follow me on Twitter at https://twitter.com/makermelissa

On Jan 6, 2019, at 10:14 PM, ladyada notifications@github.com wrote:

thankx!

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/adafruit/Adafruit_RA8875/pull/13#issuecomment-451832376, or mute the thread https://github.com/notifications/unsubscribe-auth/ACjqSaoE6kmbeZzIfPvAIgItMtVt1nseks5vAuXKgaJpZM4Zy3SC.