31 lines
521 B
C
Executable File
31 lines
521 B
C
Executable File
|
|
|
|
#ifndef __LCD_H__
|
|
#define __LCD_H__
|
|
#include "type.h"
|
|
#include "igpio.h"
|
|
|
|
typedef enum
|
|
{
|
|
ARROW_LEFT,
|
|
ARROW_RIGHT,
|
|
}ARROW_DIRECTON;
|
|
typedef enum{LINE_1=0,LINE_2}POS_LINE;
|
|
|
|
#define LINE_CHAR_NUM 20
|
|
#define ARROW_CHAR_NUM 1 //只能为1 或者2
|
|
|
|
|
|
|
|
extern volatile uint32 sys_ready;
|
|
void lcd_write_string(uint8 X,uint8 Y,void *s);
|
|
void lcd_init(void);
|
|
void lcd_write_temp_c(uint8 x,uint8 y);
|
|
void lcd_write_temp_f(uint8 x,uint8 y);
|
|
void lcd_write_cache(void);
|
|
void set_gpio_fpga_reset(uint8 set_val);
|
|
|
|
|
|
#endif
|
|
|