The Arduino GN1621 driver library can be downloaded in the attachment column below as the GN1621.zip file.
API 参考:
void begin(int cs_p, int wr_p, int data_p);
// 初始化模块,设置UNO对接模块 #CS 、#WR 、DATA 引脚编号。
void clear(void);
// 清屏。
void print(int num);
// 显示数字。不保留高位的0,比如 0000 只显示 0
void print(int num, int flg);
// 显示数字加显符号,flg传入 3加显三点,2加显冒号,1加显冒号和三点
// 如果需要保留高位的0 则flg传入 参数加0 变成 30,20,10
// 比如 lcd.print(1,20); 显示 00:01 也可以用 lcd.print(0001,20); 功能相同。
// 如果只是需要保留高位的0不加显三点和或冒号,用 lcd.print(1,40);即可显示 0001
void print(float num);
// 显示浮点数 ,自动选择小数点位数.
void display(void);
// 开启显示字符。
void noDisplay(void);
// 关闭字符显示。
void tone(bool STA);
// 控制模块蜂鸣器,STA 传入 true 打开蜂鸣器发声,传入 false 关闭蜂鸣器不发声。
All reference designs on this site are sourced from major semiconductor manufacturers or collected online for learning and research. The copyright belongs to the semiconductor manufacturer or the original author. If you believe that the reference design of this site infringes upon your relevant rights and interests, please send us a rights notice. As a neutral platform service provider, we will take measures to delete the relevant content in accordance with relevant laws after receiving the relevant notice from the rights holder. Please send relevant notifications to email: bbs_service@eeworld.com.cn.
It is your responsibility to test the circuit yourself and determine its suitability for you. EEWorld will not be liable for direct, indirect, special, incidental, consequential or punitive damages arising from any cause or anything connected to any reference design used.
Supported by EEWorld Datasheet