Commit Graph

369 Commits

Author SHA1 Message Date
Andrew Stewart 31bfa85fa8 Simplify readline setup for Windows users 2013-11-11 11:09:41 -05:00
Andrew Stewart 19929842a2 Merge pull request #28 from hybridgroup/cylon-specs
More Cylon Specs
2013-11-11 08:08:00 -08:00
Andrew Stewart b5a4854533 Add tests for Cylon#findRobotConnection 2013-11-08 17:33:29 -07:00
Andrew Stewart b7add10cb4 Add tests for Cylon#findRobotDevice() 2013-11-08 17:16:17 -07:00
Andrew Stewart b2f2d11a85 Add specs for sync and async versions of findRobot() 2013-11-08 15:04:50 -07:00
Andrew Stewart d7b3e63afe Test for Cylon#robots 2013-11-08 14:43:05 -07:00
Justin Smith e747125bba Changed arrows on Readme 2013-11-08 13:05:27 -06:00
Justin Smith be0fbed32e Added note in Readme reminding users to change the port to their arduino port 2013-11-08 13:04:22 -06:00
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