Replies: 6 comments 5 replies
-
You must use the hardware SPI port pins because TFT_eSPI does not support software SPI. The Adafruit library will "bit bash" SPI using software, thus will be slow. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Thanks for the reply. Yes, you are right, I was using software SPI on Adafruit , which I did not realise, because I was using hardware SPI pins. Now I can play with the demos, I currently would like to load some fonts and do flicker free refresh on text changed, thus I am trying to play with font demo, however have below error. Which demo would be a good starting point for font / text refresh ? Thanks |
Beta Was this translation helpful? Give feedback.
-
Excellent! This library is fantastic! I have put in to my code and its behaviour is more predictable than Adafruit.
Cheers, |
Beta Was this translation helpful? Give feedback.
-
Thanks for the feedback, it's good to hear it is works. Re. questions.
Work with one screen initially to familiariise yourself with the library. There are lots of examples that cover the library functions and most have explanation comments |
Beta Was this translation helpful? Give feedback.
-
What I didn't mention was I declared sprite size exactly as screen size. I have tried different combination of swapping W and H of screen and sprite as well as set rotation on screen , with setting different offset on How to deal with sprite on a landscape screen? Cheers, |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have spent the last 2 days trying to make this library work using above combination.
Board: STM32F411CEU6 , ST official core
Screen: ST7789 TFT 135x240
This combination is working with Adafruit ST7789 library however I am suffering performance issue, thus I am very keen to make this work.
What I have tried:
Below is my setup file, what am I doing wrong here?
Thanks in advance.
Nick
`// ST7789 135 x 240 display with no chip select line
#define ST7789_DRIVER // Configure all registers
#define STM32
#define TFT_WIDTH 135
#define TFT_HEIGHT 240
//#define CGRAM_OFFSET // Library will add offsets required
//#define TFT_RGB_ORDER TFT_RGB // Colour order Red-Green-Blue
//#define TFT_RGB_ORDER TFT_BGR // Colour order Blue-Green-Red
#define TFT_INVERSION_ON
//#define TFT_INVERSION_OFF
// DSTIKE stepup
#define TFT_DC 20//PB4
#define TFT_RST 22//PB6
#define TFT_MOSI 21//PB5
#define TFT_SCLK 19//PB3
#define TFT_CS 8 // PA8 // Not connected
#define TFT_BL 23//PB7 // LED back-light control pin PB7
#define TFT_BACKLIGHT_ON HIGH // Level to turn ON back-light (HIGH or LOW)
#define LOAD_GLCD // Font 1. Original Adafruit 8 pixel font needs ~1820 bytes in FLASH
#define LOAD_FONT2 // Font 2. Small 16 pixel high font, needs ~3534 bytes in FLASH, 96 characters
#define LOAD_FONT4 // Font 4. Medium 26 pixel high font, needs ~5848 bytes in FLASH, 96 characters
#define LOAD_FONT6 // Font 6. Large 48 pixel font, needs ~2666 bytes in FLASH, only characters 1234567890:-.apm
#define LOAD_FONT7 // Font 7. 7 segment 48 pixel font, needs ~2438 bytes in FLASH, only characters 1234567890:.
#define LOAD_FONT8 // Font 8. Large 75 pixel font needs ~3256 bytes in FLASH, only characters 1234567890:-.
#define LOAD_GFXFF // FreeFonts. Include access to the 48 Adafruit_GFX free fonts FF1 to FF48 and custom fonts
// #define SPI_FREQUENCY 27000000
#define SPI_FREQUENCY 40000000
//#define SPI_READ_FREQUENCY 20000000
//#define SPI_TOUCH_FREQUENCY 2500000
#define SUPPORT_TRANSACTIONS
`
Beta Was this translation helpful? Give feedback.
All reactions