Active Buzzer
ピンを開く
{:ok, buzzer} = Circuits.GPIO.open("GPIO17", :output, initial_value: 1)
ブザーを鳴らす
Circuits.GPIO.write(buzzer, 0)
ブザーを止める
Circuits.GPIO.write(buzzer, 1)
ピンを閉じる
Circuits.GPIO.close(buzzer)
{:ok, buzzer} = Circuits.GPIO.open("GPIO17", :output, initial_value: 1)
Circuits.GPIO.write(buzzer, 0)
Circuits.GPIO.write(buzzer, 1)
Circuits.GPIO.close(buzzer)