# 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()
Loading
ili9341-cap-touch
ili9341-cap-touch