thingsSDK / flasher.js

A GUI tool for flashing the Espruino JavaScript runtime on ESP8266 based boards
154 stars 25 forks source link

Integration with Espruino Web IDE #4

Open gfwilliams opened 8 years ago

gfwilliams commented 8 years ago

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:

chalkers commented 7 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 :)

gfwilliams commented 7 years ago

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.