Update TFT_eSPI to v2.5.43
This commit is contained in:
@@ -20,7 +20,7 @@ void loop() {
|
||||
|
||||
tft.fillScreen(TFT_BLACK);
|
||||
|
||||
// Draw some random filled elipses
|
||||
// Draw some random filled ellipses
|
||||
for (int i = 0; i < 20; i++)
|
||||
{
|
||||
int rx = random(40);
|
||||
@@ -33,7 +33,7 @@ void loop() {
|
||||
delay(2000);
|
||||
tft.fillScreen(TFT_BLACK);
|
||||
|
||||
// Draw some random outline elipses
|
||||
// Draw some random outline ellipses
|
||||
for (int i = 0; i < 20; i++)
|
||||
{
|
||||
int rx = random(40);
|
||||
|
||||
@@ -73,7 +73,7 @@ void analogMeter()
|
||||
// Long scale tick length
|
||||
int tl = 15;
|
||||
|
||||
// Coodinates of tick to draw
|
||||
// Coordinates of tick to draw
|
||||
float sx = cos((i - 90) * 0.0174532925);
|
||||
float sy = sin((i - 90) * 0.0174532925);
|
||||
uint16_t x0 = sx * (M_SIZE*100 + tl) + M_SIZE*120;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
Test the tft.print() viz embedded tft.write() function
|
||||
Test the tft.print() viz. embedded tft.write() function
|
||||
|
||||
This sketch used font 2, 4, 7
|
||||
|
||||
|
||||
@@ -96,7 +96,7 @@ void loop() {
|
||||
// The new larger fonts do not use the .setCursor call, coords are embedded
|
||||
tft.setTextColor(TFT_BLACK, TFT_BLACK); // Do not plot the background colour
|
||||
|
||||
// Overlay the black text on top of the rainbow plot (the advantage of not drawing the backgorund colour!)
|
||||
// Overlay the black text on top of the rainbow plot (the advantage of not drawing the background colour!)
|
||||
tft.drawCentreString("Font size 2", 80, 14, 2); // Draw text centre at position 80, 12 using font 2
|
||||
|
||||
//tft.drawCentreString("Font size 2",81,12,2); // Draw text centre at position 80, 12 using font 2
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Sketch to display images on a 160 x 128 TFT
|
||||
|
||||
// Renders images stored in an array in program (FLASH)
|
||||
// The JPEG images are stored in header files (see jpeg1.h etc)
|
||||
// The JPEG images are stored in header files (see jpeg1.h etc.)
|
||||
|
||||
// As well as the TFT_eSPI library:
|
||||
// https://github.com/Bodmer/TFT_eSPI
|
||||
@@ -95,7 +95,7 @@ void drawArrayJpeg(const uint8_t arrayname[], uint32_t array_size, int xpos, int
|
||||
// fit totally on the screen are cropped to the nearest MCU size and may leave right/bottom borders.
|
||||
void renderJPEG(int xpos, int ypos) {
|
||||
|
||||
// retrieve infomration about the image
|
||||
// retrieve information about the image
|
||||
uint16_t *pImg;
|
||||
uint16_t mcu_w = JpegDec.MCUWidth;
|
||||
uint16_t mcu_h = JpegDec.MCUHeight;
|
||||
@@ -193,7 +193,7 @@ void jpegInfo() {
|
||||
// Show the execution time (optional)
|
||||
//####################################################################################################
|
||||
// WARNING: for UNO/AVR legacy reasons printing text to the screen with the Mega might not work for
|
||||
// sketch sizes greater than ~70KBytes because 16 bit address pointers are used in some libraries.
|
||||
// sketch sizes greater than ~70KBytes because 16-bit address pointers are used in some libraries.
|
||||
|
||||
// The Due will work fine with the HX8357_Due library.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user