deadprogram
dae55b5dec
gpio: increase test coverage for motor driver
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-03-21 12:59:19 +01:00
deadprogram
4c7c57c211
gpio: increase test coverage for motor driver
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-03-21 12:49:39 +01:00
deadprogram
ba90bb1800
gpio: increase test coverage for buzzer driver
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-03-21 12:37:27 +01:00
deadprogram
d4d2c6ef34
gpio: increase test coverage for PIR and servo drivers
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-03-21 12:27:12 +01:00
deadprogram
224f08930a
gpio: increase test coverage for relay driver
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-03-21 12:15:54 +01:00
deadprogram
ccd03a1b19
gpio: increase test coverage for relay driver
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-03-21 12:14:38 +01:00
deadprogram
4ff1b0c83c
gpio: increase test coverage for buzzer driver
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-03-21 11:59:38 +01:00
deadprogram
2d541ca238
gpio: increase test coverage for button, buzzer, direct pin, led, motor, and rgb led drivers
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-03-21 11:55:46 +01:00
deadprogram
2314d96eea
gpio: increase test coverage for buzzer and relay drivers
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-03-21 11:38:18 +01:00
deadprogram
203444b3f3
i2c: minor adjustments to remove metalinter warnings
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-03-21 09:28:46 +01:00
deadprogram
ca3a9bdbda
i2c: test coverage for Close()
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-03-20 18:21:12 +01:00
deadprogram
c1a7fec541
i2c: increase jhd1313m1 test coverage
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-03-18 17:53:10 +01:00
Ron Evans
248fea6238
Merge pull request #386 from erkkah/drv2605-bugfix
...
Small bugfix for the DRV2605 driver
2017-03-15 22:00:36 +01:00
Erik Agsjö
732847196d
Fixed a bug where drv2605 keeps triggering after shutdown
...
Signed-off-by: Erik Agsjö <erik.agsjo@gmail.com>
2017-02-28 00:54:21 +01:00
Erik Agsjö
ea93b203bd
Added more capabilities checks for I2C
...
Signed-off-by: Erik Agsjö <erik.agsjo@gmail.com>
2017-02-27 23:40:14 +01:00
Erik Agsjö
f0873adea6
Removed smbus block operations
...
Signed-off-by: Erik Agsjö <erik.agsjo@gmail.com>
2017-02-27 20:53:01 +01:00
deadprogram
9f838bd0ae
i2c: update list of supported i2c devices
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-02-24 08:19:20 +01:00
Ron Evans
43e6566280
Merge pull request #375 from erkkah/drv2605l-driver
...
Driver for the DRV2605L haptic controller
2017-02-22 08:06:55 +01:00
Erik Agsjö
29c6a1451e
Added simple example for TSL2561 on C.H.I.P
...
Signed-off-by: Erik Agsjö <erik.agsjo@gmail.com>
2017-02-21 22:47:21 +01:00
Erik Agsjö
9b0425480d
Minor doc readability change
...
Signed-off-by: Erik Agsjö <erik.agsjo@gmail.com>
2017-02-20 23:51:13 +01:00
Erik Agsjö
d8661ec444
Updated TSL2561 driver to latest i2c changes
...
Signed-off-by: Erik Agsjö <erik.agsjo@gmail.com>
2017-02-20 23:24:12 +01:00
Erik Agsjö
91ac234094
Fixed TSL2561 driver tests
...
Signed-off-by: Erik Agsjö <erik.agsjo@gmail.com>
2017-02-20 22:44:08 +01:00
Erik Agsjö
e7e0fde3fc
Moved to ReadWordData for TSL2561, fixed weird problem
...
Signed-off-by: Erik Agsjö <erik.agsjo@gmail.com>
2017-02-20 22:44:08 +01:00
Erik Agsjö
96987554c2
Updated tsl2561 driver to use new I2cConnector
...
Signed-off-by: Erik Agsjö <erik.agsjo@gmail.com>
2017-02-20 22:44:08 +01:00
Erik Agsjö
daa0af365a
Added driver for Adafruit TSL2561
...
Signed-off-by: Erik Agsjö <erik.agsjo@gmail.com>
2017-02-20 22:44:08 +01:00
Erik Agsjö
c91465c8ce
Adapted DRV2605L driver to latest i2c changes
...
Signed-off-by: Erik Agsjö <erik.agsjo@gmail.com>
2017-02-20 22:43:27 +01:00
Erik Agsjö
e9b05a9b4a
Updated DRV2605L driver to new I2C interface
...
Signed-off-by: Erik Agsjö <erik.agsjo@gmail.com>
2017-02-20 22:43:27 +01:00
Erik Agsjö
c889755027
New driver for Adafruit DRV2605L
...
Cleanup, added more tests for DRV2605L driver
Fixed documentation + formatting
2017-02-20 22:43:27 +01:00
deadprogram
a9306fe21b
i2c: small README update
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-02-15 12:41:20 +01:00
deadprogram
3344273d28
i2c: increase test coverage
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-02-14 17:10:04 +01:00
deadprogram
408ccd86c1
i2c: increase test coverage
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-02-14 16:51:55 +01:00
deadprogram
9a0dc0a012
jhd1313m1: add some test coverage
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-02-14 14:44:35 +01:00
deadprogram
34befb5b77
i2c: just one more tests for Connection
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-02-14 14:29:51 +01:00
deadprogram
7df004dd46
i2c: a few more tests for Connection
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-02-14 13:41:01 +01:00
deadprogram
47e323d33c
i2c: extremely minimal tests for Connection
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-02-14 12:04:44 +01:00
deadprogram
f9afd87eae
i2c: additional refactoring MCP23017 driver to support new optional params
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-02-14 11:30:56 +01:00
deadprogram
7caad1dac4
i2c: refactor MCP23017 driver to support new optional params
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-02-14 10:54:20 +01:00
deadprogram
f37238727e
i2c: move Config into separate file for clarity
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-02-13 08:31:49 +01:00
deadprogram
11a7587f09
i2c: add some additional comments for godocs awesomeeness
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-02-11 12:34:51 +01:00
deadprogram
29058498e9
i2c: refactor mpl115a2 to more cleanly return desired data as methods
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-02-11 12:34:12 +01:00
deadprogram
c8b4d443ba
i2c: increase test coverage for drivers
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-02-11 11:53:19 +01:00
deadprogram
ae59464442
i2c: ensure all current i2c drivers (except for wiichuck) use a standard i2c style request/response interaction pattern
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-02-11 10:37:34 +01:00
deadprogram
74d9dc4f5c
i2c: example of using optional params
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-02-10 12:01:44 +01:00
deadprogram
ace49b2037
i2c: reorder core implementation based on suggestions from @goinggo
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-02-10 11:54:45 +01:00
deadprogram
04c8af0e22
i2c: reorder driver implementations based on suggestions from @goinggo
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-02-10 11:44:36 +01:00
deadprogram
51f6aba47c
i2c: refactoring of the interface/implementations based on feedback and golinter
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-02-10 11:08:32 +01:00
deadprogram
03eba3853e
i2c: correct godocs to match new constructor signatures with optional params
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-02-09 16:47:11 +01:00
deadprogram
21bdf5aa26
i2c: completed implemetation of I2cConfig interface
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-02-09 14:35:48 +01:00
deadprogram
9a93d3bbe4
i2c: update mpu6050 for bus interface
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-02-09 13:26:53 +01:00
deadprogram
5790cb502a
i2c: add godocs for updated i2c functionality
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-02-09 13:12:45 +01:00
deadprogram
90bd2d594f
i2c: complete adding optional param with alternative i2c bus for all i2c drivers
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-02-09 11:23:36 +01:00
deadprogram
f8f92af056
i2c: update function signatures to have correct types
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-02-09 09:44:32 +01:00
deadprogram
4ebb3b8597
i2c: add interface and implementation to allow i2c devices to be connected to alternate i2c buses than default
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-02-09 09:41:12 +01:00
deadprogram
9bcd4f45c6
blinkm: correct initialization params order for new I2C connection
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-02-07 20:51:20 +01:00
Erik Agsjö
398663a200
Small doc change
...
Signed-off-by: Erik Agsjö <erik.agsjo@gmail.com>
2017-02-06 20:08:27 +01:00
Erik Agsjö
543a246916
Updated all i2c drivers to new interface
...
Signed-off-by: Erik Agsjö <erik.agsjo@gmail.com>
Fixed I2C interface bugs
Signed-off-by: Erik Agsjö <erik.agsjo@gmail.com>
2017-02-06 15:06:00 +01:00
Erik Agsjö
f41021c17a
Change to make I2C support more than one bus, and use
...
other access methods than block operations.
Signed-off-by: Erik Agsjö <erik.agsjo@gmail.com>
Added ReadWordData to i2c connection
Signed-off-by: Erik Agsjö <erik.agsjo@gmail.com>
Code cleanup
2017-02-06 14:57:19 +01:00
deadprogram
169af71bb0
i2c: use new improved default namer to avoid API conflicts
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-02-02 15:46:00 +01:00
deadprogram
4041bdc740
gpio: use new improved default namer to avoid API conflicts
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-02-02 15:37:09 +01:00
deadprogram
2234600d89
aio: use new improved default namer to avoid API conflicts
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-02-02 15:32:37 +01:00
deadprogram
6c027af8d0
gpio: removed scaling function from servo driver
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-01-25 08:54:25 +01:00
deadprogram
53ffbbd2bb
gpio: correct servo driver to pass along angle to adaptor to sort out implementation
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-01-25 08:49:30 +01:00
Ron Evans
94207b4a2d
Merge pull request #352 from schmidtw/dev
...
Add a driver for the sht3x chip.
2017-01-03 11:06:04 +01:00
Weston Schmidt
2fde08fbf1
Fix the unit tests due to a changed function signature.
...
Signed-off-by: Weston Schmidt <weston_schmidt@alumni.purdue.edu>
2017-01-03 01:49:34 -08:00
deadprogram
7f9062d0ba
docs: update list of currently supported i2c devices
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-01-03 10:22:06 +01:00
Weston Schmidt
0fe9d33729
Add a driver for the sht3x chip.
...
Signed-off-by: Weston Schmidt <weston_schmidt@alumni.purdue.edu>
2017-01-03 01:21:09 -08:00
Ron Evans
e88c828675
Merge pull request #351 from elopio/l3gd20h
...
Add the I2C driver for L3GD20H gyroscope
2017-01-03 10:16:04 +01:00
Leonardo Arias Fonseca (¡paz y baile!)
0a34fd1b02
Use a default scale
2017-01-02 21:23:20 -06:00
deadprogram
885c829a43
license: update license year to include 2017
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-01-02 22:25:17 +01:00
Leonardo Arias Fonseca (¡paz y baile!)
eb54ce864b
Found where the factor comes from
2016-12-31 10:08:50 -06:00
Leonardo Arias Fonseca (¡paz y baile!)
c9eb50285f
Add the I2C driver for L3GD20H gyroscope
2016-12-30 17:32:29 -06:00
Leonardo Arias Fonseca (¡paz y baile!)
dbbec9ff4f
Remove the unused attributes
2016-12-30 11:31:08 -06:00
Leonardo Arias Fonseca (¡paz y baile!)
dd068d379c
Change the driver API
2016-12-30 11:17:49 -06:00
Leonardo Arias Fonseca (¡paz y baile!)
e3fa891e4f
Undo unnecesary change
2016-12-29 15:44:48 -06:00
Leonardo Arias Fonseca (¡paz y baile!)
ed15a16fef
Fix fmt
2016-12-29 15:44:05 -06:00
Leonardo Arias Fonseca (¡paz y baile!)
de09f3ea53
Add the I2C driver for BMP180
...
https://www.adafruit.com/products/1603
2016-12-29 15:42:00 -06:00
deadprogram
ecb03b64e1
gpio: move test def for LED into test file
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-12-23 09:37:09 +01:00
deadprogram
ade09c734e
docs: correct I2C README link
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-12-21 10:56:51 +01:00
deadprogram
d4b4f06cdc
docs: correct GPIO README link
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-12-21 10:56:38 +01:00
deadprogram
2b5caffed3
docs: correct AIO README link
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-12-21 10:56:25 +01:00
deadprogram
0d4a963edb
i2c: godocs and separation of testing concerns
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-12-20 18:59:26 +01:00
deadprogram
81810131b8
docs: move AIO drivers into separate section of README
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-12-20 13:47:41 +01:00
deadprogram
d7cd235e7f
aio: remove direct pin, does not make sens here
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-12-20 13:44:24 +01:00
deadprogram
c186638973
aio: separate analog drivers from gpio drivers
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-12-20 13:25:22 +01:00
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
deadprogram
91cc0c4299
core: correct test for GPIO grove to match multierror
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-11-07 21:29:52 +01:00
deadprogram
506da4d8a6
core: update I2C drivers to return simply errors
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-11-07 21:29:51 +01:00
deadprogram
03e29d17f1
core: update GPIO drivers to return simply errors
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-11-07 21:29:51 +01:00
deadprogram
08874e4e21
core: no longer return slices of errors, instead use multierror
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-11-07 21:29:51 +01:00
Warren Fernandes
39eb212e35
Removes subtest definitions since they are not supported in go1.6
...
Signed-off-by: Warren Fernandes <warren.f.fernandes@gmail.com>
2016-11-06 11:36:11 -07:00
Warren Fernandes
7eb7d875eb
Adds tests for grove drivers
...
Signed-off-by: Warren Fernandes <warren.f.fernandes@gmail.com>
2016-11-05 21:15:08 -06: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
5785a83546
docs: update README for gpio drivers
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-11-01 19:16:23 +01:00
deadprogram
cbf0c8b390
Merge branch 'feature/devices/pirmotion' into dev
2016-11-01 18:15:05 +01:00
Ron Evans
cec5802719
Merge pull request #332 from wfernandes/test-fixing
...
Minor improvements
2016-10-30 22:20:59 +01:00
deadprogram
e01baa7b75
gpio: display events in PIR detect example
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-10-30 22:07:01 +01:00
deadprogram
d82e893e6f
gpio: PIR Motion sensor now working
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-10-30 18:50:23 +01:00
Warren Fernandes
facc7e5ae1
Fixes import path
...
Signed-off-by: Warren Fernandes <warren.f.fernandes@gmail.com>
2016-10-27 05:27:22 -06:00
Warren Fernandes
73043610f4
Adds tests for grove temperature sensor driver
...
Signed-off-by: Warren Fernandes <warren.f.fernandes@gmail.com>
2016-10-27 05:21:50 -06:00
Warren Fernandes
44224746b4
Uses time.NewTimer() instead of time.After() to be more efficient.
...
- Makes tests more consistent
- Fixes halt test
- Asserts on returned error
Signed-off-by: Warren Fernandes <warren.f.fernandes@gmail.com>
2016-10-27 03:34:52 -06:00
Warren Fernandes
3f966dc125
Fixes AnalogSensor Halt Test
...
Signed-off-by: Warren Fernandes <warren.f.fernandes@gmail.com>
2016-10-27 03:32:56 -06:00
Warren Fernandes
922e6d98f7
Uses NewTimer() instead of time.After() to be more
...
efficient since the later creates new timers in a
tight loop.
- Adds more assertions to tests
- Adds some comments to help contributors understand
that the send occurs after the Once.
Signed-off-by: Warren Fernandes <warren.f.fernandes@gmail.com>
2016-10-27 03:02:32 -06:00
Warren Fernandes
bbf0b36a91
Adds support for Grove Magnetic Switch Sensor
...
- http://wiki.seeed.cc/Grove-Magnetic_Switch/
Signed-off-by: Warren Fernandes <warren.f.fernandes@gmail.com>
2016-10-26 23:20:43 -06:00
deadprogram
14f5a1989b
gpio: Add initial support for PIR motion detector
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-10-22 15:17:49 +02:00
deadprogram
5e37140954
i2c: correct signature for Adafruit Motor Hat driver to match latest refactor
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-10-10 11:04:39 +02:00
deadprogram
e30586acf0
core: Ensure that all drivers have default names
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-10-04 10:25:14 +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
80cc3139d0
core: Refactor I2C drivers for new Driver creation signatures
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-09-25 14:08:18 +02:00
deadprogram
93772e1c37
core: Refactor GPIO drivers for new Driver creation signatures
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-09-25 13:36:18 +02:00
deadprogram
ce773955b4
core: Move GPIO and I2C drivers into appropriately named 'drivers' directory
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-09-25 12:34:09 +02:00