五月天青色头像情侣网名,国产亚洲av片在线观看18女人,黑人巨茎大战俄罗斯美女,扒下她的小内裤打屁股

歡迎光臨散文網(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的評論 (共 條)

分享到微博請遵守國家法律
罗山县| 寻甸| 松阳县| 阿拉尔市| 交口县| 乾安县| 财经| 长治市| 呼伦贝尔市| 财经| 道孚县| 措勤县| 皮山县| 甘谷县| 万荣县| 巫山县| 西乡县| 汶川县| 崇阳县| 忻城县| 通许县| 宜州市| 凤阳县| 平谷区| 梓潼县| 六枝特区| 泽库县| 凤山市| 潮州市| 洛阳市| 科技| 绿春县| 南陵县| 惠水县| 泰来县| 惠东县| 股票| 崇文区| 嘉兴市| 中方县| 富蕴县|