#include <buzzer.h>
◆ Buzzer()
| Device::Buzzer::Buzzer |
( |
Robot & | robot | ) |
|
|
explicit |
◆ ~Buzzer()
| Device::Buzzer::~Buzzer |
( |
| ) |
|
◆ initialize()
| void Device::Buzzer::initialize |
( |
| ) |
|
Sets up the necessary GPIO pins.
◆ set_frequency()
| void Device::Buzzer::set_frequency |
( |
uint16_t | frequency | ) |
|
Set buzzer to a given frequency.
- Parameters
-
| frequency | The frequency to play |
◆ turn_off()
| void Device::Buzzer::turn_off |
( |
| ) |
|
Stops buzzer output until it's set again.
The documentation for this class was generated from the following files: