Try analogWrite(A7, 0.5, {freq:40000}); instead of analogWrite(A7, 0.5); - that'll shift the base frequency for the PWM above the audible range, which should improve the quality and also remove the tone
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.
Glad something is happening now!
Try
analogWrite(A7, 0.5, {freq:40000});
instead ofanalogWrite(A7, 0.5);
- that'll shift the base frequency for the PWM above the audible range, which should improve the quality and also remove the tone