arduino之光敏电阻测试环境
总操流程:1、各器件链接
2、写入程序
3、测试
各器件链接
leanote://file/getImage?fileId=5ac49f2aab644164300014cb
写程序
[*]void setup() {
[*]// put your setup code here, to run once:
[*]Serial.begin(9600);
[*]}
[*]
[*]void loop() {
[*]// put your main code here, to run repeatedly:
[*]int sensorValue = analogRead(A0);
[*]Serial.println(sensorValue);
[*]delay( 1000 );
[*]}
测试
leanote://file/getImage?fileId=5ac49f2aab644164300014ca
页:
[1]