Check this PSOC4 UART code example (receiving/sending command string from terminal and changing LED brightness)
And similar for UDB mode
The examples above are for PSoC4200, and I believe you have PSoC4100, so there may be some differences.
For the future, do not post JPEG snippets of the code, there is standard solution for sharing the project.
1. Clean the project, Top Menu->Build->Clean. 2. Select Project Name in the Project Explorer window on the left and File->Create Workspace Bundle->Minimal. 3. Open created Archive file (zip) and delete Generated Source folder. Now you can post small archived project for review.