File nut/include/dev/spi_lcd_st7565r.h


Included Files


Preprocessor definitions

#define _SPI_LCD_ST7565_H_

#define ST7565R_CLK_MAX 20000000

#define ST7565R_CONTRAST_MAX 40

#define ST7565R_CONTRAST_MIN 30

#define ST7565R_BPP 1

#define ST7565R_MAX_WIDTH 132

#define ST7565R_MAX_HEIGHT 65

#define ST7565R_CMD_DISPLAY_ON 0xAF

#define ST7565R_CMD_DISPLAY_OFF 0xAE

#define ST7565R_CMD_START_LINE_SET( line )

#define ST7565R_CMD_PAGE_ADDRESS_SET( page )

#define ST7565R_CMD_COLUMN_ADDRESS_SET_MSB( col )

#define ST7565R_CMD_COLUMN_ADDRESS_SET_LSB( col )

#define ST7565R_CMD_ADC_NORMAL 0xA0

#define ST7565R_CMD_ADC_REVERSE 0xA1

#define ST7565R_CMD_DISPLAY_NORMAL 0xA6

#define ST7565R_CMD_DISPLAY_REVERSE 0xA7

#define ST7565R_CMD_DISPLAY_ALL_POINTS_OFF 0xA4

#define ST7565R_CMD_DISPLAY_ALL_POINTS_ON 0xA5

#define ST7565R_CMD_LCD_BIAS_1_DIV_6_DUTY33 0xA2

#define ST7565R_CMD_LCD_BIAS_1_DIV_5_DUTY33 0xA3

#define ST7565R_CMD_NORMAL_SCAN_DIRECTION 0xC0

#define ST7565R_CMD_REVERSE_SCAN_DIRECTION 0xC8

#define ST7565R_CMD_VOLTAGE_RESISTOR_RATIO_0 0x20

#define ST7565R_CMD_VOLTAGE_RESISTOR_RATIO_1 0x21

#define ST7565R_CMD_VOLTAGE_RESISTOR_RATIO_2 0x22

#define ST7565R_CMD_VOLTAGE_RESISTOR_RATIO_3 0x23

#define ST7565R_CMD_VOLTAGE_RESISTOR_RATIO_4 0x24

#define ST7565R_CMD_VOLTAGE_RESISTOR_RATIO_5 0x25

#define ST7565R_CMD_VOLTAGE_RESISTOR_RATIO_6 0x26

#define ST7565R_CMD_VOLTAGE_RESISTOR_RATIO_7 0x27

#define ST7565R_CMD_POWER_CTRL_ALL_ON 0x2F

#define ST7565R_CMD_SLEEP_MODE 0xAC

#define ST7565R_CMD_NORMAL_MODE 0xAD

#define ST7565R_CMD_RESET 0xE2

#define ST7565R_CMD_NOP 0xE3

#define ST7565R_CMD_END 0xEE

#define ST7565R_CMD_READ_MODIFY_WRITE 0xE0

#define ST7565R_CMD_ELECTRONIC_VOLUME_MODE_SET 0x81

#define ST7565R_CMD_ELECTRONIC_VOLUME( volume )

#define ST7565R_CMD_BOOSTER_RATIO_SET 0xF8

#define ST7565R_CMD_BOOSTER_RATIO_2X_3X_4X 0x00

#define ST7565R_CMD_BOOSTER_RATIO_5X 0x01

#define ST7565R_CMD_BOOSTER_RATIO_6X 0x03

#define ST7565R_CMD_STATUS_READ 0x00


Typedef ST7565R_DCB

typedef struct _ST7565R_DCB ST7565R_DCB
struct _ST7565R_DCB  
   {  
      HANDLE dcb_lock;  
      int a0_port;  
      int a0_pin;  
      int reset_port;  
      int reset_pin;  
   }  

External Variables

nodeAt45d0
extern NUTSPINODE nodeAt45d0
Defined in: nut/dev/spi_node_at45d.c

devSt7565rFb0
extern NUTDEVICE devSt7565rFb0

Defined in: nut/dev/spi_lcd_st7565r.c