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.js
each time you changebackground.js
orlib/flash.js
, and then manually reload the chrome app; - When you reload the chrome app, you'll also need to refresh
index.html
so 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 install
within 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
Launch
when you see the extension appear at the top of the extensions list; - Copy the
id
value of the extension, and updatevar extensionid = '...';
line inindex.html
of 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.