How to use SPI with PSoC6 WiFi-BT Pioneer Kit?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
ShAb_4059181
Level 2
Level 2

I have a Adafruit 1.54" 240x240 TFT (W7923-A).

I want to use the above display instead of the CY8CKIT-028-TFT and I want to use EmWin Graphic Library and SPI (not Quad SPI FRAM as Display Buffer).

Any help is appreciated.

0 Likes
1 Solution

Yes, in the component catalog, the GraphicsLCDCtrl macro is nothing but the component along with default settings to interface an LCD. But I checked the datasheet for your LCD and don't think it supports a parallel interface, so you can't use the GraphicsLCD component.

You need to use the SPI component solely to interface the LCD. Now for this you will need the Adafruit driver library to make it easier. You will find their libraries on Github, but they are mostly written in C++. Since Creator doesn't support C++ you need to translate the code to C.

Please find the C library written for ST7735 here: ucglib/ucg_dev_tft_128x160_st7735.c at master · olikraus/ucglib · GitHub ​. Your driver is ST7789, which should be fairly similar. So modify the SPI transaction code to use the SPI APIs written by Cypress.

Right click on the SPI component > Open PDL Documentation to find the required APIs.

Regards,

Dheeraj

View solution in original post

3 Replies