openchronos-ng
opensource firmware for the ez430 chronos
|
Buzzer subsystem functions. More...
Go to the source code of this file.
Typedefs | |
typedef uint16_t | note |
Note type. | |
Functions | |
void | buzzer_init (void) |
Initialize buzzer subsystem. | |
void | buzzer_play (note *notes) |
Play a sequence of notes using the buzzer. |
Buzzer subsystem functions.
This file contains all the methods used for \ playing tones with buzzer. The buzzer can play a number of different tones, represented as a note array. The buzzer output frequency can be calculated using:
typedef uint16_t note |
Note type.
This is a type representing a note. It is composed by:
There are two "meta" notes:
void buzzer_play | ( | note * | notes | ) |
Play a sequence of notes using the buzzer.
notes | An array of notes to play. |