Go Down

Topic: TFT 3.5 inch ILI9488 with NANO BLE nRF528  (Read 186 times) previous topic - next topic

peterg2000

Has anyone managed to get an LCD of this type working on a NANO BLE?

I'm new to the Arduino world and was expecting more compatibility among the different type, but
I guess not! There seems to be many differences in the code!

I can get the screen to work on a DUE but not the NANO BLE.

If you did manage to get one working with a BLE please let me know what libraries were used! And an example would be nice!

I don't need any fancy graphics, mostly text (With different colors and fonts).

Thanks in advance

Pete

david_prentice

Please post a link to the actual TFT screen that you have bought.  e.g. Ebay sale page.

peterg2000


peterg2000

I can compile fine with a DUE selected as Arduino board , but when I change it to nRF528x NANO BLE I get .


Simple_test:38:5: error: 'portOutputRegister' was not declared in this scope

  *(portOutputRegister(digitalPinToPort(RS))) &=  ~digitalPinToBitMask(RS);//LCD_RS=0;

I've seen posts where they say several code modules have not been added to the nRF528 code!

Pete

peterg2000

Forgot to mention , this is used in SPI mode!

Pete

david_prentice

#5
Sep 16, 2020, 10:03 pm Last Edit: Sep 17, 2020, 12:35 am by david_prentice
Thanks for the link.   It should be very straightforward to get an SPI device running on the BLE.

Currently I don't have a BLE but have just ordered one.

I am reluctant to install anything from LCDWIKI.  They do not have approval from the IDE Library Manager.

David.

Edit.  I built examples for Nano33BLE target with Adafruit_ST7735,  Adafruit_SSD1306, Adafruit_ILI9341.

They compiled ok.  Obviously I can't see whether they work until my Nano33BLE board arrives.

The Download in your link seems to be circa 2018 e.g. this file is dated 07-Nov-2018
C:\Users\David Prentice\AppData\Local\Temp\Temp1_3.5inch_SPI_Module_ILI9488_MSP3520_V1.1.zip\3.5inch_SPI_Module_ILI9488_MSP3520_V1.1\1-Demo\Demo_Arduino\Install libraries\LCDWIKI_SPI\LCDWIKI_SPI.h

peterg2000

#6
Sep 17, 2020, 03:54 am Last Edit: Sep 17, 2020, 04:36 am by peterg2000
My suggested library to use other than the WIKI one is with the ILI9341. Someone mentioned a way to modify it to comply with the 9488 by changing some values  Only, the Height and Width parameters at Adafruit_ILI9341.h file is modified to
Code: [Select]


#define ILI9341_TFTWIDTH 320

#define ILI9341_TFTHEIGHT 480

And at the Adafruit_ILI9341.cpp file, at the function Adafruit_ILI9341::begin(void), the following lines are modified for adapting ILI9488 device (320x480 pixels).

writecommand(ILI9341_DFUNCTR); // Display Function Control

writedata(0x02);

writedata(0x02);

writedata(0x3B);


But I didn't see a writecommand in the cpp file!

What library did you compile with?

Thanks

Pete

david_prentice

No,  ILI9481, 9486, 9488 can only use 3 SPI bytes per pixel.
The ILI9341 libraries use 2 bytes per pixel.

So  it is much more involved than changing the initialisation sequence.

However an Adafruit GFX style library is infinitely preferable to the randomly spelled suspect methods from LCDWIKI.

David.

Go Up