Closed IanBUK closed 3 years ago
Any suggestions? Does/Can this library work on the Nano 33 BLE please?
The Nano 33 would be treated as a generic processor and only basic Arduino I/O functions used (no optimsed code in the library).
I do not have a Nano 33 to test but I would expect it to work albeit very slowly. I suspect it would be so slow however that LVGL would run too slow to be usable.
I will look into the CONSTRUCTOR_INIT_TFT_DATA_BUS error as that may be a bug.
Ah, I see from the picture you posted that it is an 8/16 bit parallel display. Unfortunately parallel displays are not currently supported for generic processors, only ESP32 and STM32F series.
I suspect an SPI display would work OK as this has been tested on other generic processors, but it would be too slow to use with LVGL as explained above. Both parallel and SPI displays really need optimised drivers to get the performance to acceptable levels.
I'm trying to Arduino Nano 33 BLE Sense Rev2 (based on nrf52840, running MBED_OS)
I followed t5his thread and this is what I defined in User_setup.h
(as to those digital pins I have my ST7789 connected)
The lib Version is: 2.5.34
#ifdef ARDUINO_ARCH_MBED
#define TFT_MISO p4 // Arduino pin D12
#define TFT_MOSI p7 // Arduino pin D11
#define TFT_SCLK p6 // Arduino pin D13
#define TFT_CS p20 // Arduino pin D8
#define TFT_DC p21 // Arduino pin D9
#define TFT_RST p19 // Arduino pin D7
#else // For Earle Philhower's package the Arduino Dx pin designations must be used:
#define TFT_MISO D12
#define TFT_MOSI D11
#define TFT_SCLK D13
#define TFT_CS D8
#define TFT_DC D9
#define TFT_RST D7
#endif
I'm getting compilation errors:
Any Idea, how to proceed?
Good evening.
Does TFT_eSPI work with the Nano 33 BLE? I am using the Nano with the st7796s display. All works fine using mcufriend and adafruit_gfx, but I want to use TFT_eSPI so I can get anti-aliased fonts and use lvgl.
I’ve created a user setup file, based on the setup 31 st7796s parallel stm one, commenting out the #define stm line. If I don’t disable that line I get a whole load of compile errors because my board is not an stm one. If I do comment that line, I get compile failures in the example because CONSTRUCTOR_INIT_TFT_DATA_BUS is not defined. So, I assume I need an equivalent of the stm or esp32 processor files.
So, does this library work with the Nano 33 BLE and st7796s? What obvious thing am I missing?
Thanks.
TFT pins shown below.
_Originally posted by @IanBUK in https://github.com/Bodmer/TFT_eSPI/discussions/1248_