I am using a CFAG12864B-WGH-V and have it connected to my PIC18f6720 board with no problems. When I supply the PIC with power, the lcd turns on and has every pixel turned on giving me a black screen. Currently I'm trying to turn the screen off (command 00111110, 0x3E), but I cannot get my code to work. What am I doing wrong?
Code:
#include <protoalone.h>
#define CS1 PIN_C4
#define CS2 PIN_C5
#define RST PIN_C2
#define RW PIN_C3
#define DI PIN_C0
#define E PIN_C1
#define D_ADDRESS 0xf83
#byte lcd=D_ADDRESS
main() {
int8 screenon=0x3E;
output_low(RW);
output_low(CS1);
output_low(CS2);
output_low(E);
lcd=screenon;
output_high(E);
}
Looking for additional LCD resources? Check out our LCD blog for the latest developments in LCD technology.
Last edited: