Skip to content

Instantly share code, notes, and snippets.

@cbscribe
Created November 30, 2020 19:23
Show Gist options
  • Save cbscribe/64d65a29326ab8979c0a62f89c41cce1 to your computer and use it in GitHub Desktop.
Save cbscribe/64d65a29326ab8979c0a62f89c41cce1 to your computer and use it in GitHub Desktop.
LCD custom character example
#include <LiquidCrystal.h>
// initialize the library with the numbers of the interface pins
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
byte Alien[] = {
B11111,
B10101,
B11111,
B11111,
B01110,
B01010,
B11011,
B00000
};
void setup() {
lcd.begin(16, 2);
lcd.createChar(1, Alien);
lcd.setCursor(0, 1);
lcd.write(1);
}
void loop()
{
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment