Update TFT_eSPI to v2.5.43
This commit is contained in:
@@ -2,6 +2,10 @@
|
||||
// This example renders a png file that is stored in a FLASH array
|
||||
// using the PNGdec library (available via library manager).
|
||||
|
||||
// Note: The PNGDEC required lots of RAM to work (~40kbytes) so
|
||||
// this sketch is will not run on smaller memory processors (e.g.
|
||||
// ESP8266, STM32F103 etc.)
|
||||
|
||||
// Image files can be converted to arrays using the tool here:
|
||||
// https://notisrac.github.io/FileToCArray/
|
||||
// To use this tool:
|
||||
@@ -14,9 +18,9 @@
|
||||
|
||||
// Include the PNG decoder library
|
||||
#include <PNGdec.h>
|
||||
#include "panda.h" // Image is stored here in an 8 bit array
|
||||
#include "panda.h" // Image is stored here in an 8-bit array
|
||||
|
||||
PNG png; // PNG decoder inatance
|
||||
PNG png; // PNG decoder instance
|
||||
|
||||
#define MAX_IMAGE_WIDTH 240 // Adjust for your images
|
||||
|
||||
|
||||
@@ -2,6 +2,10 @@
|
||||
// This example renders a png file that is stored in a FLASH array
|
||||
// using the PNGdec library (available via library manager).
|
||||
|
||||
// Note: The PNGDEC required lots of RAM to work (~40kbytes) so
|
||||
// this sketch is will not run on smaller memory processors (e.g.
|
||||
// ESP8266, STM32F103 etc.)
|
||||
|
||||
// The example png is encoded as ARGB 8 bits per pixel with indexed colour
|
||||
// It was created using GIMP and has a transparent background area.
|
||||
|
||||
|
||||
@@ -3,6 +3,10 @@
|
||||
// ESP32, ESP8266). It renders a png file that is stored in LittleFS
|
||||
// using the PNGdec library (available via library manager).
|
||||
|
||||
// Note: The PNGDEC required lots of RAM to work (~40kbytes) so
|
||||
// this sketch is will not run on smaller memory processors (e.g.
|
||||
// ESP8266, STM32F103 etc.)
|
||||
|
||||
// The test image is in the sketch "data" folder (press Ctrl+K to see it).
|
||||
// You must upload the image to LittleFS using the Arduino IDE Tools Data
|
||||
// Upload menu option (you may need to install extra tools for that).
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 35 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 178 KiB |
@@ -3,6 +3,10 @@
|
||||
// ESP32, ESP8266). It renders a png file that is stored in LittleFS
|
||||
// using the PNGdec library (available via library manager).
|
||||
|
||||
// Note: The PNGDEC required lots of RAM to work (~40kbytes) so
|
||||
// this sketch is will not run on smaller memory processors (e.g.
|
||||
// ESP8266, STM32F103 etc.)
|
||||
|
||||
// It uses DMA to send image data to the TFT while the decoding takes
|
||||
// place. The processor and display combination must support DMA to
|
||||
// run this sketch! The decode time dominates so DMA is mainly an advantage
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 35 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 178 KiB |
Reference in New Issue
Block a user