User Tools

Site Tools


projects:crazyflie2:expansionboards:buzzer

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
projects:crazyflie2:expansionboards:buzzer [2016-03-27 01:43]
fred
projects:crazyflie2:expansionboards:buzzer [2021-06-24 16:09] (current)
kimberly
Line 1: Line 1:
 +<WRAP center round important 60%>
 +This page has deprecated and moved to the new documentation framework of the main Bitcraze website. Please go to [[https://www.bitcraze.io/]] and go to the menu 'products'.
 +</WRAP>
 ====== Buzzer expansion deck ====== ====== Buzzer expansion deck ======
  
Line 27: Line 30:
 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, 4=Charging done, 5=Low battery, 6=Startup, 7=Calibrated, 8=Range slow, 9=Range fast, 10=Star Wars Imperial March, 11=Bypass (change sound with sound.freg), 12=Siren, 13=Tilt (tilt the Crazyflie to play the sound))|
 +|sound.freq|uint16_t|RW|4000| |
 +|sound.neffect|uint32_t|RO|13|Number of available sound effects|
 +|sound.ratio|uint8_t|RW|0| |
projects/crazyflie2/expansionboards/buzzer.1459039382.txt.gz · Last modified: 2016-03-27 01:43 by fred