circuitpython like USB access #6534
Replies: 1 comment
-
Posted at 2021-05-05 by @fanoush Not as usb drive but otherwise it is very similar, you can upload download and view files in internal storage via WebIDE or espruino command. advantage is that it works also over serial or bluetooth not only via USB. Also internal storage can then use internal flash friendly efficient format of storing data instead of using generic filesystem like FAT that would be also readable from PC over USB. Posted at 2021-05-06 by @gfwilliams Hi, Right now that's not implemented. In the future potentially it could be, but obviously it only works on USB devices, and the most popular Espruino devices by far at the moment are Bluetooth ones - so it's not high priority. I guess it depends what you want to do - but personally I find uploading code when there's no feedback hugely frustrating. Changed something and made a typo? It will then just not work, and you'll have no idea why - so generally I'd advise having some kind of serial console anyway. Posted at 2021-05-06 by ingoiotESPruino circuitpython has a repl too, i dont know how different it is to espruino i have two usecases where i would like to have a usb device.
i think this would be possible with circuitpython - but i cant stand pythons syntax. Posted at 2021-05-07 by @gfwilliams Hi, 1: This is fine - if you upload code to Flash on Espruino (as long as you don't turn on minification) it'll all be inside the board, including comments, and can be read straight out using the IDE. 2: You can't do this directly on Espruino without the flash drive (although you can do it just by going to espruino.com/ide and clicking the Storage button). In that case I'd suggest making a webpage that'll handle the data collection though. Full code of doing exactly that is at http://www.espruino.com/Data+Collection#automatically-recovering-data Posted at 2021-05-07 by ingoiotESPruino i totally get that this is not a high priority it really is nice that it allready kindof works like want, i just wanted to know if its possible at all or if its somehow against Posted at 2021-05-10 by @gfwilliams Yes, it's definitely possible, and it's not against the philosophy of Espruino. I think if it'd been easy to do when I started out I'd have added the ability - but Espruino parts generally have a bit less memory than micro python (Espruino doesn't need so much RAM), and that can make devoting a bunch of flash memory to a flash disk a bit tricky. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2021-05-05 by ingoiotESPruino
hi,
is it possible to use Espruino like circuitpython?
With a USB Drive option when connected to a pc to upload
the code, docs and logs in plain text?
Beta Was this translation helpful? Give feedback.
All reactions