Skip to content

Commit

Permalink
Increase resolution of SoundOutputPin playback (#42)
Browse files Browse the repository at this point in the history
  - Reduce period of generated sound per sound effect from 50ms to 5ms
  - Provides better approximation to micro:bit v1 PWM based behaviour
  • Loading branch information
finneyj committed Aug 10, 2021
1 parent 386699a commit 6e880bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/SoundOutputPin.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ DEALINGS IN THE SOFTWARE.
#include "SoundEmojiSynthesizer.h"

#ifndef CONFIG_SOUND_OUTPUT_PIN_PERIOD
#define CONFIG_SOUND_OUTPUT_PIN_PERIOD 50
#define CONFIG_SOUND_OUTPUT_PIN_PERIOD 5
#endif

#ifndef CONFIG_SOUND_OUTPUT_PIN_SILENCE_GATE
Expand Down

0 comments on commit 6e880bc

Please sign in to comment.