File size: 223 Bytes
6a4e8bd |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
from gpiozero import Buzzer
from time import sleep
buzzer = Buzzer(2)
for i in range(50):
buzzer.toggle()
sleep(0.1)
sleep(1)
for i in range(50):
buzzer.toggle()
sleep(0.1)
sleep(1)
buzzer.off()
sleep(20)
|