But there also was a request for a sample using an I2C-LCD module.
So I ordered my modules to Amazon, then noticed that there were very few documentation(s) available for the module,
except Arduino C++ sample.
At first I tried to port the Arduino sample, but the more I tried the more screwed up I was 😜
Today, I realized that the device on the module is PCF8574, which is an I2C - port expander and reading the datasheet it's pretty easy to handle. So I discarded my pasta I've been boiled for a few days and ported my previous program directly using the PCF8574.
Anyway, it seems to be working now.
Note: Using the module (and/or CY8CKIT-062-BLE) we don't need external I2C pull-ups.
Although the spec of the I2C module was 5V, it worked OK with 3.3V on my side of the planet.
If you are going to use 5V LCD module and power the I2C-LCD module with 5V,
please use 3.3V for I2C pull up to avoid burning PSoC 6.
(You may need to remove 4.7K pull-ups on the module, which is connected to VCC (=5V))
Tera Term log (to write "Hello World!" from this program)