/* 
 * File:   st7032i.h
 * Author: sakazuyu
 *
 * Created on June 19, 2020, 6:29 AM
 */

#ifndef ST7032I_H
#define	ST7032I_H

#ifdef	__cplusplus
extern "C" {
#endif
#include <stdint.h>
    
#define LCD_CMD 0x00
#define LCD_DAT 0x40

#define CLEAR           0x01
#define HOME            0x02
#define DISP_SHIFT_L    0x18
#define DISP_SHIFT_R    0x1c
#define CUR_SHIFT_L     0x10
#define CUR_SHIFT_R     0x14

void lcd_init(void);
#define lcd_dat(x) lcd_send_char(LCD_DAT, x)
#define lcd_cmd(x) lcd_send_char(LCD_CMD, x)
void lcd_send_char(uint8_t cont, uint8_t dat);

#ifdef	__cplusplus
}
#endif

#endif	/* ST7032I_H */

