LCD I2C CARATTERI

SALVE RAGAZZI UN AIUTO VORREI INSERIRE UN CARATTERE CHE O GENERATO DA UN PROGRAMMA SAREBBE QUESTO

#include <LiquidCrystal.h>

LiquidCrystal lcd(12, 11, 5, 4, 3, 2);

byte newChar[8] = {
B00000,
B11000,
B10110,
B11010,
B10110,
B11000,
B00000,
B00000
};

void setup() {
lcd.createChar(0, newChar);
lcd.begin(16,2);

}

void loop() {}

IL MIO LCD I2C FUNZIONA CON QUESTO ESEMPIO

#include <Wire.h> 
#include <LiquidCrystal_I2C.h>

// Set the LCD address to 0x27 for a 16 chars and 2 line display
LiquidCrystal_I2C lcd(0x27, 16, 2);

void setup()
{
	// initialize the LCD
	lcd.begin();

	// Turn on the blacklight and print a message.
	lcd.backlight();
	lcd.print("Hello, world!");
}

void loop()
{
	// Do nothing here...
}

COMO POSSO MODIFICARLO INSERIRE QUEI CODICI PER IL CARATTERE CHE HO CREATO CON IL PROGRAMMA,,,??

GRAZIE

Il codice devi racchiuderlo nei tag code (pulsante con <> e pergamena) altrimenti parte del codice può essere mal visualizzato. E non usare le maiuscole, per favore, equivale ad urlare.

#include <Wire.h>
#include <LiquidCrystal_I2C.h>

LiquidCrystal_I2C lcd(0x27, 16, 2); // Set the LCD address to 0x27 for a 16 chars and 2 line display

byte newChar[8] = { B00000, B11000, B10110, B11010, B10110, B11000, B00000, B00000 };

void setup() 
{ 
  lcd.begin(16,2); // initialize the LCD
  lcd.backlight(); // Turn on the blacklight and print a message.
  lcd.print("Hello, world!");
  lcd.createChar(0, newChar);
  lcd.write(byte(0));       // stampa nuovo carattere
}

void loop() {}

In pratica rimane tutto uguale, metti solo LiquidCrystal_I2C invece di LiquidCrystal
Ti ho anche messo la stampa di quel carattere, altrimenti che te ne fai ?

grazie problema risolto :smiley: