Ported Version of emwin eink and modus toolbox tft for psoc 6 cy8ckit wifi bt and cy8ckit-028-tft display. Works with the WiFi-BT pioneer kit hardware.

Committer:
reedas
Date:
Fri Aug 09 23:18:24 2019 +0000
Revision:
0:4ad2c16b6e43
First Commit

Who changed what in which revision?

UserRevisionLine numberNew contents of line
reedas 0:4ad2c16b6e43 1 # mbed-os-example-emwin-eink
reedas 0:4ad2c16b6e43 2
reedas 0:4ad2c16b6e43 3 Note: This project does not work with Mbed OS version 5.13.x. This will be updated soon.
reedas 0:4ad2c16b6e43 4
reedas 0:4ad2c16b6e43 5 ## **Introduction**
reedas 0:4ad2c16b6e43 6
reedas 0:4ad2c16b6e43 7 This code example demonstrates displaying graphics on a cy8ckit-028-tft display using EmWin graphics library in Mbed OS.
reedas 0:4ad2c16b6e43 8
reedas 0:4ad2c16b6e43 9 ## **Hardware**
reedas 0:4ad2c16b6e43 10
reedas 0:4ad2c16b6e43 11 This code example can be run using the following Cypress kits.
reedas 0:4ad2c16b6e43 12
reedas 0:4ad2c16b6e43 13 [CY8CKIT-062BLE Kit with tft shield](https://www.cypress.com/documentation/development-kitsboards/psoc-6-ble-pioneer-kit-cy8ckit-062-ble)
reedas 0:4ad2c16b6e43 14
reedas 0:4ad2c16b6e43 15 [CY8CKIT-062-WiFi-BT Kit](https://www.cypress.com/documentation/development-kitsboards/psoc-6-wifi-bt-pioneer-kit-cy8ckit-062-wifi-bt) with [CY8CKIT-028-TFT Shield](https://www.cypress.com/documentation/development-kitsboards/e-ink-display-shield-board-cy8ckit-028-tft)
reedas 0:4ad2c16b6e43 16
reedas 0:4ad2c16b6e43 17 ## **Instructions to run the code example**
reedas 0:4ad2c16b6e43 18
reedas 0:4ad2c16b6e43 19 1. Import the code example into your mbed directory using following mbed command.
reedas 0:4ad2c16b6e43 20
reedas 0:4ad2c16b6e43 21 `mbed import https://github.com/cypresssemiconductorco/mbed-os-example-emwin-tft`
reedas 0:4ad2c16b6e43 22
reedas 0:4ad2c16b6e43 23 2. Change working directory to the code example folder
reedas 0:4ad2c16b6e43 24
reedas 0:4ad2c16b6e43 25 `cd mbed-os-example-emwin-tft`
reedas 0:4ad2c16b6e43 26
reedas 0:4ad2c16b6e43 27 3. Compile the code and program the target board.
reedas 0:4ad2c16b6e43 28
reedas 0:4ad2c16b6e43 29 `mbed compile --toolchain GCC_ARM --target CY8CKIT_062_BLE --flash`
reedas 0:4ad2c16b6e43 30
reedas 0:4ad2c16b6e43 31 ## **Code Example Operation**
reedas 0:4ad2c16b6e43 32
reedas 0:4ad2c16b6e43 33 - Once the project is compiled and the board is programmed, reset the board.
reedas 0:4ad2c16b6e43 34 - The program first initializes the EInk display controller. If there is an error in initialization, for example, if the shield board is not present, the red LED is turned on and the program enters an infinite loop.
reedas 0:4ad2c16b6e43 35 - If the initialization is successful, the startup screen with Cypress logo is displayed on the EInk display for 3 seconds.
reedas 0:4ad2c16b6e43 36 - After 2 seconds, another screen with instructions to press SW2 to scroll through the display pages is displayed.
reedas 0:4ad2c16b6e43 37 - Press SW2 to scroll through various display pages that demonstrate the EmWin graphic library's 2D graphics features. Following are the screens displayed.
reedas 0:4ad2c16b6e43 38 - Text Alignments and Modes
reedas 0:4ad2c16b6e43 39 - Text Colours
reedas 0:4ad2c16b6e43 40 - Font sizes - normal fonts
reedas 0:4ad2c16b6e43 41 - Font sizes - bold fonts
reedas 0:4ad2c16b6e43 42 - Text alignments and styles
reedas 0:4ad2c16b6e43 43 - Text wrap and rotation
reedas 0:4ad2c16b6e43 44 - 2D graphics #1
reedas 0:4ad2c16b6e43 45 - 2D graphics #2
reedas 0:4ad2c16b6e43 46 - The green LED is turned on when the display is updated with new content.
reedas 0:4ad2c16b6e43 47 ## **References**
reedas 0:4ad2c16b6e43 48
reedas 0:4ad2c16b6e43 49 [Segger EmWin User Guide](https://cypresssemiconductorco.github.io/middleware-emwin/UM03001_emWin5.pdf)
reedas 0:4ad2c16b6e43 50
reedas 0:4ad2c16b6e43 51 [Cypress EmWin Middleware Overview](https://cypresssemiconductorco.github.io/middleware-emwin/emwin_overview/html/index.html)
reedas 0:4ad2c16b6e43 52
reedas 0:4ad2c16b6e43 53 ### Document History
reedas 0:4ad2c16b6e43 54
reedas 0:4ad2c16b6e43 55 Document Title: emWin EInk for Mbed OS
reedas 0:4ad2c16b6e43 56
reedas 0:4ad2c16b6e43 57 | Revision | Orig. of Change | Submission Date | Description of Change |
reedas 0:4ad2c16b6e43 58 | -------- | --------------- | --------------- | --------------------- |
reedas 0:4ad2c16b6e43 59 | ** | GRAA | 5/23/2019 | New code example. Tested with Mbed OS Version 5.12.2
reedas 0:4ad2c16b6e43 60 | ** | ASR | 8/9/2019 | Ported Eink version to TFT shield
reedas 0:4ad2c16b6e43 61
reedas 0:4ad2c16b6e43 62 ------
reedas 0:4ad2c16b6e43 63