I'm trying to make a graphic lcd work. Specifically the glcd NHD-C12832A1Z-FSW-FBW-3V3 that uses ST7565R driver ic.
I am using atmega328p at 8MHz internal and glcd library from Andy Gock.
I already setup the symbols as describe in the readme of glcd library.
DEBUG GLCD_DEVICE_AVR8 GLCD_CONTROLLER_ST7565R GLCD_USE_SPI GLCD_INIT_NHD_C12832A1Z_FSW_FBW_3V3 GLCD_USE_AVR_DELAY __DELAY_BACKWARD_COMPATIBLE__ F_CPU=8000000
I changed port and pin definitions in /devices/AVR8.h to suit my mcu.
#define AVR_SS_PORT PORTB #define AVR_SS_PIN 2 #define CONTROLLER_MOSI_PORT PORTB #define CONTROLLER_MOSI_PIN 3 #define CONTROLLER_MISO_PORT PORTB #define CONTROLLER_MISO_PIN 4 #define CONTROLLER_SCK_PORT PORTB #define CONTROLLER_SCK_PIN 5 #define CONTROLLER_A0_PORT PORTD /**< Output port to GLCD A0 pin. */ #define CONTROLLER_A0_PIN 5 /**< Output pin number to GLCD A0 pin. */ #define CONTROLLER_SS_PORT PORTD #define CONTROLLER_SS_PIN 6 #define CONTROLLER_RST_PORT PORTD #define CONTROLLER_RST_PIN 7
I wired my hardware according to datasheet of the glcd. I am using 1uF caps for all pins that require caps. I used my own custom pcb breakout. Using TC1262-3.3VAB regulator from 5v powerbank.
Compiled the code without any errors.
Flash the program but nothing happened on glcd.
It supposed to output the demo and test from glcd library. Circles, counter and graph, text, hello world, etc.
I don't have any clue as to why it does not work.
Please help to find my mistakes so I can fix and make it work.