It is a simple example about the basis of arduino UNO
#Experimental purposes:
Explore and familiarize yourself with Arduino's digital input and output capabilities and understand their applications.
#Experimental requirements
Make a prototype of the spacecraft control panel, as shown in Figure 1.
Requirement: The key is not pressed on time, only the green light is on. When the key is pressed, the green light does not light up, the red light of pin 4 flashes at 2 second intervals (on for 2 seconds and off for 2 seconds), and the red light of pin 5 flashes at 1 second intervals (on for 1 second and off for 1 second).
Test Environment: Arduino 2.3.2 on Windows 11 23H2 platform, CPU is Intel Core Ultra 7-155H.
这是一个使用arduino的简单应用实例
实验目的
探索和熟悉Arduino的数字量输入输出功能,了解其应用。
实验要求 制作一个太空飞船控制面板的原型,如图1所示。
要求:按键没按时,只有绿灯亮。按键按下时,绿灯不亮,4号引脚红灯以2秒间隔闪烁(亮2秒灭2秒),5号引脚红灯以1秒间隔闪烁(亮1秒灭1秒)。
测试环境:Windows 11 23H2, arduino 2.3.2, CPU是Intel Core Ultra 7-155H