This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
projects:crazyflie2:expansionboards:buzzer [2016-02-04 16:58] kristoffer |
projects:crazyflie2:expansionboards:buzzer [2016-03-05 22:43] chad [Changing the sounds] Add "modules" to the path for the sounds file. |
||
---|---|---|---|
Line 21: | Line 21: | ||
===== Changing the sounds ===== | ===== Changing the sounds ===== | ||
- | Changing the sounds requires modifications to the firmware. The code for the sounds is located in src/ | + | Changing the sounds requires modifications to the firmware. The code for the sounds is located in modules/src/ |
A sequences is defined in the .notes member of the Melody struct. The notes are defined as tuples of a note (pitch) and duration. A sequence must be ended with the end marker. | A sequences is defined in the .notes member of the Melody struct. The notes are defined as tuples of a note (pitch) and duration. A sequence must be ended with the end marker. |