Adafruit_ST7735 > 1.1.0 not working

Kenjutsu
Posts: 27
Joined: Tue Apr 07, 2020 10:58 am
Answers: 2

Adafruit_ST7735 > 1.1.0 not working

Post by Kenjutsu »

Hello everyone,

I am using an F411 Black Pill with an ST7735 SPI TFT display connected to SPI1. Originally, I have been using PlatformIO with all the latest updates as of today installed. None of the Adafruit examples seemed to work. I then started up the Arduino IDE and the Adafruit examples worked.

Baffled, I started investigating and saw that under Arduino, I have not updated the Adafruit library, and it is still at v1.1.0. When I update the library to any other version > 1.1.0, the examples no longer seem to work. The MCU is not frozen, since I added code to blink the onboard LED in loop(), and that works.

I am using the Official Core v2.0.0

Can anyone confirm if the latest version of the Adafruit library works with an F411?

Thank you!
by fpiSTM » Fri Aug 27, 2021 9:14 am Go to full post
Pieter

OSX: 11.6.8
Arduino IDE: 1.8.19
PlatformIO: 6.1.4
STM32 Core: 2.3.0
Get a $5 off coupon on your first purchase at Kaiweets
Kaiweets Affordable & Smart Electrical Testing Tools
mrburnette
Posts: 633
Joined: Thu Dec 19, 2019 1:23 am
Answers: 7

Re: Adafruit_ST7735 > 1.1.0 not working

Post by mrburnette »

I started investigating and saw that under Arduino, I have not updated the Adafruit library, and it is still at v1.1.0. When I update the library to any other version > 1.1.0, the examples no longer seem to work.
Great foresight into problem solving. But, now that you know it is highly likely an Adafruit issue: take it to Adafruit's forum or stay with the older lib version.

Adafruit for some time has been evolving their libraries to a new unified model which eases their maintenance effort. Things will break during such architectural exercises; Adafruit may even be aware and just has not prioritizes the fixes yet.
User avatar
fpiSTM
Posts: 1738
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 91
Location: Le Mans
Contact:

Re: Adafruit_ST7735 > 1.1.0 not working

Post by fpiSTM »

You talk about this library ?
https://github.com/adafruit/Adafruit-ST ... /tag/1.7.3

If true, then I don't understand the v 1.1.0 as the latest is 1.7.3
Kenjutsu
Posts: 27
Joined: Tue Apr 07, 2020 10:58 am
Answers: 2

Re: Adafruit_ST7735 > 1.1.0 not working

Post by Kenjutsu »

fpiSTM wrote: Wed Aug 25, 2021 1:24 pm You talk about this library ?
https://github.com/adafruit/Adafruit-ST ... /tag/1.7.3

If true, then I don't understand the v 1.1.0 as the latest is 1.7.3
Yes, this library. With the F411, only v1.1.0 works, all newer versions produce no output on the display :?
Pieter

OSX: 11.6.8
Arduino IDE: 1.8.19
PlatformIO: 6.1.4
STM32 Core: 2.3.0
Get a $5 off coupon on your first purchase at Kaiweets
Kaiweets Affordable & Smart Electrical Testing Tools
Kenjutsu
Posts: 27
Joined: Tue Apr 07, 2020 10:58 am
Answers: 2

Re: Adafruit_ST7735 > 1.1.0 not working

Post by Kenjutsu »

mrburnette wrote: Wed Aug 25, 2021 1:21 pm But, now that you know it is highly likely an Adafruit issue: take it to Adafruit's forum or stay with the older lib version.
That will be my next step ;) I just want to confirm whether other members are also experiencing the same issue.
Pieter

OSX: 11.6.8
Arduino IDE: 1.8.19
PlatformIO: 6.1.4
STM32 Core: 2.3.0
Get a $5 off coupon on your first purchase at Kaiweets
Kaiweets Affordable & Smart Electrical Testing Tools
User avatar
fpiSTM
Posts: 1738
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 91
Location: Le Mans
Contact:

Re: Adafruit_ST7735 > 1.1.0 not working

Post by fpiSTM »

I used the 1.7.3 recently without any issue.
User avatar
fpiSTM
Posts: 1738
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 91
Location: Le Mans
Contact:

Re: Adafruit_ST7735 > 1.1.0 not working

Post by fpiSTM »

Be careful the library has several dependencies as stated in the library.properties:
depends=Adafruit GFX Library, Adafruit seesaw Library, SD
Kenjutsu
Posts: 27
Joined: Tue Apr 07, 2020 10:58 am
Answers: 2

Re: Adafruit_ST7735 > 1.1.0 not working

Post by Kenjutsu »

Something really weird is going on...

I wired up an F103 to the display with the same result. Only v1.1.0 is working. :?

I went ahead and deleted all the libraries in the Arduino libraries folder. I then proceeded to add the Adafruit_ST7735 library and at the prompt install all the dependencies.

I tried again on the F103 with the same result: only v1.1.0 is working...
Pieter

OSX: 11.6.8
Arduino IDE: 1.8.19
PlatformIO: 6.1.4
STM32 Core: 2.3.0
Get a $5 off coupon on your first purchase at Kaiweets
Kaiweets Affordable & Smart Electrical Testing Tools
User avatar
Bakisha
Posts: 139
Joined: Fri Dec 20, 2019 6:50 pm
Answers: 5
Contact:

Re: Adafruit_ST7735 > 1.1.0 not working

Post by Bakisha »

I just checked (on WeAct STM32F411CE), library version 1.7.3 .

It works if i use:

Code: Select all

#define TFT_DC PA_3 //
#define TFT_CS PA_4
#define TFT_RST PA_2
It doesn't work with:

Code: Select all

#define TFT_DC PA3 //
#define TFT_CS PA4
#define TFT_RST PA2
I don't know why it is behaving like that...
Kenjutsu
Posts: 27
Joined: Tue Apr 07, 2020 10:58 am
Answers: 2

Re: Adafruit_ST7735 > 1.1.0 not working

Post by Kenjutsu »

Bakisha wrote: Wed Aug 25, 2021 5:50 pm I just checked (on WeAct STM32F411CE), library version 1.7.3 .

It works if i use:

Code: Select all

#define TFT_DC PA_3 //
#define TFT_CS PA_4
#define TFT_RST PA_2
It doesn't work with:

Code: Select all

#define TFT_DC PA3 //
#define TFT_CS PA4
#define TFT_RST PA2
I don't know why it is behaving like that...
Wow! Yup, I can confirm the same results :D Adding the underscore it now works with the F411. I also tested an ILI9341 display, and it also only works with the underscore.

However, with the F103, the only combination that I can get to work is with no underscore and only v1.1.0 of the library :?
Last edited by Kenjutsu on Thu Aug 26, 2021 9:00 am, edited 1 time in total.
Pieter

OSX: 11.6.8
Arduino IDE: 1.8.19
PlatformIO: 6.1.4
STM32 Core: 2.3.0
Get a $5 off coupon on your first purchase at Kaiweets
Kaiweets Affordable & Smart Electrical Testing Tools
Post Reply

Return to “STM32F4 based boards”