Update: We are using PWM to output to the speaker attached to the espruino wifi, We are trying to play files we know work that we externally put on the attached SD card, we are only receiving fluctuating frequency. We have tried changing sample rate in the waveform class as well as the frequency of the analogWrite and w.startOutput functions cant find to get one to work but it does have an effect on the audio being output through the speaker.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Update: We are using PWM to output to the speaker attached to the espruino wifi, We are trying to play files we know work that we externally put on the attached SD card, we are only receiving fluctuating frequency. We have tried changing sample rate in the waveform class as well as the frequency of the analogWrite and w.startOutput functions cant find to get one to work but it does have an effect on the audio being output through the speaker.