Commit Graph

305 Commits

Author SHA1 Message Date
bezineb5 7eabd4e2e4 Fixed a bug with the ADS1015 reading. Updated example. 2017-04-27 09:10:03 -04:00
deadprogram 8ca2e59271 tinkerboard: add examples for ASUS Tinker Board
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-04-26 15:54:59 +02:00
deadprogram 0de58756bb i2c: support working for ads1015 adc providing AnalogReader interface
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-04-24 17:56:13 +02:00
Michael Hope 412fa0a3b1 nats: support wildcard subjects by changing the handler to take
nats.Message.

Also update the docs and examples.

Signed-off-by: Michael Hope <mlhx@google.com>
2017-04-21 20:46:45 +02:00
deadprogram 311bfcfb45 mqtt: update examples that use mqtt for updated notification signature
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-04-19 09:21:34 +02:00
deadprogram 9a2cc0b15b microbit: correct example pin mappings
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-04-15 18:42:37 +02:00
deadprogram 5059a8c2f2 microbit: add example showing gpio Button and LED
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-04-15 17:46:43 +02:00
deadprogram ca2854bdf0 microbit: add DigitalWriter, DigitalReader, and AnalogReader support
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-04-15 17:07:53 +02:00
deadprogram aefc031d13 firmata: correctly handle i2cwrite operations of >16 bytes by chunking them
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-04-06 20:04:47 +02:00
deadprogram 0887fefc70 i2c: change example for bmp180 to match current method signature
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-04-04 16:00:01 +02:00
deadprogram a3c892ee58 examples: correct build errors in all current examples
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-04-04 13:38:51 +02:00
deadprogram 821fbf272e i2c: adds Altitude() function to BMP280/BME280
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-04-01 10:29:57 +02:00
deadprogram 633abf0751 i2c: update bme280 example
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-03-31 23:01:10 +02:00
deadprogram 4c573b43f4 i2c: add Humidity() to bme280 example
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-03-31 23:01:10 +02:00
deadprogram f523fc6447 i2c: bmp280/bme280 raw reading in place, just need the conversions
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-03-31 23:01:10 +02:00
deadprogram 8940824ff0 i2c: refactoring since the bme280 is not the same as the bmp180
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-03-31 23:01:10 +02:00
deadprogram 56a67a6626 i2c: ensure bmp180 returns Temperature() error, if any
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-03-31 23:01:10 +02:00
Jordi Llonch 6ea0383918 ssd1306: added example
Signed-off-by: Jordi Llonch <llonchj@gmail.com>
2017-03-31 17:33:52 +00:00
b3b 5eaabf18a7 Fix neurosky example
Signed-off-by: b3b <ash.b3b@gmail.com>
2017-03-23 12:27:13 +03:00
deadprogram 647b3e3ba7 microbit: add CI build exclusion directives to new Microbit examples
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-03-20 12:31:23 +01:00
Ron Evans 5590c670ed Merge pull request #384 from maruel/go_test
Fix go test ./...
2017-03-20 08:28:20 +01:00
deadprogram 132080f63a microbit: add temperature driver
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-03-18 17:22:17 +01:00
deadprogram 88a260a221 microbit: add magnetometer driver
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-03-18 17:09:43 +01:00
Marc-Antoine Ruel 50d5869808 Fix go test ./...
Make all examples to not be built by default by adding the build tag 'example'.
Some files were automatically reformatted by goimports upon saving.
2017-03-13 11:01:39 -04:00
deadprogram 3fdf0639e1 microbit: add accelerometer implementation
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-03-01 01:23:50 +01:00
deadprogram ec9de10a10 microbit: improve button implementation, add integrated example
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-02-28 20:19:09 +01:00
deadprogram 9634a9822c microbit: initial implementation for built-in buttons
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-02-28 20:03:20 +01:00
deadprogram 44de8014c5 microbit: initial implementation for LEDs
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-02-28 19:40:16 +01:00
Jeffrey Jenner 1cc9cc96f5 Fixed docs and added example 2017-02-24 02:07:02 +10: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ö a144fd6ebe Added simple example for DRV2605L on C.H.I.P
Signed-off-by: Erik Agsjö <erik.agsjo@gmail.com>
2017-02-21 22:53:43 +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
deadprogram b8b3f4ecfa ble: test examples to excercise multiple BLE devices at once
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-02-14 18:43:53 +01:00
deadprogram 5f93b1ebc8 ble: more WIP on multiple ble devices
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-02-14 18:43:53 +01:00
deadprogram 313d6664d1 i2c: refactor mpl115a2 to more cleanly return desired data as methods
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-02-11 12:34:28 +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 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 21bdf5aa26 i2c: completed implemetation of I2cConfig interface
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-02-09 14:35:48 +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 b0a8bda83f firmata: remove race conditions identified in Firmata client
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-02-08 15:33:52 +01:00
deadprogram 3e9250c585 docs: add examples for i2c platforms to use BlinkM
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-02-08 11:34:25 +01:00
deadprogram 22d148b6fa beaglebone: correct i2c buses to match actual mapping
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-02-08 10:36:04 +01:00
deadprogram 8730233e6a docs: fix #363 by using atomic.Value to protect current values used by mutiple goroutines
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-02-07 12:19:29 +01:00
deadprogram 25d7956cfb docs: add header to example with execution instructions
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-01-31 21:14:09 +01:00
deadprogram dc1ea629b5 nats: add driver to make it easier to create virtual devices
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-01-31 21:13:35 +01:00
deadprogram 66f5b483f1 docs: modify metal example to range thru channel instead of select
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-01-30 11:48:15 +01:00
deadprogram 01d1bd79f7 mqtt: add SSL/TLS client options support
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-01-26 19:03:32 +01:00
deadprogram 4b8546f8a7 mqtt: fix #277 by adding SetAutoReconnect method to set Paho MQTT client
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-01-26 16:21:28 +01:00
deadprogram 52c42a4e57 mqtt: change both 'On' and 'Publish' method function signatures to match Eventer interface
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-01-26 09:13:35 +01:00
deadprogram e0b39b1144 mqtt: change 'On' method function signature to match expected interface
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-01-26 07:14:43 +01:00