buzzer.h File Reference

Contains definitions for using the buzzer. More...

Go to the source code of this file.

Defines

#define C4   260
 Middle C.
#define C4s   277
 C#.
#define D4   294
 D.
#define D4s   311
 D#.
#define E4   330
 E.
#define F4   349
 F.
#define F4s   370
 F#.
#define G4   392
 G.
#define G4s   415
 G#.
#define A4   440
 A.
#define A4s   466
 A#.
#define B4   494
 B.
#define C5   523
 C.

Functions

void buzzer_init (void)
 Initialize the buzzer.
void buzzer_set_val (unsigned int buzz_value)
 Set the value the buzzer plays.
void buzzer_set_freq (unsigned int buzz_freq)
 Set the frequency the buzzer plays.
void buzzer_chirp (unsigned int ms, unsigned int buzz_freq)
 Play a frequency for a specified time.
void buzzer_off (void)
 Turn the buzzer off.


Detailed Description

Contains definitions for using the buzzer.

Copyright (c) 2007 Colony Project

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Contains definitions for using the buzzer built into the colony robots.

Author:
Colony Project, CMU Robotics Club

Generated on Mon Sep 7 19:07:28 2009 for libdragonfly by  doxygen 1.5.9