zoukankan      html  css  js  c++  java
  • 进阶之路(基础篇)

     1 /*********************************
     2 代码功能:读取某引脚的模拟量串口返回数据
     3 使用函数:
     4     analogRead(引脚号);     //调用10位AD
     5 创作时间:2016*10*08
     6 作者邮箱:jikexianfeng@outlook.com
     7 ********************************/
     8 int analogTnPin = 2;
     9 void setup()
    10 {
    11     Serial.begin(9600);
    12 }
    13 void loop()
    14 {
    15     int sensorValue = analogRead(analogTnPin);
    16     Serial.println(sensorValue);
    17     delay(100);
    18 }
  • 相关阅读:
    Bessie Goes Moo
    小P的强力值
    Max Flow
    约瑟夫
    Moocryption
    杂务
    排行榜
    银行贷款
    轰炸
    Contaminated Milk
  • 原文地址:https://www.cnblogs.com/jikexianfeng/p/6824203.html
Copyright © 2011-2022 走看看