Hello,
This library is old and it is not maintained by its original owner.
However Kenji Aray updated it for MbedOS6. I use this TextLCD under the Mbed Studio, MbedOS6.5 bare metal and Nucleo-F303K8.
Example
#include "mbed.h"
#include "TextLCD.h"
DigitalOut led(LED1);
I2C i2cBus(I2C_SDA, I2C_SCL);
TextLCD_I2C lcd(&i2cBus, PCF8574_SA7, TextLCD::LCD20x4);
int main(){
printf("LCD test\n");
lcd.setCursor(TextLCD::CurOff_BlkOff);
lcd.cls();
lcd.setBacklight(TextLCD::LightOn);
lcd.printf("LCD hello\n");
thread_sleep_for(50);
while(1) {
thread_sleep_for(500);
led = !led;
}
}
BR, Jan