background image

 

PSoC 6 TFT Display Interface with EmWin Graphics Library 

www.cypress.com

 

Document Number: 002-23726 Rev. *B 

Figure 5. Build Messages 

 

After this, a notification is displayed. 

Figure 6. Updated Configuration Files 

 

Deselect the file (it is deselected by default), and click 

Replace

. If you select the file and click 

Replace

, the configuration file in 

the code example project will be replaced by the default configuration file. 

Design and Implementation 

This project uses a CY8CKIT-028-TFT TFT Display Shield together with the CY8CKIT-062-BLE Pioneer Board. The TFT shield 
has 

Newhaven 2.4″ 320×240 TFT

 display with 

Sitronix ST7789

 display controller and uses the 8080-Series Parallel Interface. 

There are two important parts in this code example: 

1. 

EmWin  Graphics  Library:

  The  EmWin  Graphics  Library  is  implemented  as  a  middleware  in  PDL  and  implements  all 

graphics functions.  The library manages a display buffer and updates this display buffer with pixel data according to graphics 
operations performed.  The library also communicates with the display driver using the 8-bit parallel interface implemented 
using the GraphicLCDIntf Component, and the LCD access routines defined in the 

LCDConf.c

 file. 

2. 

Application Code:

 The application code calls the EmWin graphics APIs to perform various graphics functions. 

Summary of Contents for CE223726

Page 1: ...Integrated Design Environment IDE If you are new to PSoC 6 MCU see the application note AN210781 Getting Started with PSoC 6 MCU with Bluetooth Low Energy BLE Connectivity For details of EmWin Graphi...

Page 2: ...IT 062 BLE kit guide for details on how to program firmware into the device The TFT display shows the startup screen for three seconds followed by a screen that displays instructions to press SW2 to s...

Page 3: ...PSoC 6 TFT Display Interface with EmWin Graphics Library www cypress com Document Number 002 23726 Rev B 3 Figure 3 Startup Screen and Instructions Screen...

Page 4: ...lay Interface with EmWin Graphics Library www cypress com Document Number 002 23726 Rev B 4 Figure 4 Pages Shown in Sequence Important Note When you build the project you will see the following notifi...

Page 5: ...TFT shield has a Newhaven 2 4 320 240 TFT display with a Sitronix ST7789 display controller and uses the 8080 Series Parallel Interface There are two important parts in this code example 1 EmWin Grap...

Page 6: ...iver Library Under the Graphics emWin section select the Core and LCD Driver options Figure 7 Build Settings 2 Select the nOSnTS option for Core because this project does not use RTOS or Touch support...

Page 7: ...controller has a resolution of 240x320 pixels This controller supports various color palettes This project uses the 16 bits per pixel RGB 5 6 5 color palette 5 bits R 6 bits G 6 bits G Per the EmWin...

Page 8: ...esolutions the orientation is set to swap X and Y axes and mirror the Y axis CONFIG_FLEXCOLOR Config 0 Config Orientation GUI_MIRROR_Y GUI_SWAP_XY GUIDRV_FlexColor_Config pDevice Config The PortAPI st...

Page 9: ...nent SW2 is a digital input that is connected to SW2 on the CY8CKIT 062 BLE kit This pin is configured as Resistive Pull Up SW2 is connected to a Status Register to read the switch status A 100 Hz clo...

Page 10: ...ister Status_SW2 This status register is used to read SW2 status See the PSoC Creator project for more details on PSoC Component configurations and design wide resource settings Related Documents Appl...

Page 11: ...ment Title CE223726 PSoC 6 TFT Display Interface with EmWin Graphics Library Document Number 002 23726 Revision ECN Orig of Change Submission Date Description of Change 6299269 GRAA 09 18 2018 New cod...

Page 12: ...n Cypress hardware or software products Cypress shall have no liability arising out of any security breach such as unauthorized access to or use of a Cypress product CYPRESS DOES NOT REPRESENT WARRANT...

Reviews: