Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5511

Beginners • Re: passive buzzer to raspberry pi5

$
0
0

Code:

from gpiozero import PWMOutputDevicefrom time import sleepbuzzer = PWMOutputDevice(17) buzzer.frequency = 1000 buzzer.value = 0.5  sleep(3)  buzzer.value = 0

i switched more than code here my last code that i have it now

can you help me with connect one of them ?

Statistics: Posted by Bsrour — Thu Dec 05, 2024 1:49 pm



Viewing all articles
Browse latest Browse all 5511

Trending Articles