Greetings dear friends!
Help is needed. Tester M644 as in the message "Reply # 5017 on: August 17, 2018, 04:03:16 am". Does not work with firmware 1.33 or 1.34. More precisely, the tester works, but there is no display on the display. I tried different options in the file, nothing happened. Where was I wrong, why does SPI not work?
config_644.h
//#if 0
#define LCD_ST7565R
#define LCD_GRAPHIC /* graphic display */
#define LCD_SPI /* SPI interface */
#define LCD_PORT PORTB /* port data register */
#define LCD_DDR DDRB /* port data direction register */
#define LCD_RESET PB4 /* port pin used for /RES (optional) */
//#define LCD_CS PB3 /* port pin used for /CS1 (optional) */
#define LCD_A0 PB5 /* port pin used for A0 */
#define LCD_SCL PB6 /* port pin used for SCL */
#define LCD_SI PB7 /* port pin used for SI (LCD's data input) */
#define LCD_DOTS_X 128 /* number of horizontal dots */
#define LCD_DOTS_Y 64 /* number of vertical dots */
//#define LCD_FLIP_X /* enable horizontal flip */
#define LCD_OFFSET_X /* enable x offset of 4 dots */
#define LCD_FLIP_Y /* enable vertical flip */
#define LCD_START_Y 0 /* start line (0-63) */
#define LCD_CONTRAST 8 /* default contrast (0-63) */
#define FONT_8X8_VF /* 8x8 font, vertically aligned & flipped */
#define SYMBOLS_24X24_VFP /* 24x24 symbols, vertically aligned & flipped */
#define SPI_HARDWARE /* hardware SPI */
//#endif
.....
.....
/*
* test push button and power management
*/
#define CONTROL_PORT PORTB /* port data register */
#define CONTROL_DDR DDRB /* port data direction register */
#define CONTROL_PIN PINB /* port input pins register */
#define POWER_CTRL PB1 /* controls power (1: on / 0: off) */
#define TEST_BUTTON PC7 /* test/start push button (low active) */
/*
* rotary encoder
*/
#define ENCODER_PORT PORTB /* port data register */
#define ENCODER_DDR DDRB /* port data direction register */
#define ENCODER_PIN PINB /* port input pins register */
#define ENCODER_A PB5 /* rotary encoder A signal */
#define ENCODER_B PB7 /* rotary encoder B signal */