USBメモリをラズパイで扱う
出典:
https://www.raspberrypirulo.net/entry/usbmemory-mount

ライブラリGPIOZeroを使う

出典:ライブラリ比較
https://qiita.com/onboard/items/873566e3b24af0d42e30

出典:Gpiozeroドキュメント
https://gpiozero.readthedocs.io/en/v1.3.1/index.html

出典:Gpiozeroを使う
https://zenn.dev/ryo_kawamata/articles/introduce-gpiozero