Created
          November 30, 2020 19:23 
        
      - 
      
- 
        Save cbscribe/64d65a29326ab8979c0a62f89c41cce1 to your computer and use it in GitHub Desktop. 
    LCD custom character example
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #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