DMCP interface  03.15_020

Buzzer functions. More...

Functions

void start_buzzer_freq (uint32_t freq)
 Start tone. More...
 
void stop_buzzer ()
 Stop tone.
 
void set_buzzer (int pin1val, int pin2val)
 Set buzzer IO pins to given values. More...
 
void beep_volume_up ()
 Increase tone volume.
 
void beep_volume_down ()
 Decrease tone volume.
 
int get_beep_volume ()
 Returns current tone volume. More...
 

Detailed Description

Buzzer functions.

Function Documentation

◆ get_beep_volume()

int get_beep_volume ( )

Returns current tone volume.

Returns
Current tone volume

◆ set_buzzer()

void set_buzzer ( int  pin1val,
int  pin2val 
)

Set buzzer IO pins to given values.

Parameters
pin1valPin1 value
pin2valPin2 value

◆ start_buzzer_freq()

void start_buzzer_freq ( uint32_t  freq)

Start tone.

Parameters
freq[mHz] Tone frequency