2.5 inch tft display with touch

Post here all questions related to LibMaple core if you can't find a relevant section!
Post Reply
madhavan
Posts: 29
Joined: Fri May 21, 2021 1:22 am

2.5 inch tft display with touch

Post by madhavan »

hi, there is many examples but nothing is working . everything is giving compiling error .
i am trying to connect in SPI Mode 2.4 inch tft with blue pill .

please suggest correction version and library or example link .

Code: Select all

Arduino: 1.8.13 (Windows 10), Board: "Generic STM32F103C series, STM32F103C8 (20k RAM. 64k Flash), STM32duino bootloader, 72Mhz (Normal), Smallest (default)"
C:\Users\ELCOT\AppData\Local\Arduino15\packages\stm32duino\hardware\STM32F1\2021.3.18\libraries\Adafruit_GFX_AS\Adafruit_GFX_AS.cpp: In member function 'int16_t Adafruit_GFX_AS::drawUnicode(uint16_t, int16_t, int16_t, int16_t)':

C:\Users\ELCOT\AppData\Local\Arduino15\packages\stm32duino\hardware\STM32F1\2021.3.18\libraries\Adafruit_GFX_AS\Adafruit_GFX_AS.cpp:142:9: error: 'textsize' was not declared in this scope

     if (textsize == 1) drawFastHLine(x, pY, width+gap, textbgcolor);

         ^

C:\Users\ELCOT\AppData\Local\Arduino15\packages\stm32duino\hardware\STM32F1\2021.3.18\libraries\Adafruit_GFX_AS\Adafruit_GFX_AS.cpp:149:11: error: 'textsize' was not declared in this scope

       if (textsize==1){

           ^

C:\Users\ELCOT\AppData\Local\Arduino15\packages\stm32duino\hardware\STM32F1\2021.3.18\libraries\Adafruit_GFX_AS\Adafruit_GFX_AS.cpp:173:7: error: 'textsize' was not declared in this scope

   pY+=textsize;

       ^

C:\Users\ELCOT\AppData\Local\Arduino15\packages\stm32duino\hardware\STM32F1\2021.3.18\libraries\Adafruit_GFX_AS\Adafruit_GFX_AS.cpp:175:20: error: 'textsize' was not declared in this scope

 return (width+gap)*textsize;        // x +

                    ^

C:\Users\ELCOT\AppData\Local\Arduino15\packages\stm32duino\hardware\STM32F1\2021.3.18\libraries\Adafruit_GFX_AS\Adafruit_GFX_AS.cpp: In member function 'int16_t Adafruit_GFX_AS::drawCentreString(char*, int16_t, int16_t, int16_t)':

C:\Users\ELCOT\AppData\Local\Arduino15\packages\stm32duino\hardware\STM32F1\2021.3.18\libraries\Adafruit_GFX_AS\Adafruit_GFX_AS.cpp:249:15: error: 'textsize' was not declared in this scope

     len = len*textsize;

               ^

C:\Users\ELCOT\AppData\Local\Arduino15\packages\stm32duino\hardware\STM32F1\2021.3.18\libraries\Adafruit_GFX_AS\Adafruit_GFX_AS.cpp: In member function 'int16_t Adafruit_GFX_AS::drawRightString(char*, int16_t, int16_t, int16_t)':

C:\Users\ELCOT\AppData\Local\Arduino15\packages\stm32duino\hardware\STM32F1\2021.3.18\libraries\Adafruit_GFX_AS\Adafruit_GFX_AS.cpp:300:15: error: 'textsize' was not declared in this scope

     len = len*textsize;

               ^

Multiple libraries were found for "Wire.h"

 Used: C:\Users\ELCOT\AppData\Local\Arduino15\packages\stm32duino\hardware\STM32F1\2021.3.18\libraries\Wire

 Not used: C:\Users\ELCOT\AppData\Local\Arduino15\packages\stm32duino\hardware\STM32F1\2021.3.18\libraries\WireSlave

exit status 1

Error compiling for board Generic STM32F103C series.



This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
ag123
Posts: 1655
Joined: Thu Dec 19, 2019 5:30 am
Answers: 24

Re: 2.5 inch tft display with touch

Post by ag123 »

i made a fork of Adafruit ILI9341 SPI LCD library here
note this is for ILI9341 SPI LCD, you did not mention your LCD soc and its interface
viewtopic.php?f=39&t=896
https://github.com/ag88/Adafruit_ILI9341_SPI_stm32duino
stevestrong
Posts: 502
Joined: Fri Dec 27, 2019 4:53 pm
Answers: 8
Location: Munich, Germany
Contact:

Re: 2.5 inch tft display with touch

Post by stevestrong »

You better use the original Adafruit library, the Arduino_STM32 version of that is not up to date.
Post Reply

Return to “General discussion”