当前位置:网站首页>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); // 延时
边栏推荐
猜你喜欢

These practical security browser plug-ins improve your efficiency
![[2021] [paper notes] 6G technology vision - otfs modulation technology](/img/50/577ad05bc16e80d1c68eec7b6da988.png)
[2021] [paper notes] 6G technology vision - otfs modulation technology

Postman reported JSON serialization error

BGP knowledge points summary

1. Mx6ul core module use serial RTC test (XII)

我来图书馆小程序签到流程分析
![[2019] [paper notes] tunable THz broadband absorption based on metamaterials——](/img/ae/bbebba30d0d6f58d65531cff48b5e9.png)
[2019] [paper notes] tunable THz broadband absorption based on metamaterials——
![[xxl-job] xxl-job learning](/img/2c/d3872983e4228a3ef52a9d1bef836e.png)
[xxl-job] xxl-job learning

Video game quiz? I think it's useless. It's better to do these well!

Activiti workflow gateway
随机推荐
MPLS knowledge points
Bitmap这个“内存刺客”你要小心~
Jupiter notebook reported an error: notebook validation failed: non unique cell ID '2a4xx6' detected
【2021】【论文笔记】6G技术愿景——OTFS调制技术
Design and driver transplantation of matrix keyboard circuit of Ti am335x industrial control module
【2020】【论文笔记】磁控溅射法生长Bi2Te3/CoFeB双层异质结——
AttributeError: ‘Document‘ object has no attribute ‘pageCount‘
【LeetCode】32、 最长有效括号
D - Dire Wolf (interval DP)
AttributeError: ‘Document‘ object has no attribute ‘pageCount‘
I.MX6UL核心模块使用连载-TF卡读写测试 (五)
win下搭建嵌入式开发环境及frp穿透
D. Rating compression (thinking + double pointer)
Create a future and enjoy extraordinary | gbase Nantah General Motors unveiled opengauss Developer Day 2022
Redis cluster construction (based on 6.x)
BGP knowledge points summary
阿里云Redis开发规范
SQL手工盲注、报错注入
Arm assembly foundation of SOC
Kaggle registration method to solve the problem of man-machine verification