Commit Graph

347 Commits

Author SHA1 Message Date
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
deadprogram 8ea333125a mqtt: add driver for syntactical sugar around virtual devices
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-01-25 20:19:15 +01:00
Durgesh Mankekar 9f0bc79dc2 bb8: Added example of collision detection 2017-01-24 16:53:29 -05:00
deadprogram bfddff19b1 firmata: WIP on adding support for BLE connected microcontrollers
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-01-16 21:45:37 +01:00
deadprogram 8e10ea30d7 particle: update examples to take key params via command line
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-01-04 15:15:38 +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 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
deadprogram 671dd1aa01 firmata: add comment on how to run WiFi example
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-01-02 22:37:07 +01:00
deadprogram 3d9ecfdfeb firmata: add comment on how to run WiFi example
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-01-02 22:36:30 +01:00
deadprogram eab086d43e Working TCP firmata blink
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-01-02 22:02:43 +01:00
deadprogram 80be494715 firmata: add example using tcp connection to firmata
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-01-02 21:40:20 +01:00
deadprogram e995b372b8 ble: add generic access service driver
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-12-27 19:44:36 +01:00
deadprogram bde831d6ad minidrone: only need to call Land() once
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-12-27 18:35:33 +01:00
deadprogram e6de2a8a2e minidrone: adds Emergency() and TakePicture() commands
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-12-27 18:30:56 +01:00
deadprogram dcdee3aefa minidrone: add all piloting flying state events
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-12-27 15:53:49 +01:00
deadprogram e828f5617d bebop: add support/example of RTP video
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-12-27 01:07:21 +01:00
deadprogram 12c12517e3 bebop: update ps3 and video example to enable the video stream
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-12-26 19:01:52 +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 8510bd96d3 bb8: add initial support for Sphero BB-8 platform
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-12-19 16:21:47 +01:00
deadprogram d1363746da core: eliminate potential race conditions from Events and Every functions
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-12-08 20:32:02 +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 95586fa2d0 parrot: move both ARDrone and Bebop under Parrot package
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-12-07 14:22:12 +01:00
deadprogram c1454049f0 ollie: move Sphero Ollie into own platform
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-12-06 19:16:33 +01:00
deadprogram ca984852d5 minidrone: move Parrot Minidrone into own platform
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-12-06 18:51:14 +01:00
deadprogram fc2d98f9e7 beagleboard: now works on kernel 4.4+ of Debian
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-12-03 13:18:10 +01:00
deadprogram 3612b209f4 chip: correct ]base for new 4.4 GPIO
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-12-03 13:18:10 +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
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 cbf0c8b390 Merge branch 'feature/devices/pirmotion' into dev 2016-11-01 18:15:05 +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
devfubar bf4b74cb57 Updated the examples to show how to setup the sparkfun edison 2016-10-22 15:13:45 +01: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 4230d2ab2f examples: remove Master unless needed for less code
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-10-18 21:08:25 +02:00
deadprogram 2f9d0fdb70 examples: better example of using Master Gobot
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-10-18 19:37:53 +02:00
deadprogram 2811295e3f examples: better example of using Master Gobot
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-10-18 19:32:45 +02:00
deadprogram 91aa54d37b examples: add Firmata button metal example
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-10-18 18:47:26 +02:00
deadprogram e08e8b02ff examples: add Firmata blink metal example
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-10-18 18:28:22 +02:00
deadprogram 5eac41a6bc core: WIP on all work happening in separate goroutine
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-10-18 16:13:45 +02:00
deadprogram da3adc0d85 examples: small refactor to metal button example that shows how to use Gobot event channels
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-10-18 11:31:40 +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 64ae34f40f examples: Correct adafruit examples to use new drivers package location
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-10-15 19:55:43 +02:00
deadprogram 6c1e392b18 Correct adafruit examples to use new drivers package location
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-10-15 19:48:34 +02:00
deadprogram 311fea76ff edison: Experimental support for other breakout boards besides Arduino
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-10-10 19:29:50 +02:00
Ron Evans 532200e140 Merge pull request #316 from hybridgroup/feature/new-adaptor-driver-signatures
Simplify new adaptor/new driver function signatures
2016-10-10 10:34:26 +02:00
deadprogram ae512a3497 docs: Include example with both Firmata and API use
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-10-04 10:25:50 +02:00
deadprogram acfdbee0cb core: Convert all examples to use new Adaptor/Driver signatures
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-10-03 16:58:43 +02:00
deadprogram e3404a16e8 core: rename Spark examples to Particle
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-10-03 15:15:49 +02:00
deadprogram 54f0c16be7 core: Refactor audio platform for new adaptor/driver signatures
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-09-25 12:17:01 +02:00
deadprogram 56558cd9cb core: Starting refactor of new adaptor/new driver function signatures with ARDrone
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-09-25 11:46:55 +02:00
Ron Evans 5442e0bd8b Merge pull request #308 from jfinken/dev
Adafruit Motor HAT driver support
2016-09-17 01:34:05 +02:00
deadprogram 3540ce7bd1 docs: go fmt files that needed it from recent changes
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-09-12 21:33:14 +02:00
deadprogram 94d78d777a 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 fc82503428 core: Refactor examples to allow 'metal' development using Gobot adaptors/drivers.
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-09-12 21:33:14 +02:00
deadprogram 0e25f29a1b core: Refactor events to use channels all the way down. Allows 'metal' development using Gobot libs.
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-09-12 21:33:14 +02:00
Josh Finken 409cdfb041 Removing the raspi_adafruit program as it has been split into three separate programs, removing my Makefile for the raspi adafruit programs, and fixing up a few comments. 2016-09-02 06:44:50 -06:00
Josh Finken 6a415b5096 Merge branch 'dev' of github.com:jfinken/gobot into dev 2016-08-30 10:08:13 -06:00
Yuri Gorokhov 1b8212ebcf Adding support for MakeBlock megapi
Signed-off-by: Yuri Gorokhov <yurigorokhov@gmail.com>

Fixing example

Adding fix for megapi same speed bug

Adding README.md
2016-08-29 22:08:50 -07:00
deadprogram 986cfaa3f3 joule: add i2c example and notes to README about pullup resistors
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-08-26 13:56:33 +02:00
Josh Finken 54c8b246dd Adding a Servo example program for the Adafruit Servo Hat driver code. 2016-08-25 22:04:36 -06:00