var PICOSPK=B4;
var wave = require("fs").readFile("G01.raw");
var w = new Waveform(wave.length);
w.buffer.set(wave);
//analogWrite(PICOSPK, 0.5);
analogWrite(PICOSPK, 0.5, { freq: 40000 } );
w.startOutput(PICOSPK,15625);
Also, it seems I can't use B4 nor B7 for my bigge speaker when connected to USB/serial & using SDcard on SPI1 ;p
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.
haha, you ROCK ! ^^
the following worked on the buzzer
Also, it seems I can't use B4 nor B7 for my bigge speaker when connected to USB/serial & using SDcard on SPI1 ;p
1 Attachment