Table of Contents
- Introduction
- Getting Started
- Adding CapSense Buttons
- How to Configure The OLED Display
- Device Assembly
- Programming, Test and Troubleshooting
- Summary
**********************************************************************************************************************
In this chapter I will show you how to configure the OLED display of the CY8CKIT-028-SENSE module. I will do this example on the PSoC 62S4 Pioneer Kit board and the difficulty is that you have to follow a few steps in ModusToolbox.
CY8CKIT-028-SENSE
The IoT sense expansion kit is a low-cost Arduino UNO compatible shield board that can be used to easily interface a variety of sensors with the PSoC 6 MCU platform, specifically targeted for audio and machine learning applications.
- Digital XENSIV MEMS Microphone(s)
- Digital XENSIV Barometric Air Pressure Sensor
- Bosch 9-axis Absolute Orientation Sensor
- Piezo MEMS Analog Microphone
- Audio Codec and headset jack
- OLED Display Module
In my design I am interested in using the OLED display to show messages, and this device has 128x64 pixel dot matrix OLED display driven by SSD1306 controller.
Creating an emWin application
ModusToolboox has the example application "emWin_OLED_FreeRTOS", but this app does not exist for the PSoC 62S4 board. So my strategy is to create the project for the PSoC 62S2 board, and then change the project settings to select the PSoC 62S4 board.
I have selected the application and I have given it the project name: "emWin_OLED_FreeRTOS_Config"
After a few minutes, the project "emWin_OLED_FreeRTOS_Config" has been created.
Now we open "Library Manager 2.0" from Quick Panel
Click "Add BSP", then select CY8CKIT-062S4 board and click OK as shown below.
Select "APP_CY8CKIT-062S4" in active mode. Finally click on Update.
Close Library Manager. Now open the Makefile and change the target settings: TARGET=APP_CY8CKIT-062S4
The Flash memory of the PSoC 62S4 board (256 MB) is less than the 62S2 board (512 MB). This example code uses a lot of memory in images, so when compiled it will surely indicate errors.
At the moment I'm only interested in testing the OLED display. So, open the oledTask.c file, comment the "MainTask()" appwizard and show a simple message on the OLED display as shown below.
We recompile the project again, and now we see that there are no errors.
Test
After upload the code we can test the OLED display on PSoC 62S4 board. The project works well as you can see below.
Conclusion
Everything done so far is going according to plan. The OLED screen is working fine and could be configured to be used with the PSoC 62S4 board to integrate it into my project, although there is no example application with ModusToolbox we already learned how to make it work.