Buzzer

Class Documentation

class compLib.Buzzer.Buzzer

Used to interact with the buzzer

static set(on: bool)

Turn the buzzer on / off

Parameters

on – True if on, False if off

Examples

Turning buzzer on and off

import time
from compLib.Buzzer import Buzzer

Buzzer.set(True)
time.sleep(1)
Buzzer.set(False)