Skip to content

Instantly share code, notes, and snippets.

@OrsoEric
Created February 16, 2019 08:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save OrsoEric/cdade14a5b2487cf4fc2ad1b7e0f867d to your computer and use it in GitHub Desktop.
Save OrsoEric/cdade14a5b2487cf4fc2ad1b7e0f867d to your computer and use it in GitHub Desktop.
//Decide if i'm using the D0-D3 or D4-D7 of the LCD port in 4BIT mode
//NOTE: Enable only one of the following defines
//#define LCD_PORT_HIGH
#define LCD_PORT_LOW
//DATA - LCD DATA PORT
#define LCD_PORT PORTA
//RS - LCD Register Select
#define RS_PORT PORTA
#define RS_PIN PA4
//EN - LCD Enable, Strobe 010 to execute an operation
#define EN_PORT PORTA
#define EN_PIN PA5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment