Commit Graph

861 Commits

Author SHA1 Message Date
Justin Smith 6d56e4d260 Updated the readme to include information on uploading Firmata to your Arduino 2013-11-08 13:02:54 -06:00
Andrew Stewart 1778312e6c Tests for Cylon#api 2013-11-08 10:29:17 -07:00
Andrew Stewart da5cb27c21 The Future's So Bright, I Gotta Wear Shades
I apologize for this commit message but cylon-specs + this was just too perfect.

Anyways, have gotten Cylon robot specs working now. For some reason by the time
the spec runner gets around to running cylon.spec, inside cylon.js Robot has
been redefined to an empty object '{}'.

This resulted in a "TypeError: object is not a function on constructor" error.

So to solve this I moved the require() for 'robot' inside the Cylon.robot()
method. This shouldn't reload code thanks to Node's require cache, but will
properly assign Robot when instantiating a new one.
2013-11-08 10:03:16 -07:00
Andrew Stewart 716f675147 Remove unnecessary tests 2013-11-08 09:48:20 -07:00
deadprogram ab3c038dd1 Use class-based syntax 2013-11-07 06:55:27 -08:00
deadprogram fb9dd50242 Update to version 0.4.0 2013-11-07 06:23:59 -08:00
Ron Evans 9d7cb3e5c3 Merge pull request #25 from hybridgroup/api-configuration
Allow configuration of API options
2013-11-06 16:42:02 -08:00
Andrew Stewart 620351c7c2 Allow configuration of API options 2013-11-06 16:13:35 -08:00
Andrew Stewart bb1388e879 Clearer and more representative testing of method proxying 2013-11-06 15:23:32 -08:00
Andrew Stewart 7543f834e4 Merge branch 'master' into literate-coffeescript
* master: (21 commits)
  Removes unnecessary IO class.
  Fixes raspi button example typo.
  Updated DigitalPin and raspi_button example.
  Adding interval reads to digitalRead.
  Added new Digital read example for raspi, updated digitalRead in lib.
  Refactored DigitalRead and setup mode to only emit connection event on connect.
  Added new DigitalPin to Cylon core to use in adaptors, for real.
  Added new DigitalPin to Cylon core to use in adaptors.
  Added new example for raspi adaptor.
  Updated digital pin lib and example.
  Fixed missing mode variable in digital pin.
  Remove logging and update example.
  Change events and update example in digital pin.
  Added close for GPIO and updated negative ifs
  Change event triggers in callbacks to fat arrows to keep obj scope.
  Removed self and changed example.
  Updated IO and digital pin to use events.
  Fix bug in GPIO example.
  Adde pure GPIO example and updated digital pin lib
  Added new LinuxIO DigitalPin library.
  ...
