Fang-Robotics-MCB
Fang Robotics Team Codebase
Loading...
Searching...
No Matches
tap::buzzer Namespace Reference

Functions

void playNote (gpio::Pwm *pwmController, uint32_t frequency)
 
void silenceBuzzer (gpio::Pwm *pwmController)
 

Function Documentation

◆ playNote()

void tap::buzzer::playNote ( gpio::Pwm pwmController,
uint32_t  frequency 
)

Plays the buzzer at the given frequency.

Parameters
[in]pwmControllerThe PWM object that has access to the buzzer.
[in]frequencyThe PWM freqneucy that corresponds to a pitch.

◆ silenceBuzzer()

void tap::buzzer::silenceBuzzer ( gpio::Pwm pwmController)

Silences the buzzer.

Parameters
[in]pwmControllerthe PWM object that has access to the buzzer.