You are reading a single comment by @stephaneAG and its replies. Click here to read the full conversation.
  • haha, you ROCK ! ^^

    the following worked on the buzzer

    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


    1 Attachment

About

Avatar for stephaneAG @stephaneAG started