Ex1 - Button controlled camera

https://gpiozero.readthedocs.io/en/stable/recipes.html#button-controlled-camera

任務 1

另開新檔 button_camera.py

以下程式碼,讓你在按下按扭時,使PiCamera 拍下照片,並把照片儲存到 /home/pi 中。

任務 2

另開新檔 button_camera_2.py。試按以下程式碼連接所需裝置,然後細閱程式碼,你預計會出現甚麼結果?

Last updated

Was this helpful?