Skip to content

Latest commit

 

History

History
25 lines (19 loc) · 677 Bytes

File metadata and controls

25 lines (19 loc) · 677 Bytes

Hardware Hacking with JavaScript

This repo supports the article Hardware Hacking with JavaScript featured on Smashing Magazine.

To get started, with node and NPM installed, open your terminal/command line and run:

npm install

You will need the hardware described in the article to run these examples

Example 1 - Hello World

node strobe-led.js

Example 2 - Home Automation

node server.js

Other examples

  • server-express.js - Runs a simple express server
  • server-socket.js - Runs an express server with websockers
  • temperature.js - With the hardware setup, this will run a simple temperature sensor example.