Skip to content

Commit

Permalink
Custom char working, NOTE previous commit was also fine
Browse files Browse the repository at this point in the history
- I had tried plugging into an alternative power source
  to make the LCD refresh faster, someone was talking about
  having less than the ideal voltage would slow it down
- that didn't fix the problem, but it apparently also broke
  driving the screen to some degree, moving the 5V and GCD
  back the the main driver board this code is working fine
  as well as the last commit

- don't need these links anymore, but the first one has a
  little pixel doodle thing to design chars

- some links from trying to work it out
- https://maxpromer.github.io/LCD-Character-Creator/
- https://forum.arduino.cc/t/solved-custom-chars-not-being-printed-on-lcd/413082/9
- https://forums.adafruit.com/viewtopic.php?f=31&t=25972
- arduino-libraries/LiquidCrystal#6
  • Loading branch information
jaltekruse committed May 7, 2023
1 parent 42521e3 commit db9dde5
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions HelloWorld_LCD/HelloWorld_LCD.ino
Original file line number Diff line number Diff line change
Expand Up @@ -447,20 +447,22 @@ const int rs = 2,
//LiquidCrystal lcd(rs, en, d0, d1, d2, d3, d4, d5, d6, d7);
LiquidCrystal lcd(rs, en, d4, d5, d6, d7);

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

void setup() {
lcd.createChar(0, smiley);
lcd.begin(16, 2);
lcd.write(byte(0));
lcd.createChar(0, customChar);
lcd.home();
lcd.write((char)0);
}

void loop() {}
void loop() { }

0 comments on commit db9dde5

Please sign in to comment.