Ex1 - LED

https://gpiozero.readthedocs.io/en/stable/recipes.html#led

任務 1

按下圖連接裝置,連接 GPIO 5 及 GND

另開新檔 led.py。以下程式碼會讓 LED 反復開關。

Last updated

Was this helpful?