Hi all.
I'm trying to use a 1602 (16,2) style LCD via i2c PCF8574 on a Nuvoton Numaker Uno (ARM Cortex-M0 / Nuc131).
I'm currently trying to use the LiquidCrystal_I2C library as I have had this working with a Arduino Nano.
As a temporary workaround for compile errors, I have added to the sketch;
extern "C" void __cxa_pure_virtual() { while (1); }
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
extern "C" void __cxa_pure_virtual() { while (1); }
LiquidCrystal_I2C lcd(0x3F); // Set the LCD I2C address
#define LCD_ADDRESS 0x3F;
void setup()
{
lcd.begin(16,2); // initialize the lcd
lcd.backlight();
Serial.begin(19200);
}
void loop()
{
lcd.clear();
lcd.setCursor(0,0);
lcd.print("Test");
Serial.println("Running");
delay (2000);
}
This will then compile and appears to run any other code fine, printing to serial etc. however I only get a blinking curser that moves right 2 on each update and the backlight only flashes on with each LCD update.
I have been able to get this display working correctly with the Numaker with some code found on a Korean blog but this doesn't use an LCD library, so adds a lot of code to a sketch.
I would prefer if possible to modify (or have modified) the LiquidCrystal_I2C library so that others attempting to use this board can benefit from the ease and cleanliness of a working library.
Unfortunately I do not know where the compatibility issue is to even start trying to edit the library, so any guidance on this would be greatly appreciated
Thanks in advance,
-Craig