跳到正文
原文
Reddit · r/arduino· Philosopher_Gambler·· 2026-10-22AI 评分31

Arduino 新手提问如何让 LED 随 SPST 开关点亮

How do I wire this LED to this switch?

AI 导读

一位刚接触 Arduino 的用户提问,他有 6 个开关已接地并接到板子 6 个输入引脚,板子能正常读取开关状态,现在想给每个开关配一个 LED 作为 ON 状态指示,但用 Tinkercad 尝试多种接法后仍无法让 LED 只在开关 1 打开时点亮,想知道两脚 SPST 开关是否能做到这一点。

来源:Reddit · r/arduino · reddit.com