Skip to content

Latest commit

 

History

History
executable file
·
24 lines (16 loc) · 2.22 KB

for-barnabas.md

File metadata and controls

executable file
·
24 lines (16 loc) · 2.22 KB

Introduction

This project was initially created to replace Chromeduino's compile server for Arduino and its faults. Its purpose was to replace its predecessor's place in the Barnabas Blocks toolchain, so this project is designed to behave identically in basic function. Specifically, waca was created because Chromeduino was... less than perfect with library and board detection. For those looking to fulfill all the dependencies Barnabas Blocks requires, see below:

  1. Install arduino-cli here. You do not need to modify any configs. If you choose not to add it to PATH or place it somewhere already on PATH, you must specify its absolute path in config.js.
  2. Run npm install in the directory of this project. If you are in production and do not intend to develop you can add --production=true.
  3. Install any libraries you might want to use for AVR boards; most do not come installed by default.

ezDisplay

  1. Install ATTinyCore, the board defintion including ezDisplay: arduino-cli --additional-urls http://drazzy.com/package_drazzy.com_index.json core install ATTinyCore:avr
  2. Install Tiny4kOLED: arduino-cli lib install [email protected]
  3. Install some more fonts for good measure: arduino-cli lib install [email protected]
  4. To install tiny-i2c, we need to replicate Arduino IDE's library installation from .zip mechanic. Run arduino-cli config dump and look for the "user" folder under the directories section. Move there and create a libraries folder (which should exist already anyways). Then download the TinyI2C ZIP, extract out tiny-i2c-master/tiny-i2c, and place the latter directory in the libraries folder.

esp8266

  1. Install board definition: arduino-cli core install esp8266:esp8266 --additional-urls http://arduino.esp8266.com/stable/package_esp8266com_index.json
  2. Install WebSockets library: arduino-cli lib install WebSockets

Run server

The dependencies are ready. Run node app.js in this project to start the server. You may wish to specify a different port or verbosity but these settings are fine as is for production.