码迷,mamicode.com
首页 > 其他好文 > 详细

Arduino程序-光敏电阻

时间:2017-05-29 22:23:56      阅读:266      评论:0      收藏:0      [点我收藏+]

标签:分享   UI   bsp   gre   iss   serial   oid   art   http   

尽管造书去做的。但还是有莫名的成就感


从串口显示出,电压变化,


void setup() {
  // put your setup code here, to run once:
  Serial.begin(9600);
  
}


void loop() {
  // put your main code here, to run repeatedly:
  int val=analogRead(A0);
  Serial.println(val);
  delay(500);
}


技术分享


技术分享

Arduino程序-光敏电阻

标签:分享   UI   bsp   gre   iss   serial   oid   art   http   

原文地址:http://www.cnblogs.com/llguanli/p/6919096.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!