WebUSB / Headphone connection to Espruino

Posted on
Page
of 2
Prev
/ 2
  • Great - glad it's going!

    To send from Espruino I'd just use digitalPulse(pin, 1, array_of_data) where you give it an array of times in msec for on,off,on,off,on and so on...

    To read it back you could take a look at the little oscilloscope page I made: https://github.com/espruino/webaudio-osc­illoscope

    It basically just detects the large changes in the signal caused by the transition from 0 to 1 and vice versa. Currently you're using buffers - so you might be able to do something similar I guess (the oscilloscope reads continuously)

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

WebUSB / Headphone connection to Espruino

Posted by Avatar for dave_irvine @dave_irvine

Actions