查看: 1264|回复: 0
打印 上一主题 下一主题

液晶屏(RA8806)驱动程序

[复制链接]
跳转到指定楼层
沙发
发表于 2015-9-23 15:56:14 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
程序实现了刷图,描点,触摸,显示文字,大小,反色等功能
主要函数
extern void soft_rst(void);
extern unsigned char read_status(void);
extern void write_reg(unsigned char reg_addr,unsigned char reg_data);
extern unsigned char read_reg(unsigned char reg_addr);
extern void write_dram(unsigned char *pdram_data,unsigned int dram_length);
extern void read_dram(unsigned char *pdram_data,unsigned int dram_length);
extern void write_dram_byte(unsigned char temp);
extern unsigned char read_dram_byte();
extern void RA8806_initial(void);
extern void fill_dram(unsigned char dram_data);
extern void dsp_str(unsigned char line,unsigned char column,unsigned char *str);
extern void reverse_show(bit en);
extern void text_mode(bit en);
extern void disp_on(bit en);
extern void eliminating_flicker(bit en);
extern void scan_mode(bit en);
extern void bold_enable(bit en);
extern void show_cursor(bit en);
extern void inverse_input(bit en);
extern void single_layer(bit layer);
extern void dual_layer(unsigned char mode);
extern void set_active_layer(unsigned char layer);
extern void cursor_vertical(bit en);
extern void enlarge(unsigned char k);
extern void set_active_window(unsigned char left,unsigned char right,unsigned char top,unsigned char bottom);
extern void enable_auto_touch(void);
extern void dotting(unsigned int x,unsigned int y);
//extern void draw_frame(unsigned char width,unsigned char height);
extern void draw_line(unsigned int x ,unsigned char y,unsigned int length,bit en);转载

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 加入中科因仑

本版积分规则

快速回复 返回顶部 返回列表