Arduino Uno with LCD 20X4 I2C (Aip31068_i2c-2)
Quote from robotics on October 9, 2024, 8:15 pmHi
I am using an UNO and the 20X4 I2C LCD (Inside SimulIDE is use -> Aip31068_i2c-2 display)
- I am using Arduino ver 1.8 and SimulIDE 1.1.0 – Last Stable version.
- I have left my user data folder empty and also used this option C:/Simulink/data/When i compile it inside SimulIDE, it gives no error, but nothing is displayed
When i test code on Wokwi Arduino Simulator it works 100%#include <Wire.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C MyLCD(0x27, 20, 4); // Creates I2C LCD Object With (Address=0x27, Cols=20, Rows=4)void setup()
{MyLCD.init();
MyLCD.backlight();
MyLCD.setCursor(0, 0); MyLCD.print(" Line 1 - LCD 20X4");
MyLCD.setCursor(0, 1); MyLCD.print(" Line 2 - I2C INTERFACE");
MyLCD.setCursor(0, 2); MyLCD.print(" Line 3 - 5V");
MyLCD.setCursor(0, 3); MyLCD.print(" Line 4 - Last Line");
}void loop()
{
}Any help will be appreciated !
Hi
I am using an UNO and the 20X4 I2C LCD (Inside SimulIDE is use -> Aip31068_i2c-2 display)
- I am using Arduino ver 1.8 and SimulIDE 1.1.0 – Last Stable version.
- I have left my user data folder empty and also used this option C:/Simulink/data/
When i compile it inside SimulIDE, it gives no error, but nothing is displayed
When i test code on Wokwi Arduino Simulator it works 100%
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C MyLCD(0x27, 20, 4); // Creates I2C LCD Object With (Address=0x27, Cols=20, Rows=4)
void setup()
{
MyLCD.init();
MyLCD.backlight();
MyLCD.setCursor(0, 0); MyLCD.print(" Line 1 - LCD 20X4");
MyLCD.setCursor(0, 1); MyLCD.print(" Line 2 - I2C INTERFACE");
MyLCD.setCursor(0, 2); MyLCD.print(" Line 3 - 5V");
MyLCD.setCursor(0, 3); MyLCD.print(" Line 4 - Last Line");
}
void loop()
{
}
Any help will be appreciated !
Quote from arcachofo on October 10, 2024, 11:28 amHi.
LiquidCrystal_I2C library seems to be very outdated.
You can check the example at: File explorer->Examples->Outputs->Displays->aip31068
That one is using LiquidCrystal_AIP31068_I2CAnd be sure to use the same I2C address in the sketch and in the display (by default 0x3E).
Hi.
LiquidCrystal_I2C library seems to be very outdated.
You can check the example at: File explorer->Examples->Outputs->Displays->aip31068
That one is using LiquidCrystal_AIP31068_I2C
And be sure to use the same I2C address in the sketch and in the display (by default 0x3E).
Quote from robotics on October 10, 2024, 4:30 pmHi Arcachofo
This works!!! Thanks so much for helping
I downloaded the library from -> https://github.com/red-scorp/LiquidCrystal_AIP31068#include <LiquidCrystal_AIP31068_I2C.h>
// I2C address = 0x3E , 20x4 display
LiquidCrystal_AIP31068_I2C lcd( 0x3E, 20, 4 );void setup()
{
lcd.init();
lcd.setCursor(3,0);
lcd.print("Hello World");lcd.setCursor(0,1);
lcd.print("********************");lcd.setCursor(0,2);
lcd.print("* CPUT Project *");lcd.setCursor(0,3);
lcd.print("********************");
}void loop()
{
}
Hi Arcachofo
This works!!! Thanks so much for helping
I downloaded the library from -> https://github.com/red-scorp/LiquidCrystal_AIP31068
#include <LiquidCrystal_AIP31068_I2C.h>
// I2C address = 0x3E , 20x4 display
LiquidCrystal_AIP31068_I2C lcd( 0x3E, 20, 4 );
void setup()
{
lcd.init();
lcd.setCursor(3,0);
lcd.print("Hello World");
lcd.setCursor(0,1);
lcd.print("********************");
lcd.setCursor(0,2);
lcd.print("* CPUT Project *");
lcd.setCursor(0,3);
lcd.print("********************");
}
void loop()
{
}