# Project objective: To test a passive buzzer to play an alarm sound at one second interval
#
# Hardware and connections used:
#   Passive buzzer GND to Raspberry Pi Pico GND
#	Passive buzzer + Pin to GPIO Pin 15
#
# Programmer: Adrian Josele G. Quional

# if passive buzzer is used, import the Speaker class from picozero
from picozero import Relay
from time

relayPin1 = Relay(20, Relay.OUT)

while(True):
    #Do something forever here
    relayPin1.value(1)
    time.sleep(1)
    relayPin1.value(0)
    relayPin1.close()
$abcdeabcde151015202530fghijfghij
BOOTSELLED1239USBRaspberryPiPico©2020RP2-8020/21P64M15.00TTT
NOCOMNCVCCGNDINLED1PWRRelay Module
Loading
ili9341-cap-touch