Go Down

Topic: BUG - LiquidCrystal createChar() - site documentation (Read 340 times) previous topic - next topic

JohnnyDoe

https://www.arduino.cc/en/Reference/LiquidCrystalCreateChar

the code SHOULD be:

Code: [Select]


#include <LiquidCrystal.h>

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

byte smiley[8] = {
  B00000,
  B10001,
  B00000,
  B00000,
  B10001,
  B01110,
  B00000,
};

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

  lcd.clear();

  lcd.write(byte(0));
}

void loop() {}




  lcd.clear();



is missing, without this line, the LCD is blank/filled solid

Go Up