Arduino内置教程-数字
数字
- 不用delay的闪烁:不用delay()函数来闪烁一个LED灯
- 按键:使用一个按键来控制一个LED灯
- 防抖:读取一个按键,然后滤掉噪音
- 数字输入上拉:用pinMode()来声明输出上拉
- 侦察状态改变:计算按键按下的次数
- 音调键盘:一个使用压力传感器和压电扬声器的三键音乐键盘
- 音调旋律:用压力扬声器弹奏一个旋律
- 多重音调:利用tone()命令使多个扬声器发出声音
- 高音追随:根据一个模拟输入来决定压力扬声器的音调
Blink Without Delay: Blink an LED without using the delay() function.
Button: Use a pushbutton to control an LED.
Debounce: Read a pushbutton, filtering noise.
Digital Input Pullup: Demonstrates the use of INPUT_PULLUP with pinMode().
State Change Detection: Count the number of button pushes.
Tone Keyboard: A three-key musical keyboard using force sensors and a piezo speaker.
Tone Melody: Play a melody with a Piezo speaker.
Tone Multiple: Play tones on multiple speakers sequentially using the tone() command.
Tone Pitch Follower: Play a pitch on a piezo speaker depending on an analog input.