Commit Graph

73 Commits

Author SHA1 Message Date
deadprogram 953c3254e7 core: use canonical import domain of gobot.io for all code
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-12-08 13:24:03 +01:00
Sebastien Binet 1b574b5d45 platforms/firmata/client: use io.ReadFull
This CL uses io.ReadFull to make sure exactly n bytes are read, and
correctly handle io.EOF and co.

Fixes #343.

Signed-off-by: Sebastien Binet <seb.binet@gmail.com>

Conflicts:
	platforms/firmata/client/client.go
2016-11-30 22:58:37 +01:00
deadprogram 654a2a0fde core: update Firmata platform to simply return error
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-11-07 21:29:51 +01:00
deadprogram 9faf9eb52a core: Use time.Sleep unless waiting for a timeout in a select
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-11-05 13:05:49 +01:00
deadprogram 900bf1d9ea docs: remove Master unless needed for less code
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-10-18 21:37:10 +02:00
deadprogram 458c750f33 core: refactor/rename internal name of Master type
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-10-15 20:02:54 +02:00
deadprogram 07f674955b core: Ensure that all drivers have default names
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-10-03 19:06:37 +02:00
deadprogram 23559830ea update: Update tarm/goserial to tarm/serial
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-10-03 08:38:24 +02:00
deadprogram 6d4b9927a7 core: Refactor Firmata platform for new Adaptor creation signature
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-09-25 20:49:20 +02:00
deadprogram 3a60b33480 core: Add Unsubscribe() to eventer, now Once() works as expected
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-09-12 21:33:14 +02:00
deadprogram 9f8fd26221 core: Refactor tests to allow 'metal' development using Gobot adaptors/drivers.
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-09-12 21:33:14 +02:00
deadprogram ef2f0bf203 core: Refactor tests to allow 'metal' development using Gobot adaptors/drivers.
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-09-12 21:33:14 +02:00
deadprogram e15961348f core: Continue refactoring to allow 'metal' development using Gobot libs.
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-09-12 21:33:14 +02:00
deadprogram fe057ba6bf misc: update all LICENSE files for current year
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-08-27 13:12:47 +02:00
deadprogram a64f56d479 tests: refactor test interfaces out of implementations and into the tests where they belong
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-08-26 14:23:03 +02:00
Harley Laue f8be611424 Fix a typo and update the doc comment for FirmataAdaptor.ServoConfig
Signed-off-by: Harley Laue <losinggeneration@gmail.com>
2016-07-27 02:23:14 -07:00
Harley Laue ab52d2bb8f Add ServoConfig to the FirmataAdaptor
Signed-off-by: Harley Laue <losinggeneration@gmail.com>
2016-07-27 02:23:06 -07:00
Harley Laue dc1f750e3b Add unit tests for ServoConfig
Signed-off-by: Harley Laue <losinggeneration@gmail.com>
2016-07-27 02:22:53 -07:00
Harley Laue 5086b2a0d5 Fix the ServoConfig byte order
Signed-off-by: Harley Laue <losinggeneration@gmail.com>
2016-07-21 00:41:12 -07:00
Damian Gryski 977c878a8b Code cleanups suggested by gosimple 2016-07-13 09:32:22 -06:00
gmarik e494b9fb99 Refactor to use `gobottest` test helpers 2016-02-22 00:33:58 -05:00
Matt Aimonetti a129ff03fa Update blink example due to API change 2015-10-07 23:35:22 -07:00
Adrian Zankich a8fa365990 Make travis happy 2015-07-15 16:46:40 -07:00
deadprogram 36777f681d Corrected dependency install instructions for all current platforms 2015-07-10 08:02:18 -07:00
nathan 17e94fdbcd add windows connection for firmata 2015-07-10 08:02:18 -07:00
nathan a7a2fc3e1a add connection documention to firmata 2015-07-10 08:02:18 -07:00
Adrian Zankich fe6df92974 Refactor sysfs I2C implementation and add Address parameter to I2C interface functions 2015-07-03 18:57:29 -07:00
Adrian Zankich 02a62d043a Refactor firmata client library into seperate package
Green tests

Refactor tests to table driven

Refactor analog, digital and i2c

Fix tests

golint client package

Fix tests

Add ServoConfig

Rename query and i2c functions

Fix tests

Fix typo
2015-06-30 14:11:22 -07:00
Adrian Zankich de71de86cb go lint and documentation tweaks for the firmata package 2015-01-02 07:57:13 -08:00
Adrian Zankich 4a104fd660 Increase firmata test coverage 2014-12-19 12:58:55 -08:00
Adrian Zankich 52e3ffc735 Rename test helpers so they don't impact coverage 2014-12-18 14:07:48 -08:00
deadprogram d884299c90 Merge branch 'master' into dev 2014-12-13 18:46:31 -08:00
nathan 4091681da6 update readmes for import script 2014-12-12 10:32:52 -08:00
Adrian Zankich 560ebaf3e0 Enforce I2c interface 2014-11-29 12:14:36 -08:00
Adrian Zankich 89f3f53e09 Update platforms for new gpio interfaces 2014-11-29 11:51:16 -08:00
Adrian Zankich d38b95f41f Refactor firmata to use new adaptor interface 2014-11-21 19:36:41 -08:00
Adrian Zankich 67e8da6c36 Fix merge errors 2014-11-20 17:54:48 -08:00
Adrian Zankich 586507a489 Update Adaptor and Driver interface to use []error 2014-11-19 23:21:35 -08:00
Adrian Zankich 005c07aace Increase firmata test coverage 2014-11-19 18:48:52 -08:00
Adrian Zankich 6832c1739a Update firmata package for new i2c interface 2014-11-19 17:24:17 -08:00
Adrian Zankich 3efaa46c28 Update firmata package for new gpio interface 2014-11-19 11:18:48 -08:00
Adrian Zankich 66c861dd4f Merge remote-tracking branch 'origin/dev' into errors 2014-11-19 10:33:32 -08:00
Adrian Zankich 56e8496539 Add optional io.ReadWriteCloser parameter 2014-11-18 17:28:20 -08:00
Adrian Zankich abc1f0b201 Update platforms to support the new Driver and Adaptor interfaces 2014-11-16 12:25:48 -08:00
Adrian Zankich fd24e6a9fe Update docs 2014-10-28 14:52:59 -07:00
Javier Cervantes 58c15eb116 Adding godocs to firmata package 2014-10-22 09:49:19 -05:00
Adrian Zankich 84363c6699 Rename Expect to Assert and add Refute function 2014-07-17 11:41:47 -07:00
Adrian Zankich 419193db49 Add more firmata test coverage 2014-07-16 11:49:06 -07:00
Adrian Zankich e55744657c Increase firmata test coverage 2014-07-15 14:52:21 -07:00
Adrian Zankich 874d6e82c8 Fix failing test 2014-07-15 09:35:19 -07:00