|
楼主 |
发表于 2013-1-22 00:19:43
|
显示全部楼层
445814907 发表于 2013-1-21 23:42
你把这个扩展板查到arduino 上后,用4线接法后,看看用到那写arduino的引脚了。剩下没有用到的你就可以再扩 ...
恩。。。
我按照 http://blog.sina.com.cn/s/blog_6243051e01014ly8.html
里的说明,
Arduino和LCD Keypad的对应关系:
Arduino LCD Keypad Comments
PIN4(D) DB4
PIN5(D) DB5
PIN6(D) DB6
PIN7(D) DB7
PIN8(D) RS Reset
PIN9(D) E(nable)
PIN10(D) Background Light
PIN0(A) Input (Select, Up, Down, Right, Left, Reset)
#include <LiquidCrystal.h>
LiquidCrystal lcd(8, 13, 9, 4, 5, 6, 7);
貌似只用到了4-9 数字口,还有A0模拟输入案件信息,加上5V , GND就ok了
LiquidCrystal lcd(8, 13, 9, 4, 5, 6, 7);
|
|