A small repo for working through musings on "separation of concerns" and OOP with Compositional pattern. The intent is to see how much code can be reused across different execution environments for a Javascript Clock program.
- Node.js v 12.18.0
Change your Node.js version before running npm install
.
Executions may break if you change Node.js version after installing dependencies.
- Install dependencies:
npm install
- Run web clock with:
npm run start:web
- Install dependencies:
npm install
- Open Arduino Editor on your machine.
- Go to
File
>Examples
>Firmata
>StandardFirmataPlus
- Upload
StandardFirmataPlus
code into the Arduino. - Run arduino clock with:
npm run start:arduino:led
- Install dependencies:
npm install
- Open Arduino Editor on your machine.
- Go to
File
>Examples
>Firmata
>StandardFirmataPlus
- Upload
StandardFirmataPlus
code into the Arduino. - Run arduino clock with:
npm run start:arduino:servo
- Install dependencies:
npm install
- Install t2 CLI:
npm install -g t2-cli
- Run tessel clock with:
npm run start:tessel:servo
When the Building project
step begins. Wait about a minute before killing the process, you may see a long list of WARN
and ERR!
logs. Many of these errors can be ignored. There seem to be missing some unused dependencies regarding @serialport/bindings
.
- Arduino Servo Clock Diagrams
- Tessel2 Servo Clock Diagrams
- Arduino and Tessel2 LED Clocks