当前位置:网站首页>Adruino 基础实验学习(一)
Adruino 基础实验学习(一)
2022-07-26 02:06:00 【甜味粘合剂】
无线传感器(一)
Led小灯实验
具体器件:
- 直插LED *1
- 220Ω 直插电阻 *1
- 面包板
- 杜邦线 两头公的两根
下图为 arduino 小灯实验接线原理图
LED 长脚为正,短脚为负极
电阻用来限流

int pin=10;//定义数字10接口
void setup() {
// initialize digital pin LED_BUILTIN as an output.
pinMode(pin, OUTPUT);//定义小灯接口为输出接口
}
// the loop function runs over and over again forever
void loop() {
digitalWrite(pin, HIGH); // 高电平点亮小灯
delay(5000); // 延时
digitalWrite(pin, LOW); // 低电平熄灭小灯
delay(1000); // 延时
边栏推荐
- Create a future and enjoy extraordinary | gbase Nantah General Motors unveiled opengauss Developer Day 2022
- DialogRPT-Dialog Ranking Pretrained Transformers
- 【2021】【论文笔记】红外及THz下的细胞膜生物效应——效应是现象,作用是机理——THz对医学的好处
- I.MX6UL核心模块使用连载-查看系统信息 (二)
- A pluggable am335x industrial control module onboard WiFi module
- SQL manual blind injection and error reporting injection
- A MCU event driven C framework
- [C language brush leetcode] 1604. Warn people who use the same employee card more than or equal to three times within an hour (m)
- Acwing 379. hide and seek problem solution (minimum path non repeating point coverage)
- Slow query log in MySQL
猜你喜欢

Composition API的优势

Worthington产气荚膜梭菌神经氨酸酶的特征及测定

MySQL transaction isolation level

由一个数据增量处理问题看到技术人员的意识差距

I.MX6UL核心模块使用连载-USB接口测试 (六)

Error reporting caused by local warehouse

A pluggable am335x industrial control module onboard WiFi module

国标GB28181协议视频平台EasyGBS消息弹框模式优化

(CVPR 2019) GSPN: Generative Shape Proposal Network for 3D Instance Segmentation in Point Cloud

I.MX6UL核心模块使用连载-WIFI测试 (八)
随机推荐
BGP knowledge points summary
[C language brush leetcode] 146. LRU cache (m)
What is JSX?
【LeetCode】32、 最长有效括号
Niuke net question brushing training (I)
Common shell operations in Phoenix
The import and Export button of Damon database table is gray, and the DMP file cannot be imported
Tenant issues.
i.MX6ULL SNVS电源域GPIO状态保持验证
Implementation of C iterator
1. Mx6ul core module use serialization - view system information (II)
How to install opengauss manually (non om mode)
[C language brush leetcode] 735. Planetary collision (m)
Postman reported JSON serialization error
[C language brush leetcode] 1604. Warn people who use the same employee card more than or equal to three times within an hour (m)
QT program beautification of the use of style sheets, QT uses pictures as the background and transparency of controls, QT custom button styles
一种MCU事件型驱动C框架
Mark and lightbulbs (thinking)
These practical security browser plug-ins improve your efficiency
我来图书馆小程序签到流程分析