home | |||
links |
|
||
developer's mag main page article part 1 part 2 part 3 part 4 part 5 part 6 part 7 part 8 part 9 |
3 - A Single Tone to StartFirst off we'll look at individual tone generation:void piezo_play_1tone(struct piezo_tone t, int flags); The flags represent how tones are handled, and can be zero or any of the following:
The first parameter to the call is the piezo_tone structure, which looks like this: struct piezo_tone { unsigned char tone; unsigned char man; unsigned char exp; unsigned char unused; // always set to zero }; Previous Section Next Section |
||
Copyright © 2001-2006 ebmDevMag.com - Legal Notice |