📄 ocm4x8c.h
字号:
#ifndef __ocm4x8c_h__
#define __ocm4x8c_h__
#define LCD_RS PA1
#define LCD_RW PA2
#define LCD_E PA3
#define LCD_PWR_INIT_IO() DDRC |= _BV(PC5)
#define LCD_POWER_OFF() PORTC |= _BV(PC5)
#define LCD_POWER_ON() PORTC &= ~_BV(PC5)
#define CLR_RS() PORTA &= ~_BV(LCD_RS)
#define SET_RS() PORTA |= _BV(LCD_RS)
#define CLR_RW() PORTA &= ~_BV(LCD_RW)
#define SET_RW() PORTA |= _BV(LCD_RW)
#define CLR_E() PORTA &= ~_BV(LCD_E)
#define SET_E() PORTA |= _BV(LCD_E)
void lcd_power_on(void);
void lcd_power_off(void);
void lcd_chk_busy(void);
void lcd_write_data(uint8_t data);
void lcd_write_command(uint8_t command);
void lcd_init(void);
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -