Is I2S supported in any way? #5205
Replies: 1 comment
-
Posted at 2016-02-04 by @gfwilliams There's no I2S support at the moment, but you could easily enable it by extending the Espruino interpreter with C code. The issue really is supplying the data to it fast enough. For that, you really need DMA (which you can enable pretty easily), but then where do you get data from? There's not much memory on-chip for high bitrate audio, JS isn't fast enough to generate it, and even the SD card library would struggle at the moment. So to be honest you're probably going to end up writing all your audio stuff in C, and then just controlling it from JS. That's great, but it means that there's very little point exposing I2S to JavaScript :( Posted at 2016-02-04 by verdeimpacat That's fair enough! As a matter of fact I was afraid that one would need to write the code in Assambler language to keep code delay to minimum. And it's fine that there is no hardware lock due to use in whatever board functionality of conflicting resources. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2016-02-04 by verdeimpacat
Hi Gordon,
What are your thoughts about supporting I2S for audio digital on Espruino? I notice that the ST processor has such interfaces & features and I trust that nice application scenarios may arise from these (like enabling sound output, bluetooth audio, a.s.o.).
No particular project in my mind, just wondering if there are any hardware/software limitations for use.
Beta Was this translation helpful? Give feedback.
All reactions