This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
projects:crazyflie2:expansionboards:buzzer [2016-03-27 01:43] fred |
projects:crazyflie2:expansionboards:buzzer [2016-06-12 13:44] fred [Parameters] |
||
---|---|---|---|
Line 27: | Line 27: | ||
The effects are defined in the effects array. Each entry takes a function to call and related parameters. | The effects are defined in the effects array. Each entry takes a function to call and related parameters. | ||
To add a new melody, use the melodyplayer function for the .call member and assign your Melody struct to the .melody member. | To add a new melody, use the melodyplayer function for the .call member and assign your Melody struct to the .melody member. | ||
+ | |||
+ | ===== Parameters ===== | ||
+ | |||
+ | ^Name^Type^Access^Value (default)^Description^ | ||
+ | |sound.effect|uint8_t|RW|0|Sound effect (0=Off, 1=Factory test, 2=USB connected, 3=USB disconnected, | ||
+ | |sound.freq|uint16_t|RW|4000| | | ||
+ | |sound.neffect|uint32_t|RO|13|Number of available sound effects| | ||
+ | |sound.ratio|uint8_t|RW|0| | |