mathiasvr / bluejay-configurator

Cross-platform application for Bluejay firmware flashing and configuration
https://github.com/mathiasvr/bluejay
GNU General Public License v3.0
38 stars 5 forks source link

Startup tunes #13

Closed saidinesh5 closed 3 years ago

saidinesh5 commented 3 years ago

Initial support for Startup tunes in Bluejay ESC

Requires: https://github.com/mathiasvr/bluejay/pull/8

mathiasvr commented 3 years ago

Hi, I added a few commits.

I have now measured the beep pulses and made the frequency conversion more accurate, especially for higher frequencies. I think this somehow messed up the timing of your melody a bit? However, this is now consistent with how it's played on the ESC. Not sure if this is related to your todo about bpm jumping around?

mathiasvr commented 3 years ago

@saidinesh5 I tried to fix the playback by not using imprecise setTimeout. Can you test if this works for you too startup_tunes_playback.