LCD1602显示屏:1 个
220欧的电阻:1 个
旋钮电位器:1 个
面包板:1个
杜邦线:若干

- #include
-
- LiquidCrystal lcd(12,11,5,4,3,2);
-
- void setup(){
- lcd.begin(16,2);
-
- lcd.setCursor(6,0);
- lcd.print("hello!");
- }
-
- void loop(){
- lcd.setCursor(5,1);
- lcd.print(millis()/1000);
- lcd.print(" Second");
- }
【Arduino25】液晶模拟值实验
通过本次实验,我学会了 LCD1602显示屏的使用,了解了 LiquidCrystal.h 头文件的用法。