Open gfwilliams opened 8 years ago
Hey @gfwilliams,
We're currently extracting the "rom-comm" flashing lib we made in to a separate dep. Once we're done with that we'll see how we can integrate it in to the IDE :)
Great, thanks! As long as you can abstract out the serial read/write commands it should be pretty easy. It'd be better than using chrome.serial
directly as that's going to disappear at some point.
Just FYI, but I discovered that NW.js appears to implement the chrome.*
APIs, which might include serial. If so, it'd make it a load easier to use for Flasher.js than Electron and all the associated serialport module compilation problems.
Hi,
Just thought I'd post this here so we have somewhere to keep track of it - getting the flasher in the Web IDE to handle this would be absolutely awesome, so people could flash the board without needing Node.js (but it also means the command-line app (
espruino
on NPM) and the electron-based Web IDE could do it too).Potentially it also means you could flash it right from https://espruino.github.io/EspruinoWebIDE/ using your headphone jack :)
Would that be ok?
I guess the things that'd need doing for that are:
Espruino.Core.Serial.write(...)/etc
instead of node-serialport (so Chrome/Node/Audio/BLE can be supported).require
and the extra modules - since we'd have to work in the web browser, and the Web IDE doesn't use browserify or anything like that.