Skip to content

Instantly share code, notes, and snippets.

@Amritach
Created May 30, 2015 09:16
/* Configure the data bus and Control bus as per the hardware connection */
#define GlcdDataBusPort LPC_GPIO1->FIOPIN
#define GlcdControlBusPort LPC_GPIO2->FIOPIN
#define GlcdDataBusDirnReg LPC_GPIO1->FIODIR
#define GlcdCtrlBusDirnReg LPC_GPIO2->FIODIR
#define GLCD_D0 20
#define GLCD_D1 21
#define GLCD_D2 22
#define GLCD_D3 23
#define GLCD_D4 24
#define GLCD_D5 25
#define GLCD_D6 26
#define GLCD_D7 27
#define GLCD_RS 0
#define GLCD_RW 1
#define GLCD_EN 2
#define GLCD_CS1 3
#define GLCD_CS2 4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment