进阶之路(基础篇) - 003 I/O的模拟的读取
2024-10-19 05:13:50
/*********************************
代码功能:读取某引脚的模拟量串口返回数据
使用函数:
analogRead(引脚号); //调用10位AD
创作时间:2016*10*08
作者邮箱:jikexianfeng@outlook.com
********************************/
int analogTnPin = ;
void setup()
{
Serial.begin();
}
void loop()
{
int sensorValue = analogRead(analogTnPin);
Serial.println(sensorValue);
delay();
}
最新文章
- jquery.autocomplete自动补齐和自定义格式
- POJ 2528 Mayor's posters (线段树,染色问题,离散化要注意)
- 【Cocos2d入门教程七】三分钟看懂Cocos2d坐标系
- hdu 1034 Candy Sharing Game
- leetcode 题解 || Swap Nodes in Pairs 问题
- 如何通过navigator.userAgent判断是哪款浏览器?
- C# AOP 面向切面编程之 调用拦截
- [Python Study Notes] Python的安装
- PySe-007-解决“Chrome正在受到自动软件的控制”
- luogu1706全排列
- Android 自定义AlertDialog的实现
- linux 安装 SVN server
- Win7 VS2015编译wxWidgets-3.1.0
- 动态创建生成lambd表达式
- JavaScript操作BOM对象
- Gym - 101981M:(南京) Mediocre String Problem(回文树+exkmp)
- Java NIO 的前生今世 之四 NIO Selector 详解
- oracle 杀掉当前用户的进程
- python作业(第十一周)基于RabbitMQ rpc实现的主机管理
- .NET发送请求(get/post/http/https),携带json数据,接收json数据