I'm still having a couple minor issues. The text in the display is shifted a little bit (see picture attached). I checked the flags in the documentation but couldn't find an obvious one to try, any ideas, please?
The second issue is, I added the POWER_OFF flag to the Makefile, but the tester keeps probing on a loop. Here's what I got in WinAVR, I added the last two compiler flags, and it compiles without error, not sure what I'm doing wrong.
# compiler flags
CC = avr-gcc
CPP = avr-g++
CFLAGS = -mmcu=${MCU} -Wall -I. -Ibitmaps
CFLAGS += -DF_CPU=${FREQ}000000UL
CFLAGS += -DOSC_STARTUP=${OSC_STARTUP}
CFLAGS += -gdwarf-2 -std=gnu99 -Os -mcall-prologues
CFLAGS += -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums
#CFLAGS += -flto
CFLAGS += -MD -MP -MT $(*F).o -MF dep/$(@F).d
CFLAGS += -DLCD_ST7565_V_FLIP=1
CFLAGS += -DPOWER_OFF
EDIT: Wait a minute, I commented out both those flags I added, compiled, flashed... and it made no difference. Looks like it's ignoring them completely.