• Hi cephdon, that'd be awesome! Could you try and make it like node's filesystem api please? The only issue I see is storing the FILE structure - I guess you could do it the same way the graphics class does.

    Cyber-lane, the other issue is trying to change the PWM frequency fast enough for audio (note that if this wasn't a problem, Espruino also has 2 DACs). You can get around 4kHz with setInterval I believe, but getting much faster is going to be tricky, even in a tight loop. That's why I suggested I'll have to implement an api that allows you to use interrupts to send a buffer to a peripheral.

    Also it looks like the PIC is 32Mhz - I know the processor isn't as good as a 72MHz ARM but you've got to make a lot of allowances for the fact that it's running an interpreter rather than native code.

    Even so with 1kb of ram it must be right on the edge of what's possible when using FAT. The buffers in Espruino come to around 600 bytes.

About

Avatar for Gordon @Gordon started