Extension will use AVRGIRL-Arduino to flash hex-files to Arduino boards from the Chrome-browser.
- Google Chrome installed.
Install the following tools globally:
npm install -g browserify;npm install -g http-server.
To develop this further or make changes:
- Edit
background.js(notbackground.bundle.js); - Always run
browserify background.js -o background.bundle.jseach time you changebackground.jsorlib/flash.js, and then manually reload the chrome app; - When you reload the chrome app, you'll also need to refresh
index.htmlso the page can reconnect to the reloaded chrome app.
To run the demo with the Compiler server repository:
- Fork and clone or download this repository (https://github.com/RMeurisse/Arduino-Builder-chrome-extension);
- Run
npm installwithin the newly cloned local repo; - Run
browserify background.js -o background.bundle.js; - In your Chrome browser, visit
chrome://extensions; - Click
Load unpacked extension; - Navigate to this cloned repo, and click
Select; - Click
Launchwhen you see the extension appear at the top of the extensions list; - Copy the
idvalue of the extension, and updatevar extensionid = '...';line inindex.htmlof the Arduino-Builder repo; - See the Arduino-Builder repo to run the nodejs-server;
- Plug in an Arduino, and write some code in the textbox. Finally hit the 'upload'-button.