Skip to content

Instantly share code, notes, and snippets.

@creationix
creationix / GamePad-TinyDuino.md
Last active January 12, 2019 01:29
A sample program showing how to control a tiny arduino using a gamepad, linux, node.js, and firmata. https://www.youtube.com/watch?v=XjCsDosGghA

Instructions

  • npm install johnny-five
  • Plug in Logitech Gamepad to linux laptop
  • plug in tinyduino with lightring shield.
  • run sudo node move.js
  • move the gamepad to see lights move.
@eligrey
eligrey / object-watch.js
Created April 30, 2010 01:38
object.watch polyfill in ES5
/*
* object.watch polyfill
*
* 2012-04-03
*
* By Eli Grey, http://eligrey.com
* Public Domain.
* NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.
*/