国产精品天干天干,亚洲毛片在线,日韩gay小鲜肉啪啪18禁,女同Gay自慰喷水

歡迎光臨散文網(wǎng) 會員登陸 & 注冊

lcd

2023-07-05 14:24 作者:改個名字收獲幸運  | 我要投稿

#include <LiquidCrystal.h>

LiquidCrystal lcd(12,11,4,5,6,7);

int analogInPin=A0;


void setup() {

? // put your setup code here, to run once:

? lcd.begin(16,2);

? lcd.clear();

? lcd.setCursor(1,0);

? lcd.print ("welcome");

? lcd.setCursor(1,1);

? lcd.print ("I love arduino");

? delay(2000);

}


void loop() {

? // put your main code here, to run repeatedly:

? int sensorVol=analogRead(analogInPin);

? int voltage=map(sensorVol,0,1023,0,500);

? showVol(voltage);

? delay(100);

}

void showVol(int vol)

{

? int vBai,vShi,vGe;

? vBai=vol/100%10;

? vShi=vol/100%10;

? vGe=vol%10;

? lcd.clear();

? lcd.setCursor(3,0);

? lcd.print ("Voltage is");

? lcd.setCursor(6,1);

? lcd.print (vBai);

? lcd.print (".");

? lcd.print (vShi);

? lcd.print (vGe);

? delay(2000);


}


lcd的評論 (共 條)

分享到微博請遵守國家法律
贵港市| 香港 | 舟曲县| 西青区| 兴和县| 丹阳市| 当雄县| 吉安市| 获嘉县| 新宁县| 陆川县| 象山县| 宜丰县| 武汉市| 河南省| 南昌市| 大庆市| 牙克石市| 平武县| 东平县| 安庆市| 盱眙县| 泰来县| 昌黎县| 疏附县| 岑巩县| 宁津县| 桦川县| 新河县| 丘北县| 芦溪县| 出国| 芦山县| 安吉县| 濮阳市| 广南县| 东乡族自治县| 沿河| 上栗县| 万安县| 宜都市|