2013-11-06 15:14:30 -08:00
Edgar O Silva 0b02822f6a Added debugging log to unexport pins command. 2013-11-06 16:52:12 -06:00
Ron Evans 7bcb799ca6 Merge pull request #24 from hybridgroup/20-raspi-adaptor
20 raspi adaptor
2013-11-06 13:19:04 -08:00
Edgar O Silva c24601139f Removes unnecessary IO class. 2013-11-06 15:04:25 -06:00
Ron Evans 33f8a876a5 Update sphero_multiple.litcoffee
Use the nicer class based syntax
2013-11-06 12:33:58 -08:00
Andrew Stewart 3316c22ca7 Replace sphero_multiple with literate version 2013-11-06 12:26:47 -08:00
Edgar O Silva 0c3b319b12 Fixes raspi button example typo. 2013-11-06 14:20:33 -06:00
Edgar O Silva ff978f3a0d Updated DigitalPin and raspi_button example. 2013-11-06 14:20:33 -06:00
Edgar O Silva 250a0d0166 Adding interval reads to digitalRead. 2013-11-06 14:20:33 -06:00
Edgar O Silva c370041329 Added new Digital read example for raspi, updated digitalRead in lib. 2013-11-06 14:20:33 -06:00
Edgar O Silva 9c0ef5408c Refactored DigitalRead and setup mode to only emit connection event on connect. 2013-11-06 14:20:33 -06:00
Edgar O Silva 2bcdd9f683 Added new DigitalPin to Cylon core to use in adaptors, for real. 2013-11-06 14:20:33 -06:00
Edgar O Silva 0cec5a3822 Added new DigitalPin to Cylon core to use in adaptors. 2013-11-06 14:20:33 -06:00
Edgar O Silva 6d703b0707 Added new example for raspi adaptor. 2013-11-06 14:20:33 -06:00
Edgar O Silva b03019544b Updated digital pin lib and example. 2013-11-06 14:20:33 -06:00
Edgar O Silva 3b078321f1 Fixed missing mode variable in digital pin. 2013-11-06 14:20:33 -06:00
Edgar O Silva 115a1bb405 Remove logging and update example. 2013-11-06 14:20:33 -06:00
Edgar O Silva 81bd0adb83 Change events and update example in digital pin. 2013-11-06 14:20:32 -06:00
Edgar O Silva 3dec21c459 Added close for GPIO and updated negative ifs 2013-11-06 14:20:32 -06:00
Edgar O Silva 33f8c95edc Change event triggers in callbacks to fat arrows to keep obj scope. 2013-11-06 14:20:32 -06:00
Edgar O Silva 87a75745dd Removed self and changed example. 2013-11-06 14:20:32 -06:00
Edgar O Silva 3bdecf665a Updated IO and digital pin to use events. 2013-11-06 14:20:32 -06:00
Edgar O Silva 239056fa65 Fix bug in GPIO example. 2013-11-06 14:20:32 -06:00
Edgar O Silva 831fbe4069 Adde pure GPIO example and updated digital pin lib 2013-11-06 14:20:32 -06:00
Edgar O Silva 6d694f85b5 Added new LinuxIO DigitalPin library. 2013-11-06 14:20:32 -06:00
Edgar O Silva 52c482a582 Merge pull request #23 from hybridgroup/exit-event
Handle exit event, by stopping devices and disconnecting connections
2013-11-06 12:14:27 -08:00
Andrew Stewart 866e079830 Merge branch 'master' into literate-coffeescript
* master:
  Revise proxy to use objects instead of prototypes
2013-11-06 09:43:09 -08:00
Andrew Stewart 8be896a5af Remove duplicate word 2013-11-06 09:31:56 -08:00
deadprogram 041da7acc8 Handle exit event, by stopping devices and disconnecting connections 2013-11-05 21:34:23 -08:00
Edgar O Silva 53e9d01c01 Merge pull request #22 from hybridgroup/proxy-objects
Revise proxy to use objects instead of prototypes
2013-11-05 20:57:49 -08:00
deadprogram bb4859d83d Revise proxy to use objects instead of prototypes 2013-11-05 20:08:03 -08:00
Andrew Stewart 30ce10d627 Literate version of examples/travis.coffee 2013-11-05 17:43:03 -08:00
Andrew Stewart d184528312 Document API with Literate Coffeescript 2013-11-05 15:14:03 -08:00
Andrew Stewart 3cfc1927fa Compile literate coffeescript 2013-11-05 15:09:37 -08:00
Andrew Stewart d9287be2b1 WIP on Literate Coffeescript version of api.coffee 2013-11-05 12:56:30 -08:00
Ron Evans 8a99d3fe16 Merge pull request #21 from hybridgroup/refactor-api
Refactor API
2013-11-05 11:25:31 -08:00
Andrew Stewart f423758310 Properly set up websockets 2013-11-05 10:51:11 -08:00
Andrew Stewart fa53720e17 API now functions correctly 2013-11-05 10:45:14 -08:00
Andrew Stewart 9b2b405f0d Correct bug with defineEvent() 2013-11-05 10:43:25 -08:00
Andrew Stewart bba7ef1f4d Refactor API routes to be more like Artoo API 2013-11-04 15:15:59 -08:00
Andrew Stewart 82e85e04f3 Remove pointless namespacing of API 2013-11-04 14:26:46 -08:00