From 953c3254e77c4f4a7dd0a03ef7afd25cf463879a Mon Sep 17 00:00:00 2001 From: deadprogram Date: Thu, 8 Dec 2016 13:24:03 +0100 Subject: [PATCH] core: use canonical import domain of gobot.io for all code Signed-off-by: deadprogram --- .travis.yml | 2 +- CHANGELOG.md | 2 +- CONTRIBUTING.md | 4 +- Makefile | 8 +- README.md | 90 +++++++++---------- api/api.go | 4 +- api/api_test.go | 4 +- api/basic_auth_test.go | 2 +- api/cors_test.go | 2 +- api/doc.go | 6 +- api/helpers_test.go | 2 +- ci/travis.sh | 2 +- cli/generate.go | 14 +-- cli/main.go | 4 +- commander_test.go | 2 +- doc.go | 16 ++-- drivers/gpio/README.md | 4 +- drivers/gpio/analog_sensor_driver.go | 2 +- drivers/gpio/analog_sensor_driver_test.go | 4 +- drivers/gpio/button_driver.go | 2 +- drivers/gpio/button_driver_test.go | 4 +- drivers/gpio/buzzer_driver.go | 2 +- drivers/gpio/direct_pin_driver.go | 2 +- drivers/gpio/direct_pin_driver_test.go | 4 +- drivers/gpio/doc.go | 4 +- drivers/gpio/gpio.go | 2 +- drivers/gpio/grove_drivers_test.go | 4 +- .../gpio/grove_temperature_sensor_driver.go | 2 +- .../grove_temperature_sensor_driver_test.go | 4 +- drivers/gpio/led_driver.go | 2 +- drivers/gpio/led_driver_test.go | 2 +- drivers/gpio/makey_button_driver.go | 2 +- drivers/gpio/makey_button_driver_test.go | 4 +- drivers/gpio/motor_driver.go | 2 +- drivers/gpio/motor_driver_test.go | 4 +- drivers/gpio/pir_motion_driver.go | 2 +- drivers/gpio/pir_motion_driver_test.go | 4 +- drivers/gpio/relay_driver.go | 2 +- drivers/gpio/relay_driver_test.go | 2 +- drivers/gpio/rgb_led_driver.go | 2 +- drivers/gpio/rgb_led_driver_test.go | 4 +- drivers/gpio/servo_driver.go | 2 +- drivers/gpio/servo_driver_test.go | 4 +- drivers/i2c/README.md | 4 +- drivers/i2c/adafruit_driver.go | 2 +- drivers/i2c/adafruit_driver_test.go | 4 +- drivers/i2c/blinkm_driver.go | 2 +- drivers/i2c/blinkm_driver_test.go | 2 +- drivers/i2c/doc.go | 4 +- drivers/i2c/grove_drivers.go | 2 +- drivers/i2c/hmc6352_driver.go | 2 +- drivers/i2c/hmc6352_driver_test.go | 2 +- drivers/i2c/i2c.go | 2 +- drivers/i2c/jhd1313m1_driver.go | 2 +- drivers/i2c/lidarlite_driver.go | 2 +- drivers/i2c/lidarlite_driver_test.go | 2 +- drivers/i2c/mcp23017_driver.go | 2 +- drivers/i2c/mcp23017_driver_test.go | 2 +- drivers/i2c/mma7660_driver.go | 2 +- drivers/i2c/mpl115a2_driver.go | 2 +- drivers/i2c/mpl115a2_driver_test.go | 2 +- drivers/i2c/mpu6050_driver.go | 2 +- drivers/i2c/mpu6050_driver_test.go | 2 +- drivers/i2c/wiichuck_driver.go | 2 +- drivers/i2c/wiichuck_driver_test.go | 2 +- examples/ardrone.go | 4 +- examples/ardrone_face_tracking.go | 6 +- examples/ardrone_ps3.go | 6 +- examples/audio.go | 4 +- examples/batty.go | 4 +- examples/beaglebone_basic_direct_pin.go | 4 +- examples/beaglebone_blink.go | 6 +- examples/beaglebone_blink_usr_led.go | 6 +- examples/beaglebone_blinkm.go | 6 +- examples/beaglebone_button.go | 6 +- examples/beaglebone_direct_pin.go | 6 +- examples/beaglebone_led_brightness.go | 6 +- ...lebone_led_brightness_with_analog_input.go | 6 +- examples/beaglebone_makey_button.go | 6 +- examples/beaglebone_servo.go | 6 +- examples/bebop.go | 4 +- examples/bebop_ps3.go | 6 +- examples/bebop_ps3_video.go | 6 +- examples/ble_battery.go | 4 +- examples/ble_device_info.go | 4 +- examples/chip_blink.go | 6 +- examples/chip_button.go | 6 +- examples/chip_button_led.go | 6 +- examples/chip_grove_accelerometer.go | 6 +- examples/chip_grove_lcd.go | 6 +- examples/chip_mpu6050.go | 6 +- examples/chip_wiichuck.go | 6 +- examples/digispark_api.go | 8 +- examples/digispark_blink.go | 6 +- examples/digispark_led_brightness.go | 6 +- examples/digispark_servo.go | 6 +- examples/edison_blink.go | 6 +- ...dison_blink_without_all_gobot_framework.go | 4 +- examples/edison_blinkm.go | 6 +- examples/edison_button.go | 6 +- examples/edison_button_led.go | 6 +- examples/edison_button_led_api.go | 8 +- examples/edison_grove_accelerometer.go | 6 +- examples/edison_grove_blink.go | 6 +- examples/edison_grove_button.go | 6 +- examples/edison_grove_buzzer.go | 6 +- examples/edison_grove_lcd.go | 6 +- examples/edison_grove_led.go | 6 +- examples/edison_grove_light_sensor.go | 6 +- examples/edison_grove_piezo_vibration.go | 6 +- examples/edison_grove_rotary_sensor.go | 6 +- examples/edison_grove_sound_sensor.go | 6 +- examples/edison_grove_temperature_sensor.go | 6 +- examples/edison_grove_touch.go | 6 +- examples/edison_led_brightness.go | 6 +- ...edison_led_brightness_with_analog_input.go | 6 +- .../edison_miniboard_grove_accelerometer.go | 6 +- examples/edison_rgb_led.go | 6 +- examples/every_done.go | 2 +- examples/firmata_blink.go | 6 +- examples/firmata_blink_api.go | 8 +- examples/firmata_blink_metal.go | 4 +- examples/firmata_blink_robot.go | 6 +- examples/firmata_blinkm.go | 6 +- examples/firmata_button.go | 6 +- examples/firmata_buzzer.go | 6 +- examples/firmata_cat_toy.go | 8 +- examples/firmata_direct_pin.go | 6 +- examples/firmata_hmc6352.go | 6 +- examples/firmata_integration.go | 6 +- examples/firmata_led_brightness.go | 6 +- ...irmata_led_brightness_with_analog_input.go | 6 +- examples/firmata_lidarlite.go | 6 +- examples/firmata_makey_button.go | 6 +- examples/firmata_metal_button.go | 4 +- examples/firmata_mma7660.go | 6 +- examples/firmata_motor.go | 6 +- examples/firmata_mpl115a2.go | 6 +- examples/firmata_mpu6050.go | 6 +- examples/firmata_pir_motion.go | 6 +- examples/firmata_rgb_led.go | 6 +- examples/firmata_servo.go | 6 +- examples/firmata_temp36.go | 4 +- examples/firmata_travis.go | 6 +- examples/firmata_wiichuck.go | 6 +- examples/hello.go | 2 +- examples/hello_api.go | 4 +- examples/hello_api_auth.go | 4 +- examples/joule_blink.go | 6 +- examples/joule_blinkm.go | 6 +- examples/joule_grove_lcd.go | 6 +- examples/joule_leds.go | 6 +- examples/joule_rgb_led.go | 6 +- examples/joystick_ps3.go | 4 +- examples/joystick_ps4.go | 4 +- examples/joystick_xbox360.go | 4 +- examples/keyboard.go | 4 +- examples/keyboard_mqtt.go | 37 ++++++++ examples/leap_motion.go | 4 +- examples/leap_motion_gestures.go | 4 +- examples/leap_motion_hands.go | 4 +- examples/leap_servos.go | 8 +- examples/leap_sphero.go | 6 +- examples/mavlink.go | 6 +- examples/megapi_motor.go | 4 +- examples/metal_button.go | 4 +- examples/minidrone.go | 6 +- examples/minidrone_ps3.go | 8 +- examples/mqtt_firmata_blink.go | 8 +- examples/mqtt_ping.go | 4 +- examples/nats.go | 4 +- examples/neurosky.go | 4 +- examples/ollie.go | 6 +- examples/ollie_mqtt.go | 80 +++++++++++++++++ examples/ollie_roll.go | 6 +- examples/opencv_face_detect.go | 4 +- examples/opencv_window.go | 4 +- examples/particle_api.go | 8 +- examples/particle_blink.go | 6 +- examples/particle_button.go | 6 +- examples/particle_events.go | 4 +- examples/particle_function.go | 4 +- examples/particle_led_brightness.go | 6 +- examples/particle_variable.go | 4 +- examples/pebble.go | 6 +- examples/pebble_accelerometer.go | 6 +- examples/raspi_adafruit_dcmotor.go | 6 +- examples/raspi_adafruit_servo.go | 6 +- examples/raspi_adafruit_stepper.go | 6 +- examples/raspi_blink.go | 6 +- examples/raspi_blinkm.go | 6 +- examples/raspi_button.go | 6 +- examples/sphero.go | 4 +- examples/sphero_api.go | 6 +- examples/sphero_conways.go | 4 +- examples/sphero_dpad.go | 6 +- examples/sphero_master.go | 4 +- examples/sphero_multiple.go | 6 +- examples/square.go | 8 +- examples/square_fire.go | 8 +- examples_test.go | 4 +- master_test.go | 2 +- platforms/audio/audio_adaptor_test.go | 4 +- platforms/audio/audio_driver.go | 2 +- platforms/audio/audio_driver_test.go | 4 +- platforms/audio/doc.go | 7 ++ platforms/beaglebone/README.md | 8 +- platforms/beaglebone/beaglebone_adaptor.go | 4 +- .../beaglebone/beaglebone_adaptor_test.go | 10 +-- platforms/beaglebone/doc.go | 12 +-- platforms/beaglebone/pwm_pin.go | 2 +- platforms/ble/README.md | 2 +- platforms/ble/battery.go | 2 +- platforms/ble/ble_client_adaptor.go | 2 +- platforms/ble/ble_client_adaptor_test.go | 2 +- platforms/ble/device_information.go | 2 +- platforms/ble/doc.go | 7 ++ platforms/chip/README.md | 8 +- platforms/chip/chip_adaptor.go | 2 +- platforms/chip/chip_adaptor_test.go | 10 +-- platforms/chip/doc.go | 4 +- platforms/digispark/README.md | 8 +- platforms/digispark/digispark_adaptor_test.go | 6 +- platforms/digispark/doc.go | 12 +-- platforms/firmata/README.md | 8 +- platforms/firmata/client/client.go | 4 +- platforms/firmata/client/client_test.go | 2 +- platforms/firmata/client/examples/blink.go | 2 +- platforms/firmata/doc.go | 12 +-- platforms/firmata/firmata_adaptor.go | 4 +- platforms/firmata/firmata_adaptor_test.go | 10 +-- platforms/intel-iot/edison/README.md | 8 +- platforms/intel-iot/edison/arduino_pinmap.go | 2 +- platforms/intel-iot/edison/doc.go | 4 +- platforms/intel-iot/edison/edison_adaptor.go | 4 +- .../intel-iot/edison/edison_adaptor_test.go | 10 +-- platforms/intel-iot/intel-iot.go | 2 +- platforms/intel-iot/joule/README.md | 8 +- platforms/intel-iot/joule/doc.go | 4 +- platforms/intel-iot/joule/joule_adaptor.go | 4 +- .../intel-iot/joule/joule_adaptor_test.go | 10 +-- platforms/joystick/README.md | 6 +- platforms/joystick/doc.go | 10 +-- platforms/joystick/joystick_adaptor_test.go | 4 +- platforms/joystick/joystick_driver.go | 2 +- platforms/joystick/joystick_driver_test.go | 4 +- platforms/keyboard/README.md | 6 +- platforms/keyboard/doc.go | 10 +-- platforms/keyboard/keyboard_driver.go | 2 +- platforms/keyboard/keyboard_driver_test.go | 4 +- platforms/keyboard/keyboard_test.go | 2 +- platforms/leap/README.md | 6 +- platforms/leap/doc.go | 10 +-- platforms/leap/leap_motion_adaptor_test.go | 4 +- platforms/leap/leap_motion_driver.go | 2 +- platforms/leap/leap_motion_driver_test.go | 4 +- platforms/mavlink/README.md | 8 +- platforms/mavlink/doc.go | 12 +-- platforms/mavlink/mavlink_adaptor_test.go | 4 +- platforms/mavlink/mavlink_driver.go | 4 +- platforms/mavlink/mavlink_driver_test.go | 6 +- platforms/megapi/README.md | 6 +- platforms/megapi/doc.go | 7 ++ platforms/megapi/megapi_adaptor.go | 2 +- platforms/megapi/motor_driver.go | 2 +- platforms/mqtt/README.md | 8 +- platforms/mqtt/doc.go | 6 +- platforms/mqtt/mqtt_adaptor_test.go | 4 +- platforms/nats/README.md | 8 +- platforms/nats/doc.go | 6 +- platforms/nats/nats_adaptor_test.go | 4 +- platforms/neurosky/README.md | 8 +- platforms/neurosky/doc.go | 10 +-- platforms/neurosky/neurosky_adaptor_test.go | 4 +- platforms/neurosky/neurosky_driver.go | 2 +- platforms/neurosky/neurosky_driver_test.go | 4 +- platforms/opencv/README.md | 6 +- platforms/opencv/camera_driver.go | 2 +- platforms/opencv/camera_driver_test.go | 4 +- platforms/opencv/doc.go | 12 +-- platforms/opencv/utils_test.go | 2 +- platforms/opencv/window_driver.go | 2 +- platforms/opencv/window_driver_test.go | 4 +- platforms/parrot/ardrone/README.md | 6 +- .../parrot/ardrone/ardrone_adaptor_test.go | 4 +- platforms/parrot/ardrone/ardrone_driver.go | 2 +- .../parrot/ardrone/ardrone_driver_test.go | 4 +- platforms/parrot/ardrone/doc.go | 10 +-- platforms/parrot/bebop/README.md | 6 +- platforms/parrot/bebop/bebop_adaptor.go | 2 +- platforms/parrot/bebop/bebop_adaptor_test.go | 4 +- platforms/parrot/bebop/bebop_driver.go | 2 +- platforms/parrot/bebop/bebop_driver_test.go | 2 +- .../parrot/bebop/client/examples/takeoff.go | 2 +- .../parrot/bebop/client/examples/video.go | 2 +- platforms/parrot/bebop/doc.go | 6 +- platforms/parrot/minidrone/README.md | 2 +- platforms/parrot/minidrone/doc.go | 4 +- .../parrot/minidrone/minidrone_driver.go | 4 +- .../parrot/minidrone/minidrone_driver_test.go | 2 +- platforms/parrot/parrot.go | 2 +- platforms/particle/README.md | 8 +- platforms/particle/adaptor.go | 2 +- platforms/particle/adaptor_test.go | 6 +- platforms/particle/doc.go | 12 +-- platforms/pebble/README.md | 12 +-- platforms/pebble/doc.go | 14 +-- platforms/pebble/pebble_adaptor_test.go | 4 +- platforms/pebble/pebble_driver.go | 2 +- platforms/pebble/pebble_driver_test.go | 4 +- platforms/raspi/README.md | 8 +- platforms/raspi/doc.go | 4 +- platforms/raspi/raspi_adaptor.go | 4 +- platforms/raspi/raspi_adaptor_test.go | 10 +-- platforms/sphero/README.md | 8 +- platforms/sphero/doc.go | 10 +-- platforms/sphero/ollie/README.md | 2 +- platforms/sphero/ollie/doc.go | 4 +- platforms/sphero/ollie/ollie_driver.go | 4 +- platforms/sphero/ollie/ollie_driver_test.go | 2 +- platforms/sphero/sphero_adaptor_test.go | 4 +- platforms/sphero/sphero_driver.go | 2 +- platforms/sphero/sphero_driver_test.go | 4 +- sysfs/digital_pin_test.go | 2 +- sysfs/fs_mock_test.go | 2 +- sysfs/fs_test.go | 2 +- sysfs/i2c_device_test.go | 2 +- utils_test.go | 2 +- 328 files changed, 972 insertions(+), 834 deletions(-) create mode 100644 examples/keyboard_mqtt.go create mode 100644 examples/ollie_mqtt.go create mode 100644 platforms/audio/doc.go create mode 100644 platforms/ble/doc.go create mode 100644 platforms/megapi/doc.go diff --git a/.travis.yml b/.travis.yml index efbc71910..b30db1d56 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,7 +16,7 @@ before_install: - sudo add-apt-repository -y ppa:zoogie/sdl2-snapshots - sudo apt-get update - sudo apt-get install --force-yes libcv-dev libcvaux-dev libhighgui-dev libopencv-dev libsdl2-dev libsdl2-image-dev libsdl2 libusb-dev xvfb unzip libgtk2.0-0 - - cd $HOME/gopath/src/github.com/hybridgroup/gobot + - cd $HOME/gopath/src/gobot.io/x/gobot - go get github.com/axw/gocov/gocov - go get github.com/mattn/goveralls - if ! go get github.com/golang/tools/cmd/cover; then go get golang.org/x/tools/cmd/cover; fi diff --git a/CHANGELOG.md b/CHANGELOG.md index 3dd746d34..afff86d2b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -115,7 +115,7 @@ --- - Dramatically increased test coverage and documentation - api - - Conform to the [cppp.io](https://github.com/hybridgroup/cppp-io) spec + - Conform to the [cppp.io](https://gobot.io/x/cppp-io) spec - Add support for basic middleware - Add support for custom routes - Add SSE support diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index ac642d5e2..0e879e8f4 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -56,8 +56,8 @@ The basics are as follows: 2. `go get` the upstream repo and set it up as the `upstream` remote and your own repo as the `origin` remote: -`go get github.com/hybridgroup/gobot` -`cd $GOPATH/src/github.com/hybridgroup/gobot` +`go get gobot.io/x/gobot` +`cd $GOPATH/src/gobot.io/x/gobot` `git remote rename origin upstream` `git remote add origin git@github.com/YOUR_GITHUB_NAME/gobot` diff --git a/Makefile b/Makefile index 364d4fbe3..ee1fcc753 100644 --- a/Makefile +++ b/Makefile @@ -1,15 +1,15 @@ -PACKAGES := gobot gobot/api gobot/drivers/gpio gobot/drivers/i2c gobot/platforms/firmata/client gobot/platforms/intel-iot/edison gobot/platforms/intel-iot/joule gobot/sysfs $(shell ls ./platforms | sed -e 's/^/gobot\/platforms\//') +PACKAGES := gobot gobot/api gobot/drivers/gpio gobot/drivers/i2c gobot/platforms/firmata/client gobot/platforms/intel-iot/edison gobot/platforms/intel-iot/joule gobot/platforms/parrot/ardrone gobot/platforms/parrot/bebop gobot/platforms/parrot/minidrone gobot/sysfs $(shell ls ./platforms | sed -e 's/^/gobot\/platforms\//') .PHONY: test cover robeaux examples test: for package in $(PACKAGES) ; do \ - go test -a github.com/hybridgroup/$$package ; \ + go test -a gobot.io/x/$$package ; \ done ; \ cover: echo "mode: set" > profile.cov ; \ for package in $(PACKAGES) ; do \ - go test -a -coverprofile=tmp.cov github.com/hybridgroup/$$package ; \ + go test -a -coverprofile=tmp.cov gobot.io/x/$$package ; \ cat tmp.cov | grep -v "mode: set" >> profile.cov ; \ done ; \ rm tmp.cov ; \ @@ -41,7 +41,7 @@ examples: deps: go get -d -v github.com/bmizerany/pat - go get -d -v github.com/hybridgroup/go-ardrone/client + go get -d -v gobot.io/x/go-ardrone/client go get -d -v github.com/currantlabs/gatt go get -d -v github.com/tarm/serial go get -d -v github.com/veandco/go-sdl2/sdl diff --git a/README.md b/README.md index 6f584f785..1dc835dd7 100644 --- a/README.md +++ b/README.md @@ -8,14 +8,14 @@ Want to use Javascript robotics? Check out our sister project Cylon.js (http://c Want to use Ruby on robots? Check out our sister project Artoo (http://artoo.io) -[![GoDoc](https://godoc.org/github.com/hybridgroup/gobot?status.svg)](https://godoc.org/github.com/hybridgroup/gobot) +[![GoDoc](https://godoc.org/gobot.io/x/gobot?status.svg)](https://godoc.org/gobot.io/x/gobot) [![Build Status](https://travis-ci.org/hybridgroup/gobot.png?branch=dev)](https://travis-ci.org/hybridgroup/gobot) [![Coverage Status](https://coveralls.io/repos/github/hybridgroup/gobot/badge.svg?branch=dev)](https://coveralls.io/github/hybridgroup/gobot?branch=dev) [![Go Report Card](https://goreportcard.com/badge/hybridgroup/gobot)](https://goreportcard.com/report/hybridgroup/gobot) ## Getting Started -Get the Gobot source with: `go get -d -u github.com/hybridgroup/gobot/...` +Get the Gobot source with: `go get -d -u gobot.io/x/gobot/...` ## Examples @@ -27,9 +27,9 @@ package main import ( "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/drivers/gpio" - "github.com/hybridgroup/gobot/platforms/firmata" + "gobot.io/x/gobot" + "gobot.io/x/gobot/drivers/gpio" + "gobot.io/x/gobot/platforms/firmata" ) func main() { @@ -61,8 +61,8 @@ import ( "fmt" "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/platforms/sphero" + "gobot.io/x/gobot" + "gobot.io/x/gobot/platforms/sphero" ) func main() { @@ -93,8 +93,8 @@ You can use the entire Gobot framework as shown in the examples above ("Classic" package main import ( - "github.com/hybridgroup/gobot/drivers/gpio" - "github.com/hybridgroup/gobot/platforms/intel-iot/edison" + "gobot.io/x/gobot/drivers/gpio" + "gobot.io/x/gobot/platforms/intel-iot/edison" "time" ) @@ -123,9 +123,9 @@ import ( "fmt" "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/api" - "github.com/hybridgroup/gobot/platforms/sphero" + "gobot.io/x/gobot" + "gobot.io/x/gobot/api" + "gobot.io/x/gobot/platforms/sphero" ) func NewSwarmBot(port string) *gobot.Robot { @@ -182,36 +182,36 @@ func main() { ## Hardware Support Gobot has a extensible system for connecting to hardware devices. The following robotics and physical computing platforms are currently supported: -- [Arduino](http://www.arduino.cc/) <=> [Package](https://github.com/hybridgroup/gobot/tree/master/platforms/firmata) -- Audio <=> [Package](https://github.com/hybridgroup/gobot/tree/master/platforms/audio) -- [Beaglebone Black](http://beagleboard.org/Products/BeagleBone+Black/) <=> [Package](https://github.com/hybridgroup/gobot/tree/master/platforms/beaglebone) -- [Bluetooth LE](https://www.bluetooth.com/what-is-bluetooth-technology/bluetooth-technology-basics/low-energy) <=> [Package](https://github.com/hybridgroup/gobot/tree/master/platforms/ble) -- [C.H.I.P](http://www.nextthing.co/pages/chip) <=> [Package](https://github.com/hybridgroup/gobot/tree/master/platforms/chip) -- [Digispark](http://digistump.com/products/1) <=> [Package](https://github.com/hybridgroup/gobot/tree/master/platforms/digispark) -- [Intel Edison](http://www.intel.com/content/www/us/en/do-it-yourself/edison.html) <=> [Package](https://github.com/hybridgroup/gobot/tree/master/platforms/intel-iot/edison) -- [Intel Joule](http://intel.com/joule/getstarted) <=> [Package](https://github.com/hybridgroup/gobot/tree/master/platforms/intel-iot/joule) -- [Joystick](http://en.wikipedia.org/wiki/Joystick) <=> [Package](https://github.com/hybridgroup/gobot/tree/master/platforms/joystick) -- [Keyboard](https://en.wikipedia.org/wiki/Computer_keyboard) <=> [Package](https://github.com/hybridgroup/gobot/tree/master/platforms/keyboard) -- [Leap Motion](https://www.leapmotion.com/) <=> [Package](https://github.com/hybridgroup/gobot/tree/master/platforms/leapmotion) -- [MavLink](http://qgroundcontrol.org/mavlink/start) <=> [Package](https://github.com/hybridgroup/gobot/tree/master/platforms/mavlink) -- [MegaPi](http://www.makeblock.com/megapi) <=> [Package](https://github.com/hybridgroup/gobot/tree/master/platforms/megapi) -- [MQTT](http://mqtt.org/) <=> [Package](https://github.com/hybridgroup/gobot/tree/master/platforms/mqtt) -- [NATS](http://nats.io/) <=> [Package](https://github.com/hybridgroup/gobot/tree/master/platforms/nats) -- [Neurosky](http://neurosky.com/products-markets/eeg-biosensors/hardware/) <=> [Package](https://github.com/hybridgroup/gobot/tree/master/platforms/neurosky) -- [OpenCV](http://opencv.org/) <=> [Package](https://github.com/hybridgroup/gobot/tree/master/platforms/opencv) -- [Particle](https://www.particle.io/) <=> [Package](https://github.com/hybridgroup/gobot/tree/master/platforms/particle) -- [Parrot ARDrone 2.0](http://ardrone2.parrot.com/) <=> [Package](https://github.com/hybridgroup/gobot/tree/master/platforms/parrot/ardrone) -- [Parrot Bebop](http://www.parrot.com/usa/products/bebop-drone/) <=> [Package](https://github.com/hybridgroup/gobot/tree/master/platforms/parrot/bebop) -- [Parrot Minidrone](https://www.parrot.com/us/minidrones) <=> [Package](https://github.com/hybridgroup/gobot/tree/master/platforms/parrot/minidrone) -- [Pebble](https://www.getpebble.com/) <=> [Package](https://github.com/hybridgroup/gobot/tree/master/platforms/pebble) -- [Raspberry Pi](http://www.raspberrypi.org/) <=> [Package](https://github.com/hybridgroup/gobot/tree/master/platforms/raspi) -- [Sphero](http://www.gosphero.com/) <=> [Package](https://github.com/hybridgroup/gobot/tree/master/platforms/sphero) -- [Sphero Ollie](http://www.gosphero.com/) <=> [Package](https://github.com/hybridgroup/gobot/tree/master/platforms/sphero/ollie) +- [Arduino](http://www.arduino.cc/) <=> [Package](https://gobot.io/x/gobot/tree/master/platforms/firmata) +- Audio <=> [Package](https://gobot.io/x/gobot/tree/master/platforms/audio) +- [Beaglebone Black](http://beagleboard.org/Products/BeagleBone+Black/) <=> [Package](https://gobot.io/x/gobot/tree/master/platforms/beaglebone) +- [Bluetooth LE](https://www.bluetooth.com/what-is-bluetooth-technology/bluetooth-technology-basics/low-energy) <=> [Package](https://gobot.io/x/gobot/tree/master/platforms/ble) +- [C.H.I.P](http://www.nextthing.co/pages/chip) <=> [Package](https://gobot.io/x/gobot/tree/master/platforms/chip) +- [Digispark](http://digistump.com/products/1) <=> [Package](https://gobot.io/x/gobot/tree/master/platforms/digispark) +- [Intel Edison](http://www.intel.com/content/www/us/en/do-it-yourself/edison.html) <=> [Package](https://gobot.io/x/gobot/tree/master/platforms/intel-iot/edison) +- [Intel Joule](http://intel.com/joule/getstarted) <=> [Package](https://gobot.io/x/gobot/tree/master/platforms/intel-iot/joule) +- [Joystick](http://en.wikipedia.org/wiki/Joystick) <=> [Package](https://gobot.io/x/gobot/tree/master/platforms/joystick) +- [Keyboard](https://en.wikipedia.org/wiki/Computer_keyboard) <=> [Package](https://gobot.io/x/gobot/tree/master/platforms/keyboard) +- [Leap Motion](https://www.leapmotion.com/) <=> [Package](https://gobot.io/x/gobot/tree/master/platforms/leapmotion) +- [MavLink](http://qgroundcontrol.org/mavlink/start) <=> [Package](https://gobot.io/x/gobot/tree/master/platforms/mavlink) +- [MegaPi](http://www.makeblock.com/megapi) <=> [Package](https://gobot.io/x/gobot/tree/master/platforms/megapi) +- [MQTT](http://mqtt.org/) <=> [Package](https://gobot.io/x/gobot/tree/master/platforms/mqtt) +- [NATS](http://nats.io/) <=> [Package](https://gobot.io/x/gobot/tree/master/platforms/nats) +- [Neurosky](http://neurosky.com/products-markets/eeg-biosensors/hardware/) <=> [Package](https://gobot.io/x/gobot/tree/master/platforms/neurosky) +- [OpenCV](http://opencv.org/) <=> [Package](https://gobot.io/x/gobot/tree/master/platforms/opencv) +- [Particle](https://www.particle.io/) <=> [Package](https://gobot.io/x/gobot/tree/master/platforms/particle) +- [Parrot ARDrone 2.0](http://ardrone2.parrot.com/) <=> [Package](https://gobot.io/x/gobot/tree/master/platforms/parrot/ardrone) +- [Parrot Bebop](http://www.parrot.com/usa/products/bebop-drone/) <=> [Package](https://gobot.io/x/gobot/tree/master/platforms/parrot/bebop) +- [Parrot Minidrone](https://www.parrot.com/us/minidrones) <=> [Package](https://gobot.io/x/gobot/tree/master/platforms/parrot/minidrone) +- [Pebble](https://www.getpebble.com/) <=> [Package](https://gobot.io/x/gobot/tree/master/platforms/pebble) +- [Raspberry Pi](http://www.raspberrypi.org/) <=> [Package](https://gobot.io/x/gobot/tree/master/platforms/raspi) +- [Sphero](http://www.gosphero.com/) <=> [Package](https://gobot.io/x/gobot/tree/master/platforms/sphero) +- [Sphero Ollie](http://www.gosphero.com/) <=> [Package](https://gobot.io/x/gobot/tree/master/platforms/sphero/ollie) Support for many devices that use General Purpose Input/Output (GPIO) have a shared set of drivers provided using the `gobot/drivers/gpio` package: -- [GPIO](https://en.wikipedia.org/wiki/General_Purpose_Input/Output) <=> [Drivers](https://github.com/hybridgroup/gobot/tree/master/drivers/gpio) +- [GPIO](https://en.wikipedia.org/wiki/General_Purpose_Input/Output) <=> [Drivers](https://gobot.io/x/gobot/tree/master/drivers/gpio) - Analog Sensor - Button - Buzzer @@ -238,7 +238,7 @@ a shared set of drivers provided using the `gobot/drivers/gpio` package: Support for devices that use Inter-Integrated Circuit (I2C) have a shared set of drivers provided using the `gobot/drivers/i2c` package: -- [I2C](https://en.wikipedia.org/wiki/I%C2%B2C) <=> [Drivers](https://github.com/hybridgroup/gobot/tree/master/drivers/i2c) +- [I2C](https://en.wikipedia.org/wiki/I%C2%B2C) <=> [Drivers](https://gobot.io/x/gobot/tree/master/drivers/i2c) - Adafruit Motor Hat - BlinkM - Grove Digital Accelerometer @@ -258,7 +258,7 @@ More platforms and drivers are coming soon... Gobot includes a RESTful API to query the status of any robot running within a group, including the connection and device status, and execute device commands. -To activate the API, require the `github.com/hybridgroup/gobot/api` package and instantiate the `API` like this: +To activate the API, require the `gobot.io/x/gobot/api` package and instantiate the `API` like this: ```go master := gobot.NewMaster() @@ -274,13 +274,13 @@ You can also specify the api host and port, and turn on authentication: server.Start() ``` -You may access the [robeaux](https://github.com/hybridgroup/robeaux) React.js interface with Gobot by navigating to `http://localhost:3000/index.html`. +You may access the [robeaux](https://gobot.io/x/robeaux) React.js interface with Gobot by navigating to `http://localhost:3000/index.html`. ## CLI Gobot uses the Gort [http://gort.io](http://gort.io) Command Line Interface (CLI) so you can access important features right from the command line. We call it "RobotOps", aka "DevOps For Robotics". You can scan, connect, update device firmware, and more! -Gobot also has its own CLI to generate new platforms, adaptors, and drivers. You can check it out at [https://github.com/hybridgroup/gobot/cli](https://github.com/hybridgroup/gobot/cli). +Gobot also has its own CLI to generate new platforms, adaptors, and drivers. You can check it out at [https://gobot.io/x/gobot/cli](https://gobot.io/x/gobot/cli). ## Documentation We're busy adding documentation to our web site at http://gobot.io/ please check there as we continue to work on Gobot @@ -290,12 +290,12 @@ Thank you! ## Need help? * Join our mailing list: https://groups.google.com/forum/#!forum/gobotio * IRC: `#gobotio @ irc.freenode.net` -* Issues: https://github.com/hybridgroup/gobot/issues +* Issues: https://gobot.io/x/gobot/issues * twitter: [@gobotio](https://twitter.com/gobotio) ## Contributing -For our contribution guidelines, please go to [https://github.com/hybridgroup/gobot/blob/master/CONTRIBUTING.md -](https://github.com/hybridgroup/gobot/blob/master/CONTRIBUTING.md +For our contribution guidelines, please go to [https://gobot.io/x/gobot/blob/master/CONTRIBUTING.md +](https://gobot.io/x/gobot/blob/master/CONTRIBUTING.md ). ## License diff --git a/api/api.go b/api/api.go index fbe5f277a..e8b81e236 100644 --- a/api/api.go +++ b/api/api.go @@ -10,8 +10,8 @@ import ( "strings" "github.com/bmizerany/pat" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/api/robeaux" + "gobot.io/x/gobot" + "gobot.io/x/gobot/api/robeaux" ) // API represents an API server diff --git a/api/api_test.go b/api/api_test.go index 6b6af8aaa..4be30fd15 100644 --- a/api/api_test.go +++ b/api/api_test.go @@ -11,8 +11,8 @@ import ( "testing" "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/gobottest" + "gobot.io/x/gobot" + "gobot.io/x/gobot/gobottest" ) func initTestAPI() *API { diff --git a/api/basic_auth_test.go b/api/basic_auth_test.go index a7a844784..9d25782c7 100644 --- a/api/basic_auth_test.go +++ b/api/basic_auth_test.go @@ -5,7 +5,7 @@ import ( "net/http/httptest" "testing" - "github.com/hybridgroup/gobot/gobottest" + "gobot.io/x/gobot/gobottest" ) func TestBasicAuth(t *testing.T) { diff --git a/api/cors_test.go b/api/cors_test.go index e58070f8d..9720da20b 100644 --- a/api/cors_test.go +++ b/api/cors_test.go @@ -5,7 +5,7 @@ import ( "net/http/httptest" "testing" - "github.com/hybridgroup/gobot/gobottest" + "gobot.io/x/gobot/gobottest" ) func TestCORSIsOriginAllowed(t *testing.T) { diff --git a/api/doc.go b/api/doc.go index 001529a28..3bea8daed 100644 --- a/api/doc.go +++ b/api/doc.go @@ -8,8 +8,8 @@ Example: import ( "fmt" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/api" + "gobot.io/x/gobot" + "gobot.io/x/gobot/api" ) func main() { @@ -34,6 +34,6 @@ Example: } It follows Common Protocol for Programming Physical Input and Output (CPPP-IO) spec: -https://github.com/hybridgroup/cppp-io +https://gobot.io/x/cppp-io */ package api diff --git a/api/helpers_test.go b/api/helpers_test.go index 859f95f28..15fdd7547 100644 --- a/api/helpers_test.go +++ b/api/helpers_test.go @@ -3,7 +3,7 @@ package api import ( "fmt" - "github.com/hybridgroup/gobot" + "gobot.io/x/gobot" ) type NullReadWriteCloser struct{} diff --git a/ci/travis.sh b/ci/travis.sh index 9358210b1..dfbab4cdd 100755 --- a/ci/travis.sh +++ b/ci/travis.sh @@ -6,7 +6,7 @@ echo "mode: set" > profile.cov touch tmp.cov for package in "${PACKAGES[@]}" do - go test -a -coverprofile=tmp.cov github.com/hybridgroup/$package + go test -a -coverprofile=tmp.cov gobot.io/x/$package if [ $? -ne 0 ] then EXITCODE=1 diff --git a/cli/generate.go b/cli/generate.go index 947563205..1f4b990e4 100644 --- a/cli/generate.go +++ b/cli/generate.go @@ -189,7 +189,7 @@ func driver() string { import ( "time" - "github.com/hybridgroup/gobot" + "gobot.io/x/gobot" ) const Hello string = "hello" @@ -274,7 +274,7 @@ import ( "fmt" "time" - "github.com/hybridgroup/gobot" + "gobot.io/x/gobot" ) func main() { @@ -313,8 +313,8 @@ import ( "testing" "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/gobottest" + "gobot.io/x/gobot" + "gobot.io/x/gobot/gobottest" ) var _ gobot.Driver = (*{{.UpperName}}Driver)(nil) @@ -368,8 +368,8 @@ func adaptorTest() string { import ( "testing" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/gobottest" + "gobot.io/x/gobot" + "gobot.io/x/gobot/gobottest" ) var _ gobot.Adaptor = (*{{.UpperName}}Adaptor)(nil) @@ -398,7 +398,7 @@ Gobot (http://gobot.io/) is a framework for robotics and physical computing usin This repository contains the Gobot adaptor and driver for {{.Package}}. For more information about Gobot, check out the github repo at -https://github.com/hybridgroup/gobot +https://gobot.io/x/gobot ## Installing ` + "```bash\ngo get path/to/repo/{{.Package}}\n```" + ` diff --git a/cli/main.go b/cli/main.go index 54a65ad0d..cd3875ded 100644 --- a/cli/main.go +++ b/cli/main.go @@ -4,14 +4,14 @@ import ( "os" "github.com/codegangsta/cli" - "github.com/hybridgroup/gobot" + "gobot.io/x/gobot" ) func main() { app := cli.NewApp() app.Name = "gobot" app.Author = "The Gobot team" - app.Email = "https://github.com/hybridgroup/gobot" + app.Email = "https://gobot.io/x/gobot" app.Version = gobot.Version() app.Usage = "Command Line Utility for generating new Gobot adaptors, drivers, and platforms" app.Commands = []cli.Command{ diff --git a/commander_test.go b/commander_test.go index 004cbdae2..ab5e07ff4 100644 --- a/commander_test.go +++ b/commander_test.go @@ -3,7 +3,7 @@ package gobot import ( "testing" - "github.com/hybridgroup/gobot/gobottest" + "gobot.io/x/gobot/gobottest" ) func TestCommaner(t *testing.T) { diff --git a/doc.go b/doc.go index 6467730af..65c72d4a3 100644 --- a/doc.go +++ b/doc.go @@ -1,4 +1,4 @@ -// Copyright 2014 The Gobot Authors, HybridGroup. All rights reserved. +// Copyright 2014-2016 The Hybrid Group. All rights reserved. /* Package gobot provides a framework for robotics, physical computing and the internet of things. @@ -13,7 +13,7 @@ Basic Setup "fmt" "time" - "github.com/hybridgroup/gobot" + "gobot.io/x/gobot" ) func main() { @@ -33,9 +33,9 @@ Blinking an LED (Hello Eve!) import ( "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/drivers/gpio" - "github.com/hybridgroup/gobot/platforms/firmata" + "gobot.io/x/gobot" + "gobot.io/x/gobot/drivers/gpio" + "gobot.io/x/gobot/platforms/firmata" ) func main() { @@ -68,8 +68,8 @@ web service. import ( "fmt" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/api" + "gobot.io/x/gobot" + "gobot.io/x/gobot/api" ) func main() { @@ -94,4 +94,4 @@ web service. } */ -package gobot +package gobot // import "gobot.io/x/gobot" diff --git a/drivers/gpio/README.md b/drivers/gpio/README.md index 5c8af3939..e8fb3268b 100644 --- a/drivers/gpio/README.md +++ b/drivers/gpio/README.md @@ -1,12 +1,12 @@ # GPIO -This package provides drivers for [General Purpose Input/Output (GPIO)](https://en.wikipedia.org/wiki/General_Purpose_Input/Output) devices. It is normally used by connecting an adaptor such as [firmata](https://github.com/hybridgroup/gobot/platforms/firmata) that supports the needed interfaces for GPIO devices. +This package provides drivers for [General Purpose Input/Output (GPIO)](https://en.wikipedia.org/wiki/General_Purpose_Input/Output) devices. It is normally used by connecting an adaptor such as [firmata](https://gobot.io/x/gobot/platforms/firmata) that supports the needed interfaces for GPIO devices. ## Getting Started ## Installing ``` -go get -d -u github.com/hybridgroup/gobot/... +go get -d -u gobot.io/x/gobot/... ``` ## Hardware Support diff --git a/drivers/gpio/analog_sensor_driver.go b/drivers/gpio/analog_sensor_driver.go index a2df8c5e4..5b0fc4837 100644 --- a/drivers/gpio/analog_sensor_driver.go +++ b/drivers/gpio/analog_sensor_driver.go @@ -3,7 +3,7 @@ package gpio import ( "time" - "github.com/hybridgroup/gobot" + "gobot.io/x/gobot" ) // AnalogSensorDriver represents an Analog Sensor diff --git a/drivers/gpio/analog_sensor_driver_test.go b/drivers/gpio/analog_sensor_driver_test.go index 13dab74cf..87681617b 100644 --- a/drivers/gpio/analog_sensor_driver_test.go +++ b/drivers/gpio/analog_sensor_driver_test.go @@ -5,8 +5,8 @@ import ( "testing" "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/gobottest" + "gobot.io/x/gobot" + "gobot.io/x/gobot/gobottest" ) var _ gobot.Driver = (*AnalogSensorDriver)(nil) diff --git a/drivers/gpio/button_driver.go b/drivers/gpio/button_driver.go index 9f4c8a1e8..8566b32d1 100644 --- a/drivers/gpio/button_driver.go +++ b/drivers/gpio/button_driver.go @@ -3,7 +3,7 @@ package gpio import ( "time" - "github.com/hybridgroup/gobot" + "gobot.io/x/gobot" ) // ButtonDriver Represents a digital Button diff --git a/drivers/gpio/button_driver_test.go b/drivers/gpio/button_driver_test.go index a124ce3d0..c5d7c5684 100644 --- a/drivers/gpio/button_driver_test.go +++ b/drivers/gpio/button_driver_test.go @@ -5,8 +5,8 @@ import ( "testing" "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/gobottest" + "gobot.io/x/gobot" + "gobot.io/x/gobot/gobottest" ) var _ gobot.Driver = (*ButtonDriver)(nil) diff --git a/drivers/gpio/buzzer_driver.go b/drivers/gpio/buzzer_driver.go index e4bb3cbce..b3543164e 100644 --- a/drivers/gpio/buzzer_driver.go +++ b/drivers/gpio/buzzer_driver.go @@ -3,7 +3,7 @@ package gpio import ( "time" - "github.com/hybridgroup/gobot" + "gobot.io/x/gobot" ) const ( diff --git a/drivers/gpio/direct_pin_driver.go b/drivers/gpio/direct_pin_driver.go index c80b8520a..9a009ec0e 100644 --- a/drivers/gpio/direct_pin_driver.go +++ b/drivers/gpio/direct_pin_driver.go @@ -3,7 +3,7 @@ package gpio import ( "strconv" - "github.com/hybridgroup/gobot" + "gobot.io/x/gobot" ) // DirectPinDriver represents a GPIO pin diff --git a/drivers/gpio/direct_pin_driver_test.go b/drivers/gpio/direct_pin_driver_test.go index 62138d87e..b8ab9583b 100644 --- a/drivers/gpio/direct_pin_driver_test.go +++ b/drivers/gpio/direct_pin_driver_test.go @@ -4,8 +4,8 @@ import ( "errors" "testing" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/gobottest" + "gobot.io/x/gobot" + "gobot.io/x/gobot/gobottest" ) var _ gobot.Driver = (*DirectPinDriver)(nil) diff --git a/drivers/gpio/doc.go b/drivers/gpio/doc.go index 4190b7272..441c9ed8c 100644 --- a/drivers/gpio/doc.go +++ b/drivers/gpio/doc.go @@ -3,9 +3,9 @@ Package gpio provides Gobot drivers for General Purpose Input/Output devices. Installing: - go get -d -u github.com/hybridgroup/gobot/... && go install github.com/hybridgroup/gobot/platforms/gpio + go get -d -u gobot.io/x/gobot/... && go install gobot.io/x/gobot/platforms/gpio For further information refer to gpio README: -https://github.com/hybridgroup/gobot/blob/master/platforms/gpio/README.md +https://gobot.io/x/gobot/blob/master/platforms/gpio/README.md */ package gpio diff --git a/drivers/gpio/gpio.go b/drivers/gpio/gpio.go index 03c739b4d..b9e5e4bde 100644 --- a/drivers/gpio/gpio.go +++ b/drivers/gpio/gpio.go @@ -3,7 +3,7 @@ package gpio import ( "errors" - "github.com/hybridgroup/gobot" + "gobot.io/x/gobot" ) var ( diff --git a/drivers/gpio/grove_drivers_test.go b/drivers/gpio/grove_drivers_test.go index 1bafc61d8..2ee418f9a 100644 --- a/drivers/gpio/grove_drivers_test.go +++ b/drivers/gpio/grove_drivers_test.go @@ -7,8 +7,8 @@ import ( "testing" "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/gobottest" + "gobot.io/x/gobot" + "gobot.io/x/gobot/gobottest" ) type DriverAndPinner interface { diff --git a/drivers/gpio/grove_temperature_sensor_driver.go b/drivers/gpio/grove_temperature_sensor_driver.go index ddcfa7282..d682b3158 100644 --- a/drivers/gpio/grove_temperature_sensor_driver.go +++ b/drivers/gpio/grove_temperature_sensor_driver.go @@ -4,7 +4,7 @@ import ( "math" "time" - "github.com/hybridgroup/gobot" + "gobot.io/x/gobot" ) var _ gobot.Driver = (*GroveTemperatureSensorDriver)(nil) diff --git a/drivers/gpio/grove_temperature_sensor_driver_test.go b/drivers/gpio/grove_temperature_sensor_driver_test.go index 95beae924..5b0644e43 100644 --- a/drivers/gpio/grove_temperature_sensor_driver_test.go +++ b/drivers/gpio/grove_temperature_sensor_driver_test.go @@ -6,8 +6,8 @@ import ( "testing" "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/gobottest" + "gobot.io/x/gobot" + "gobot.io/x/gobot/gobottest" ) var _ gobot.Driver = (*GroveTemperatureSensorDriver)(nil) diff --git a/drivers/gpio/led_driver.go b/drivers/gpio/led_driver.go index 9d261bc10..906a520b8 100644 --- a/drivers/gpio/led_driver.go +++ b/drivers/gpio/led_driver.go @@ -1,6 +1,6 @@ package gpio -import "github.com/hybridgroup/gobot" +import "gobot.io/x/gobot" var _ gobot.Driver = (*LedDriver)(nil) diff --git a/drivers/gpio/led_driver_test.go b/drivers/gpio/led_driver_test.go index 83885a203..b6ab17c40 100644 --- a/drivers/gpio/led_driver_test.go +++ b/drivers/gpio/led_driver_test.go @@ -4,7 +4,7 @@ import ( "errors" "testing" - "github.com/hybridgroup/gobot/gobottest" + "gobot.io/x/gobot/gobottest" ) func initTestLedDriver(conn DigitalWriter) *LedDriver { diff --git a/drivers/gpio/makey_button_driver.go b/drivers/gpio/makey_button_driver.go index a688a559a..a6b564e96 100644 --- a/drivers/gpio/makey_button_driver.go +++ b/drivers/gpio/makey_button_driver.go @@ -3,7 +3,7 @@ package gpio import ( "time" - "github.com/hybridgroup/gobot" + "gobot.io/x/gobot" ) // MakeyButtonDriver Represents a Makey Button diff --git a/drivers/gpio/makey_button_driver_test.go b/drivers/gpio/makey_button_driver_test.go index f976c7413..4cf86bc08 100644 --- a/drivers/gpio/makey_button_driver_test.go +++ b/drivers/gpio/makey_button_driver_test.go @@ -5,8 +5,8 @@ import ( "testing" "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/gobottest" + "gobot.io/x/gobot" + "gobot.io/x/gobot/gobottest" ) var _ gobot.Driver = (*MakeyButtonDriver)(nil) diff --git a/drivers/gpio/motor_driver.go b/drivers/gpio/motor_driver.go index 39496b26d..170dc71aa 100644 --- a/drivers/gpio/motor_driver.go +++ b/drivers/gpio/motor_driver.go @@ -1,7 +1,7 @@ package gpio import ( - "github.com/hybridgroup/gobot" + "gobot.io/x/gobot" ) // MotorDriver Represents a Motor diff --git a/drivers/gpio/motor_driver_test.go b/drivers/gpio/motor_driver_test.go index c6b9bb7cd..44781064a 100644 --- a/drivers/gpio/motor_driver_test.go +++ b/drivers/gpio/motor_driver_test.go @@ -3,8 +3,8 @@ package gpio import ( "testing" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/gobottest" + "gobot.io/x/gobot" + "gobot.io/x/gobot/gobottest" ) var _ gobot.Driver = (*MotorDriver)(nil) diff --git a/drivers/gpio/pir_motion_driver.go b/drivers/gpio/pir_motion_driver.go index 7d929cb31..eab9c535b 100644 --- a/drivers/gpio/pir_motion_driver.go +++ b/drivers/gpio/pir_motion_driver.go @@ -3,7 +3,7 @@ package gpio import ( "time" - "github.com/hybridgroup/gobot" + "gobot.io/x/gobot" ) // PIRMotionDriver represents a digital Proximity Infra Red (PIR) motion detecter diff --git a/drivers/gpio/pir_motion_driver_test.go b/drivers/gpio/pir_motion_driver_test.go index 49f3b97e6..2ed3701b2 100644 --- a/drivers/gpio/pir_motion_driver_test.go +++ b/drivers/gpio/pir_motion_driver_test.go @@ -5,8 +5,8 @@ import ( "testing" "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/gobottest" + "gobot.io/x/gobot" + "gobot.io/x/gobot/gobottest" ) var _ gobot.Driver = (*PIRMotionDriver)(nil) diff --git a/drivers/gpio/relay_driver.go b/drivers/gpio/relay_driver.go index 261ffc766..0774e6ea4 100644 --- a/drivers/gpio/relay_driver.go +++ b/drivers/gpio/relay_driver.go @@ -1,6 +1,6 @@ package gpio -import "github.com/hybridgroup/gobot" +import "gobot.io/x/gobot" // RelayDriver represents a digital relay type RelayDriver struct { diff --git a/drivers/gpio/relay_driver_test.go b/drivers/gpio/relay_driver_test.go index 996c7917f..8151a131c 100644 --- a/drivers/gpio/relay_driver_test.go +++ b/drivers/gpio/relay_driver_test.go @@ -1,5 +1,5 @@ package gpio -import "github.com/hybridgroup/gobot" +import "gobot.io/x/gobot" var _ gobot.Driver = (*RelayDriver)(nil) diff --git a/drivers/gpio/rgb_led_driver.go b/drivers/gpio/rgb_led_driver.go index a57828865..46c67baca 100644 --- a/drivers/gpio/rgb_led_driver.go +++ b/drivers/gpio/rgb_led_driver.go @@ -1,6 +1,6 @@ package gpio -import "github.com/hybridgroup/gobot" +import "gobot.io/x/gobot" // RgbLedDriver represents a digital RGB Led type RgbLedDriver struct { diff --git a/drivers/gpio/rgb_led_driver_test.go b/drivers/gpio/rgb_led_driver_test.go index ce0d46ed5..2ee7e9ea8 100644 --- a/drivers/gpio/rgb_led_driver_test.go +++ b/drivers/gpio/rgb_led_driver_test.go @@ -4,8 +4,8 @@ import ( "errors" "testing" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/gobottest" + "gobot.io/x/gobot" + "gobot.io/x/gobot/gobottest" ) var _ gobot.Driver = (*RgbLedDriver)(nil) diff --git a/drivers/gpio/servo_driver.go b/drivers/gpio/servo_driver.go index d5d8031b6..d97b2e617 100644 --- a/drivers/gpio/servo_driver.go +++ b/drivers/gpio/servo_driver.go @@ -1,6 +1,6 @@ package gpio -import "github.com/hybridgroup/gobot" +import "gobot.io/x/gobot" // ServoDriver Represents a Servo type ServoDriver struct { diff --git a/drivers/gpio/servo_driver_test.go b/drivers/gpio/servo_driver_test.go index 99aa17e5c..fffc6d7aa 100644 --- a/drivers/gpio/servo_driver_test.go +++ b/drivers/gpio/servo_driver_test.go @@ -4,8 +4,8 @@ import ( "errors" "testing" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/gobottest" + "gobot.io/x/gobot" + "gobot.io/x/gobot/gobottest" ) var _ gobot.Driver = (*ServoDriver)(nil) diff --git a/drivers/i2c/README.md b/drivers/i2c/README.md index 76742b164..5fa66d3f5 100644 --- a/drivers/i2c/README.md +++ b/drivers/i2c/README.md @@ -1,12 +1,12 @@ # I2C -This package provides drivers for [i2c](https://en.wikipedia.org/wiki/I%C2%B2C)devices. It must be used along with an adaptor such as [firmata](https://github.com/hybridgroup/gobot/platforms/firmata) that supports the needed interfaces for i2c devices. +This package provides drivers for [i2c](https://en.wikipedia.org/wiki/I%C2%B2C)devices. It must be used along with an adaptor such as [firmata](https://gobot.io/x/gobot/platforms/firmata) that supports the needed interfaces for i2c devices. ## Getting Started ## Installing ``` -go get -d -u github.com/hybridgroup/gobot/... && go install github.com/hybridgroup/gobot/platforms/i2c +go get -d -u gobot.io/x/gobot/... && go install gobot.io/x/gobot/platforms/i2c ``` ## Hardware Support diff --git a/drivers/i2c/adafruit_driver.go b/drivers/i2c/adafruit_driver.go index e16ed19bc..c8ee98df0 100644 --- a/drivers/i2c/adafruit_driver.go +++ b/drivers/i2c/adafruit_driver.go @@ -5,7 +5,7 @@ import ( "math" "time" - "github.com/hybridgroup/gobot" + "gobot.io/x/gobot" ) var adafruitDebug = false // Set this to true to see debug output diff --git a/drivers/i2c/adafruit_driver_test.go b/drivers/i2c/adafruit_driver_test.go index ed8bcdf00..6458e0c5c 100644 --- a/drivers/i2c/adafruit_driver_test.go +++ b/drivers/i2c/adafruit_driver_test.go @@ -4,8 +4,8 @@ import ( "errors" "testing" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/gobottest" + "gobot.io/x/gobot" + "gobot.io/x/gobot/gobottest" ) var _ gobot.Driver = (*AdafruitMotorHatDriver)(nil) diff --git a/drivers/i2c/blinkm_driver.go b/drivers/i2c/blinkm_driver.go index 129b3db9a..20737d7d2 100644 --- a/drivers/i2c/blinkm_driver.go +++ b/drivers/i2c/blinkm_driver.go @@ -3,7 +3,7 @@ package i2c import ( "fmt" - "github.com/hybridgroup/gobot" + "gobot.io/x/gobot" ) var _ gobot.Driver = (*BlinkMDriver)(nil) diff --git a/drivers/i2c/blinkm_driver_test.go b/drivers/i2c/blinkm_driver_test.go index 75ec5aa1a..a3b0c03a4 100644 --- a/drivers/i2c/blinkm_driver_test.go +++ b/drivers/i2c/blinkm_driver_test.go @@ -4,7 +4,7 @@ import ( "errors" "testing" - "github.com/hybridgroup/gobot/gobottest" + "gobot.io/x/gobot/gobottest" ) // --------- HELPERS diff --git a/drivers/i2c/doc.go b/drivers/i2c/doc.go index a65cdc7d6..8d2987a44 100644 --- a/drivers/i2c/doc.go +++ b/drivers/i2c/doc.go @@ -3,9 +3,9 @@ Package i2c provides Gobot drivers for i2c devices. Installing: - go get github.com/hybridgroup/gobot/platforms/i2c + go get gobot.io/x/gobot/platforms/i2c For further information refer to i2c README: -https://github.com/hybridgroup/gobot/blob/master/platforms/i2c/README.md +https://gobot.io/x/gobot/blob/master/platforms/i2c/README.md */ package i2c diff --git a/drivers/i2c/grove_drivers.go b/drivers/i2c/grove_drivers.go index fcdc5662f..b2701c44d 100644 --- a/drivers/i2c/grove_drivers.go +++ b/drivers/i2c/grove_drivers.go @@ -1,6 +1,6 @@ package i2c -import "github.com/hybridgroup/gobot" +import "gobot.io/x/gobot" var _ gobot.Driver = (*GroveLcdDriver)(nil) var _ gobot.Driver = (*GroveAccelerometerDriver)(nil) diff --git a/drivers/i2c/hmc6352_driver.go b/drivers/i2c/hmc6352_driver.go index 1b1f512dc..ef92b0469 100644 --- a/drivers/i2c/hmc6352_driver.go +++ b/drivers/i2c/hmc6352_driver.go @@ -1,6 +1,6 @@ package i2c -import "github.com/hybridgroup/gobot" +import "gobot.io/x/gobot" var _ gobot.Driver = (*HMC6352Driver)(nil) diff --git a/drivers/i2c/hmc6352_driver_test.go b/drivers/i2c/hmc6352_driver_test.go index 212e654ea..82c24b262 100644 --- a/drivers/i2c/hmc6352_driver_test.go +++ b/drivers/i2c/hmc6352_driver_test.go @@ -4,7 +4,7 @@ import ( "errors" "testing" - "github.com/hybridgroup/gobot/gobottest" + "gobot.io/x/gobot/gobottest" ) // --------- HELPERS diff --git a/drivers/i2c/i2c.go b/drivers/i2c/i2c.go index 02697dbca..680bb569c 100644 --- a/drivers/i2c/i2c.go +++ b/drivers/i2c/i2c.go @@ -3,7 +3,7 @@ package i2c import ( "errors" - "github.com/hybridgroup/gobot" + "gobot.io/x/gobot" ) var ( diff --git a/drivers/i2c/jhd1313m1_driver.go b/drivers/i2c/jhd1313m1_driver.go index 0b180d304..835f3a1fa 100644 --- a/drivers/i2c/jhd1313m1_driver.go +++ b/drivers/i2c/jhd1313m1_driver.go @@ -4,7 +4,7 @@ import ( "fmt" "time" - "github.com/hybridgroup/gobot" + "gobot.io/x/gobot" ) const ( diff --git a/drivers/i2c/lidarlite_driver.go b/drivers/i2c/lidarlite_driver.go index 377e820a3..d0403bd56 100644 --- a/drivers/i2c/lidarlite_driver.go +++ b/drivers/i2c/lidarlite_driver.go @@ -1,7 +1,7 @@ package i2c import ( - "github.com/hybridgroup/gobot" + "gobot.io/x/gobot" "time" ) diff --git a/drivers/i2c/lidarlite_driver_test.go b/drivers/i2c/lidarlite_driver_test.go index 7ab38dfb6..8fff4ee62 100644 --- a/drivers/i2c/lidarlite_driver_test.go +++ b/drivers/i2c/lidarlite_driver_test.go @@ -4,7 +4,7 @@ import ( "errors" "testing" - "github.com/hybridgroup/gobot/gobottest" + "gobot.io/x/gobot/gobottest" ) // --------- HELPERS diff --git a/drivers/i2c/mcp23017_driver.go b/drivers/i2c/mcp23017_driver.go index d6f018651..293f4def5 100644 --- a/drivers/i2c/mcp23017_driver.go +++ b/drivers/i2c/mcp23017_driver.go @@ -22,7 +22,7 @@ import ( "strings" "time" - "github.com/hybridgroup/gobot" + "gobot.io/x/gobot" ) var ( diff --git a/drivers/i2c/mcp23017_driver_test.go b/drivers/i2c/mcp23017_driver_test.go index 2436dcc46..25f5681ac 100644 --- a/drivers/i2c/mcp23017_driver_test.go +++ b/drivers/i2c/mcp23017_driver_test.go @@ -7,7 +7,7 @@ import ( "os" "testing" - "github.com/hybridgroup/gobot/gobottest" + "gobot.io/x/gobot/gobottest" ) type i2cMcpTestAdaptor struct { diff --git a/drivers/i2c/mma7660_driver.go b/drivers/i2c/mma7660_driver.go index df8a7d195..f1750eb9b 100644 --- a/drivers/i2c/mma7660_driver.go +++ b/drivers/i2c/mma7660_driver.go @@ -1,6 +1,6 @@ package i2c -import "github.com/hybridgroup/gobot" +import "gobot.io/x/gobot" var _ gobot.Driver = (*MMA7660Driver)(nil) diff --git a/drivers/i2c/mpl115a2_driver.go b/drivers/i2c/mpl115a2_driver.go index ebccfc6e5..6750c15f7 100644 --- a/drivers/i2c/mpl115a2_driver.go +++ b/drivers/i2c/mpl115a2_driver.go @@ -1,7 +1,7 @@ package i2c import ( - "github.com/hybridgroup/gobot" + "gobot.io/x/gobot" "bytes" "encoding/binary" diff --git a/drivers/i2c/mpl115a2_driver_test.go b/drivers/i2c/mpl115a2_driver_test.go index ccea24f24..e26d4a81b 100644 --- a/drivers/i2c/mpl115a2_driver_test.go +++ b/drivers/i2c/mpl115a2_driver_test.go @@ -4,7 +4,7 @@ import ( "testing" "time" - "github.com/hybridgroup/gobot/gobottest" + "gobot.io/x/gobot/gobottest" ) // --------- HELPERS diff --git a/drivers/i2c/mpu6050_driver.go b/drivers/i2c/mpu6050_driver.go index a8386c014..a9d62c4f3 100644 --- a/drivers/i2c/mpu6050_driver.go +++ b/drivers/i2c/mpu6050_driver.go @@ -5,7 +5,7 @@ import ( "encoding/binary" "time" - "github.com/hybridgroup/gobot" + "gobot.io/x/gobot" ) var _ gobot.Driver = (*MPU6050Driver)(nil) diff --git a/drivers/i2c/mpu6050_driver_test.go b/drivers/i2c/mpu6050_driver_test.go index 7dff6e942..6dc8045b0 100644 --- a/drivers/i2c/mpu6050_driver_test.go +++ b/drivers/i2c/mpu6050_driver_test.go @@ -4,7 +4,7 @@ import ( "testing" "time" - "github.com/hybridgroup/gobot/gobottest" + "gobot.io/x/gobot/gobottest" ) // --------- HELPERS diff --git a/drivers/i2c/wiichuck_driver.go b/drivers/i2c/wiichuck_driver.go index 614b651af..090a0fa8d 100644 --- a/drivers/i2c/wiichuck_driver.go +++ b/drivers/i2c/wiichuck_driver.go @@ -3,7 +3,7 @@ package i2c import ( "time" - "github.com/hybridgroup/gobot" + "gobot.io/x/gobot" ) var _ gobot.Driver = (*WiichuckDriver)(nil) diff --git a/drivers/i2c/wiichuck_driver_test.go b/drivers/i2c/wiichuck_driver_test.go index 4244b0fbd..6147c472b 100644 --- a/drivers/i2c/wiichuck_driver_test.go +++ b/drivers/i2c/wiichuck_driver_test.go @@ -4,7 +4,7 @@ import ( "testing" "time" - "github.com/hybridgroup/gobot/gobottest" + "gobot.io/x/gobot/gobottest" ) // --------- HELPERS diff --git a/examples/ardrone.go b/examples/ardrone.go index 9934c4864..a622bbfd8 100644 --- a/examples/ardrone.go +++ b/examples/ardrone.go @@ -3,8 +3,8 @@ package main import ( "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/platforms/parrot/ardrone" + "gobot.io/x/gobot" + "gobot.io/x/gobot/platforms/parrot/ardrone" ) func main() { diff --git a/examples/ardrone_face_tracking.go b/examples/ardrone_face_tracking.go index 89e43e093..d2bbf3035 100644 --- a/examples/ardrone_face_tracking.go +++ b/examples/ardrone_face_tracking.go @@ -7,9 +7,9 @@ import ( "runtime" "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/platforms/opencv" - "github.com/hybridgroup/gobot/platforms/parrot/ardrone" + "gobot.io/x/gobot" + "gobot.io/x/gobot/platforms/opencv" + "gobot.io/x/gobot/platforms/parrot/ardrone" cv "github.com/lazywei/go-opencv/opencv" ) diff --git a/examples/ardrone_ps3.go b/examples/ardrone_ps3.go index 7692b5482..6e582e777 100644 --- a/examples/ardrone_ps3.go +++ b/examples/ardrone_ps3.go @@ -4,9 +4,9 @@ import ( "math" "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/platforms/joystick" - "github.com/hybridgroup/gobot/platforms/parrot/ardrone" + "gobot.io/x/gobot" + "gobot.io/x/gobot/platforms/joystick" + "gobot.io/x/gobot/platforms/parrot/ardrone" ) type pair struct { diff --git a/examples/audio.go b/examples/audio.go index e97a86b5f..4bb9cb002 100644 --- a/examples/audio.go +++ b/examples/audio.go @@ -3,8 +3,8 @@ package main import ( "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/platforms/audio" + "gobot.io/x/gobot" + "gobot.io/x/gobot/platforms/audio" ) func main() { diff --git a/examples/batty.go b/examples/batty.go index c1e6f9ec7..90df237cf 100644 --- a/examples/batty.go +++ b/examples/batty.go @@ -4,8 +4,8 @@ import ( "fmt" "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/api" + "gobot.io/x/gobot" + "gobot.io/x/gobot/api" ) func main() { diff --git a/examples/beaglebone_basic_direct_pin.go b/examples/beaglebone_basic_direct_pin.go index 21d0d8952..6914843d4 100644 --- a/examples/beaglebone_basic_direct_pin.go +++ b/examples/beaglebone_basic_direct_pin.go @@ -1,8 +1,8 @@ package main import ( - "github.com/hybridgroup/gobot/drivers/gpio" - "github.com/hybridgroup/gobot/platforms/beaglebone" + "gobot.io/x/gobot/drivers/gpio" + "gobot.io/x/gobot/platforms/beaglebone" ) func main() { diff --git a/examples/beaglebone_blink.go b/examples/beaglebone_blink.go index da8349f9f..953839dea 100644 --- a/examples/beaglebone_blink.go +++ b/examples/beaglebone_blink.go @@ -3,9 +3,9 @@ package main import ( "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/drivers/gpio" - "github.com/hybridgroup/gobot/platforms/beaglebone" + "gobot.io/x/gobot" + "gobot.io/x/gobot/drivers/gpio" + "gobot.io/x/gobot/platforms/beaglebone" ) func main() { diff --git a/examples/beaglebone_blink_usr_led.go b/examples/beaglebone_blink_usr_led.go index 3774fc0c0..853a1ecec 100644 --- a/examples/beaglebone_blink_usr_led.go +++ b/examples/beaglebone_blink_usr_led.go @@ -3,9 +3,9 @@ package main import ( "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/drivers/gpio" - "github.com/hybridgroup/gobot/platforms/beaglebone" + "gobot.io/x/gobot" + "gobot.io/x/gobot/drivers/gpio" + "gobot.io/x/gobot/platforms/beaglebone" ) func main() { diff --git a/examples/beaglebone_blinkm.go b/examples/beaglebone_blinkm.go index 9ef803e57..8a42a1f4c 100644 --- a/examples/beaglebone_blinkm.go +++ b/examples/beaglebone_blinkm.go @@ -4,9 +4,9 @@ import ( "fmt" "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/drivers/i2c" - "github.com/hybridgroup/gobot/platforms/beaglebone" + "gobot.io/x/gobot" + "gobot.io/x/gobot/drivers/i2c" + "gobot.io/x/gobot/platforms/beaglebone" ) func main() { diff --git a/examples/beaglebone_button.go b/examples/beaglebone_button.go index 46e9670ee..52830901d 100644 --- a/examples/beaglebone_button.go +++ b/examples/beaglebone_button.go @@ -3,9 +3,9 @@ package main import ( "fmt" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/drivers/gpio" - "github.com/hybridgroup/gobot/platforms/beaglebone" + "gobot.io/x/gobot" + "gobot.io/x/gobot/drivers/gpio" + "gobot.io/x/gobot/platforms/beaglebone" ) func main() { diff --git a/examples/beaglebone_direct_pin.go b/examples/beaglebone_direct_pin.go index 804e684cd..6e1924c1c 100644 --- a/examples/beaglebone_direct_pin.go +++ b/examples/beaglebone_direct_pin.go @@ -3,9 +3,9 @@ package main import ( "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/drivers/gpio" - "github.com/hybridgroup/gobot/platforms/beaglebone" + "gobot.io/x/gobot" + "gobot.io/x/gobot/drivers/gpio" + "gobot.io/x/gobot/platforms/beaglebone" ) func main() { diff --git a/examples/beaglebone_led_brightness.go b/examples/beaglebone_led_brightness.go index 5c7813a61..2e323cb26 100644 --- a/examples/beaglebone_led_brightness.go +++ b/examples/beaglebone_led_brightness.go @@ -3,9 +3,9 @@ package main import ( "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/drivers/gpio" - "github.com/hybridgroup/gobot/platforms/beaglebone" + "gobot.io/x/gobot" + "gobot.io/x/gobot/drivers/gpio" + "gobot.io/x/gobot/platforms/beaglebone" ) func main() { diff --git a/examples/beaglebone_led_brightness_with_analog_input.go b/examples/beaglebone_led_brightness_with_analog_input.go index a77d446b7..457045590 100644 --- a/examples/beaglebone_led_brightness_with_analog_input.go +++ b/examples/beaglebone_led_brightness_with_analog_input.go @@ -3,9 +3,9 @@ package main import ( "fmt" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/drivers/gpio" - "github.com/hybridgroup/gobot/platforms/beaglebone" + "gobot.io/x/gobot" + "gobot.io/x/gobot/drivers/gpio" + "gobot.io/x/gobot/platforms/beaglebone" ) func main() { diff --git a/examples/beaglebone_makey_button.go b/examples/beaglebone_makey_button.go index dcdd45cda..cfc3f8dd2 100644 --- a/examples/beaglebone_makey_button.go +++ b/examples/beaglebone_makey_button.go @@ -3,9 +3,9 @@ package main import ( "fmt" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/drivers/gpio" - "github.com/hybridgroup/gobot/platforms/beaglebone" + "gobot.io/x/gobot" + "gobot.io/x/gobot/drivers/gpio" + "gobot.io/x/gobot/platforms/beaglebone" ) func main() { diff --git a/examples/beaglebone_servo.go b/examples/beaglebone_servo.go index 661e234ec..4682ba019 100644 --- a/examples/beaglebone_servo.go +++ b/examples/beaglebone_servo.go @@ -4,9 +4,9 @@ import ( "fmt" "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/drivers/gpio" - "github.com/hybridgroup/gobot/platforms/beaglebone" + "gobot.io/x/gobot" + "gobot.io/x/gobot/drivers/gpio" + "gobot.io/x/gobot/platforms/beaglebone" ) func main() { diff --git a/examples/bebop.go b/examples/bebop.go index e51f55634..cf89a8380 100644 --- a/examples/bebop.go +++ b/examples/bebop.go @@ -3,8 +3,8 @@ package main import ( "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/platforms/parrot/bebop" + "gobot.io/x/gobot" + "gobot.io/x/gobot/platforms/parrot/bebop" ) func main() { diff --git a/examples/bebop_ps3.go b/examples/bebop_ps3.go index 2f835d1a4..ad1baba0f 100644 --- a/examples/bebop_ps3.go +++ b/examples/bebop_ps3.go @@ -4,9 +4,9 @@ import ( "math" "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/platforms/joystick" - "github.com/hybridgroup/gobot/platforms/parrot/bebop" + "gobot.io/x/gobot" + "gobot.io/x/gobot/platforms/joystick" + "gobot.io/x/gobot/platforms/parrot/bebop" ) type pair struct { diff --git a/examples/bebop_ps3_video.go b/examples/bebop_ps3_video.go index c8efe38b1..34b62e31c 100644 --- a/examples/bebop_ps3_video.go +++ b/examples/bebop_ps3_video.go @@ -8,9 +8,9 @@ import ( "os/exec" "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/platforms/joystick" - "github.com/hybridgroup/gobot/platforms/parrot/bebop" + "gobot.io/x/gobot" + "gobot.io/x/gobot/platforms/joystick" + "gobot.io/x/gobot/platforms/parrot/bebop" ) type pair struct { diff --git a/examples/ble_battery.go b/examples/ble_battery.go index eadc9c198..b6f846e42 100644 --- a/examples/ble_battery.go +++ b/examples/ble_battery.go @@ -5,8 +5,8 @@ import ( "os" "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/platforms/ble" + "gobot.io/x/gobot" + "gobot.io/x/gobot/platforms/ble" ) func main() { diff --git a/examples/ble_device_info.go b/examples/ble_device_info.go index b293738e0..e8cd75701 100644 --- a/examples/ble_device_info.go +++ b/examples/ble_device_info.go @@ -4,8 +4,8 @@ import ( "fmt" "os" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/platforms/ble" + "gobot.io/x/gobot" + "gobot.io/x/gobot/platforms/ble" ) func main() { diff --git a/examples/chip_blink.go b/examples/chip_blink.go index 0a629178f..d603a033a 100644 --- a/examples/chip_blink.go +++ b/examples/chip_blink.go @@ -3,9 +3,9 @@ package main import ( "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/drivers/gpio" - "github.com/hybridgroup/gobot/platforms/chip" + "gobot.io/x/gobot" + "gobot.io/x/gobot/drivers/gpio" + "gobot.io/x/gobot/platforms/chip" ) func main() { diff --git a/examples/chip_button.go b/examples/chip_button.go index dad4555d8..3038cff46 100644 --- a/examples/chip_button.go +++ b/examples/chip_button.go @@ -3,9 +3,9 @@ package main import ( "fmt" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/drivers/gpio" - "github.com/hybridgroup/gobot/platforms/chip" + "gobot.io/x/gobot" + "gobot.io/x/gobot/drivers/gpio" + "gobot.io/x/gobot/platforms/chip" ) func main() { diff --git a/examples/chip_button_led.go b/examples/chip_button_led.go index 86f5b4407..94531ea77 100644 --- a/examples/chip_button_led.go +++ b/examples/chip_button_led.go @@ -1,9 +1,9 @@ package main import ( - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/drivers/gpio" - "github.com/hybridgroup/gobot/platforms/chip" + "gobot.io/x/gobot" + "gobot.io/x/gobot/drivers/gpio" + "gobot.io/x/gobot/platforms/chip" ) func main() { diff --git a/examples/chip_grove_accelerometer.go b/examples/chip_grove_accelerometer.go index d4d38c8c9..3ab10beb3 100644 --- a/examples/chip_grove_accelerometer.go +++ b/examples/chip_grove_accelerometer.go @@ -4,9 +4,9 @@ import ( "fmt" "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/drivers/i2c" - "github.com/hybridgroup/gobot/platforms/chip" + "gobot.io/x/gobot" + "gobot.io/x/gobot/drivers/i2c" + "gobot.io/x/gobot/platforms/chip" ) func main() { diff --git a/examples/chip_grove_lcd.go b/examples/chip_grove_lcd.go index 4c04aa000..456980c0c 100644 --- a/examples/chip_grove_lcd.go +++ b/examples/chip_grove_lcd.go @@ -3,9 +3,9 @@ package main import ( "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/drivers/i2c" - "github.com/hybridgroup/gobot/platforms/chip" + "gobot.io/x/gobot" + "gobot.io/x/gobot/drivers/i2c" + "gobot.io/x/gobot/platforms/chip" ) func main() { diff --git a/examples/chip_mpu6050.go b/examples/chip_mpu6050.go index 9e515b24d..f174c3099 100644 --- a/examples/chip_mpu6050.go +++ b/examples/chip_mpu6050.go @@ -4,9 +4,9 @@ import ( "fmt" "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/drivers/i2c" - "github.com/hybridgroup/gobot/platforms/chip" + "gobot.io/x/gobot" + "gobot.io/x/gobot/drivers/i2c" + "gobot.io/x/gobot/platforms/chip" ) func main() { diff --git a/examples/chip_wiichuck.go b/examples/chip_wiichuck.go index 9772a54f7..5b8f1b04c 100644 --- a/examples/chip_wiichuck.go +++ b/examples/chip_wiichuck.go @@ -3,9 +3,9 @@ package main import ( "fmt" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/drivers/i2c" - "github.com/hybridgroup/gobot/platforms/chip" + "gobot.io/x/gobot" + "gobot.io/x/gobot/drivers/i2c" + "gobot.io/x/gobot/platforms/chip" ) func main() { diff --git a/examples/digispark_api.go b/examples/digispark_api.go index 703a73165..2bc6cc563 100644 --- a/examples/digispark_api.go +++ b/examples/digispark_api.go @@ -1,10 +1,10 @@ package main import ( - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/api" - "github.com/hybridgroup/gobot/drivers/gpio" - "github.com/hybridgroup/gobot/platforms/digispark" + "gobot.io/x/gobot" + "gobot.io/x/gobot/api" + "gobot.io/x/gobot/drivers/gpio" + "gobot.io/x/gobot/platforms/digispark" ) func main() { diff --git a/examples/digispark_blink.go b/examples/digispark_blink.go index 3d3f99e4d..9ef28d70e 100644 --- a/examples/digispark_blink.go +++ b/examples/digispark_blink.go @@ -3,9 +3,9 @@ package main import ( "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/drivers/gpio" - "github.com/hybridgroup/gobot/platforms/digispark" + "gobot.io/x/gobot" + "gobot.io/x/gobot/drivers/gpio" + "gobot.io/x/gobot/platforms/digispark" ) func main() { diff --git a/examples/digispark_led_brightness.go b/examples/digispark_led_brightness.go index 6e2f81fdc..83cabbbe7 100644 --- a/examples/digispark_led_brightness.go +++ b/examples/digispark_led_brightness.go @@ -3,9 +3,9 @@ package main import ( "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/drivers/gpio" - "github.com/hybridgroup/gobot/platforms/digispark" + "gobot.io/x/gobot" + "gobot.io/x/gobot/drivers/gpio" + "gobot.io/x/gobot/platforms/digispark" ) func main() { diff --git a/examples/digispark_servo.go b/examples/digispark_servo.go index e628c237a..12311130d 100644 --- a/examples/digispark_servo.go +++ b/examples/digispark_servo.go @@ -4,9 +4,9 @@ import ( "fmt" "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/drivers/gpio" - "github.com/hybridgroup/gobot/platforms/digispark" + "gobot.io/x/gobot" + "gobot.io/x/gobot/drivers/gpio" + "gobot.io/x/gobot/platforms/digispark" ) func main() { diff --git a/examples/edison_blink.go b/examples/edison_blink.go index ec1e67e61..cdc56d5b5 100644 --- a/examples/edison_blink.go +++ b/examples/edison_blink.go @@ -3,9 +3,9 @@ package main import ( "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/drivers/gpio" - "github.com/hybridgroup/gobot/platforms/intel-iot/edison" + "gobot.io/x/gobot" + "gobot.io/x/gobot/drivers/gpio" + "gobot.io/x/gobot/platforms/intel-iot/edison" ) func main() { diff --git a/examples/edison_blink_without_all_gobot_framework.go b/examples/edison_blink_without_all_gobot_framework.go index 9ce320ff4..22e559db4 100644 --- a/examples/edison_blink_without_all_gobot_framework.go +++ b/examples/edison_blink_without_all_gobot_framework.go @@ -3,8 +3,8 @@ package main import ( "time" - "github.com/hybridgroup/gobot/drivers/gpio" - "github.com/hybridgroup/gobot/platforms/intel-iot/edison" + "gobot.io/x/gobot/drivers/gpio" + "gobot.io/x/gobot/platforms/intel-iot/edison" ) // Example of a simple led toggle without the initialization of diff --git a/examples/edison_blinkm.go b/examples/edison_blinkm.go index 483b95854..13f33d15a 100644 --- a/examples/edison_blinkm.go +++ b/examples/edison_blinkm.go @@ -4,9 +4,9 @@ import ( "fmt" "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/drivers/i2c" - "github.com/hybridgroup/gobot/platforms/intel-iot/edison" + "gobot.io/x/gobot" + "gobot.io/x/gobot/drivers/i2c" + "gobot.io/x/gobot/platforms/intel-iot/edison" ) func main() { diff --git a/examples/edison_button.go b/examples/edison_button.go index cdfff7796..219369fe6 100644 --- a/examples/edison_button.go +++ b/examples/edison_button.go @@ -1,9 +1,9 @@ package main import ( - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/drivers/gpio" - "github.com/hybridgroup/gobot/platforms/intel-iot/edison" + "gobot.io/x/gobot" + "gobot.io/x/gobot/drivers/gpio" + "gobot.io/x/gobot/platforms/intel-iot/edison" ) func main() { diff --git a/examples/edison_button_led.go b/examples/edison_button_led.go index c19facdbe..5a118a165 100644 --- a/examples/edison_button_led.go +++ b/examples/edison_button_led.go @@ -1,9 +1,9 @@ package main import ( - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/drivers/gpio" - "github.com/hybridgroup/gobot/platforms/intel-iot/edison" + "gobot.io/x/gobot" + "gobot.io/x/gobot/drivers/gpio" + "gobot.io/x/gobot/platforms/intel-iot/edison" ) func main() { diff --git a/examples/edison_button_led_api.go b/examples/edison_button_led_api.go index 896d0da51..410c7b2b2 100644 --- a/examples/edison_button_led_api.go +++ b/examples/edison_button_led_api.go @@ -1,11 +1,11 @@ package main import ( - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/drivers/gpio" - "github.com/hybridgroup/gobot/platforms/intel-iot/edison" + "gobot.io/x/gobot" + "gobot.io/x/gobot/drivers/gpio" + "gobot.io/x/gobot/platforms/intel-iot/edison" - "github.com/hybridgroup/gobot/api" + "gobot.io/x/gobot/api" ) func main() { diff --git a/examples/edison_grove_accelerometer.go b/examples/edison_grove_accelerometer.go index 71d673b15..5d69854eb 100644 --- a/examples/edison_grove_accelerometer.go +++ b/examples/edison_grove_accelerometer.go @@ -4,9 +4,9 @@ import ( "fmt" "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/drivers/i2c" - "github.com/hybridgroup/gobot/platforms/intel-iot/edison" + "gobot.io/x/gobot" + "gobot.io/x/gobot/drivers/i2c" + "gobot.io/x/gobot/platforms/intel-iot/edison" ) func main() { diff --git a/examples/edison_grove_blink.go b/examples/edison_grove_blink.go index cf7141225..ea1521929 100644 --- a/examples/edison_grove_blink.go +++ b/examples/edison_grove_blink.go @@ -3,9 +3,9 @@ package main import ( "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/drivers/gpio" - "github.com/hybridgroup/gobot/platforms/intel-iot/edison" + "gobot.io/x/gobot" + "gobot.io/x/gobot/drivers/gpio" + "gobot.io/x/gobot/platforms/intel-iot/edison" ) func main() { diff --git a/examples/edison_grove_button.go b/examples/edison_grove_button.go index 04d95e425..1de211d9c 100644 --- a/examples/edison_grove_button.go +++ b/examples/edison_grove_button.go @@ -3,9 +3,9 @@ package main import ( "fmt" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/drivers/gpio" - "github.com/hybridgroup/gobot/platforms/intel-iot/edison" + "gobot.io/x/gobot" + "gobot.io/x/gobot/drivers/gpio" + "gobot.io/x/gobot/platforms/intel-iot/edison" ) func main() { diff --git a/examples/edison_grove_buzzer.go b/examples/edison_grove_buzzer.go index d58fe8b27..89a8fdd96 100644 --- a/examples/edison_grove_buzzer.go +++ b/examples/edison_grove_buzzer.go @@ -3,9 +3,9 @@ package main import ( "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/drivers/gpio" - "github.com/hybridgroup/gobot/platforms/intel-iot/edison" + "gobot.io/x/gobot" + "gobot.io/x/gobot/drivers/gpio" + "gobot.io/x/gobot/platforms/intel-iot/edison" ) func main() { diff --git a/examples/edison_grove_lcd.go b/examples/edison_grove_lcd.go index d0da7f804..7dc750d79 100644 --- a/examples/edison_grove_lcd.go +++ b/examples/edison_grove_lcd.go @@ -3,9 +3,9 @@ package main import ( "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/drivers/i2c" - "github.com/hybridgroup/gobot/platforms/intel-iot/edison" + "gobot.io/x/gobot" + "gobot.io/x/gobot/drivers/i2c" + "gobot.io/x/gobot/platforms/intel-iot/edison" ) func main() { diff --git a/examples/edison_grove_led.go b/examples/edison_grove_led.go index c516f422b..8294281bf 100644 --- a/examples/edison_grove_led.go +++ b/examples/edison_grove_led.go @@ -3,9 +3,9 @@ package main import ( "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/drivers/gpio" - "github.com/hybridgroup/gobot/platforms/intel-iot/edison" + "gobot.io/x/gobot" + "gobot.io/x/gobot/drivers/gpio" + "gobot.io/x/gobot/platforms/intel-iot/edison" ) func main() { diff --git a/examples/edison_grove_light_sensor.go b/examples/edison_grove_light_sensor.go index e9177861a..c4503e3ea 100644 --- a/examples/edison_grove_light_sensor.go +++ b/examples/edison_grove_light_sensor.go @@ -3,9 +3,9 @@ package main import ( "fmt" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/drivers/gpio" - "github.com/hybridgroup/gobot/platforms/intel-iot/edison" + "gobot.io/x/gobot" + "gobot.io/x/gobot/drivers/gpio" + "gobot.io/x/gobot/platforms/intel-iot/edison" ) func main() { diff --git a/examples/edison_grove_piezo_vibration.go b/examples/edison_grove_piezo_vibration.go index a891dc200..d9977f578 100644 --- a/examples/edison_grove_piezo_vibration.go +++ b/examples/edison_grove_piezo_vibration.go @@ -3,9 +3,9 @@ package main import ( "fmt" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/drivers/gpio" - "github.com/hybridgroup/gobot/platforms/intel-iot/edison" + "gobot.io/x/gobot" + "gobot.io/x/gobot/drivers/gpio" + "gobot.io/x/gobot/platforms/intel-iot/edison" ) func main() { diff --git a/examples/edison_grove_rotary_sensor.go b/examples/edison_grove_rotary_sensor.go index a10e80536..90924d057 100644 --- a/examples/edison_grove_rotary_sensor.go +++ b/examples/edison_grove_rotary_sensor.go @@ -3,9 +3,9 @@ package main import ( "fmt" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/drivers/gpio" - "github.com/hybridgroup/gobot/platforms/intel-iot/edison" + "gobot.io/x/gobot" + "gobot.io/x/gobot/drivers/gpio" + "gobot.io/x/gobot/platforms/intel-iot/edison" ) func main() { diff --git a/examples/edison_grove_sound_sensor.go b/examples/edison_grove_sound_sensor.go index 2eda3db94..19a1393e5 100644 --- a/examples/edison_grove_sound_sensor.go +++ b/examples/edison_grove_sound_sensor.go @@ -3,9 +3,9 @@ package main import ( "fmt" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/drivers/gpio" - "github.com/hybridgroup/gobot/platforms/intel-iot/edison" + "gobot.io/x/gobot" + "gobot.io/x/gobot/drivers/gpio" + "gobot.io/x/gobot/platforms/intel-iot/edison" ) func main() { diff --git a/examples/edison_grove_temperature_sensor.go b/examples/edison_grove_temperature_sensor.go index 43fc474b0..41d051d46 100644 --- a/examples/edison_grove_temperature_sensor.go +++ b/examples/edison_grove_temperature_sensor.go @@ -4,9 +4,9 @@ import ( "fmt" "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/drivers/gpio" - "github.com/hybridgroup/gobot/platforms/intel-iot/edison" + "gobot.io/x/gobot" + "gobot.io/x/gobot/drivers/gpio" + "gobot.io/x/gobot/platforms/intel-iot/edison" ) func main() { diff --git a/examples/edison_grove_touch.go b/examples/edison_grove_touch.go index f7132e503..318a025d5 100644 --- a/examples/edison_grove_touch.go +++ b/examples/edison_grove_touch.go @@ -3,9 +3,9 @@ package main import ( "fmt" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/drivers/gpio" - "github.com/hybridgroup/gobot/platforms/intel-iot/edison" + "gobot.io/x/gobot" + "gobot.io/x/gobot/drivers/gpio" + "gobot.io/x/gobot/platforms/intel-iot/edison" ) func main() { diff --git a/examples/edison_led_brightness.go b/examples/edison_led_brightness.go index 7735e01fc..d945f8c6f 100644 --- a/examples/edison_led_brightness.go +++ b/examples/edison_led_brightness.go @@ -3,9 +3,9 @@ package main import ( "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/drivers/gpio" - "github.com/hybridgroup/gobot/platforms/intel-iot/edison" + "gobot.io/x/gobot" + "gobot.io/x/gobot/drivers/gpio" + "gobot.io/x/gobot/platforms/intel-iot/edison" ) func main() { diff --git a/examples/edison_led_brightness_with_analog_input.go b/examples/edison_led_brightness_with_analog_input.go index bfca7c42d..2446f0bd5 100644 --- a/examples/edison_led_brightness_with_analog_input.go +++ b/examples/edison_led_brightness_with_analog_input.go @@ -3,9 +3,9 @@ package main import ( "fmt" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/drivers/gpio" - "github.com/hybridgroup/gobot/platforms/intel-iot/edison" + "gobot.io/x/gobot" + "gobot.io/x/gobot/drivers/gpio" + "gobot.io/x/gobot/platforms/intel-iot/edison" ) func main() { diff --git a/examples/edison_miniboard_grove_accelerometer.go b/examples/edison_miniboard_grove_accelerometer.go index f26a879a3..116d57eb6 100644 --- a/examples/edison_miniboard_grove_accelerometer.go +++ b/examples/edison_miniboard_grove_accelerometer.go @@ -4,9 +4,9 @@ import ( "fmt" "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/drivers/i2c" - "github.com/hybridgroup/gobot/platforms/intel-iot/edison" + "gobot.io/x/gobot" + "gobot.io/x/gobot/drivers/i2c" + "gobot.io/x/gobot/platforms/intel-iot/edison" ) func main() { diff --git a/examples/edison_rgb_led.go b/examples/edison_rgb_led.go index b26aa3a3b..764b5cbeb 100644 --- a/examples/edison_rgb_led.go +++ b/examples/edison_rgb_led.go @@ -3,9 +3,9 @@ package main import ( "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/drivers/gpio" - "github.com/hybridgroup/gobot/platforms/intel-iot/edison" + "gobot.io/x/gobot" + "gobot.io/x/gobot/drivers/gpio" + "gobot.io/x/gobot/platforms/intel-iot/edison" ) func main() { diff --git a/examples/every_done.go b/examples/every_done.go index c6c3a8a2c..6832b97f4 100644 --- a/examples/every_done.go +++ b/examples/every_done.go @@ -4,7 +4,7 @@ import ( "fmt" "time" - "github.com/hybridgroup/gobot" + "gobot.io/x/gobot" ) func main() { diff --git a/examples/firmata_blink.go b/examples/firmata_blink.go index e27de4ce1..31800a27d 100644 --- a/examples/firmata_blink.go +++ b/examples/firmata_blink.go @@ -3,9 +3,9 @@ package main import ( "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/drivers/gpio" - "github.com/hybridgroup/gobot/platforms/firmata" + "gobot.io/x/gobot" + "gobot.io/x/gobot/drivers/gpio" + "gobot.io/x/gobot/platforms/firmata" ) func main() { diff --git a/examples/firmata_blink_api.go b/examples/firmata_blink_api.go index c525e1a91..8ef7f84e2 100644 --- a/examples/firmata_blink_api.go +++ b/examples/firmata_blink_api.go @@ -3,10 +3,10 @@ package main import ( "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/api" - "github.com/hybridgroup/gobot/drivers/gpio" - "github.com/hybridgroup/gobot/platforms/firmata" + "gobot.io/x/gobot" + "gobot.io/x/gobot/api" + "gobot.io/x/gobot/drivers/gpio" + "gobot.io/x/gobot/platforms/firmata" ) func main() { diff --git a/examples/firmata_blink_metal.go b/examples/firmata_blink_metal.go index d6ea032cb..f02b6453d 100644 --- a/examples/firmata_blink_metal.go +++ b/examples/firmata_blink_metal.go @@ -3,8 +3,8 @@ package main import ( "time" - "github.com/hybridgroup/gobot/drivers/gpio" - "github.com/hybridgroup/gobot/platforms/firmata" + "gobot.io/x/gobot/drivers/gpio" + "gobot.io/x/gobot/platforms/firmata" ) // Example of a simple led toggle without the initialization of diff --git a/examples/firmata_blink_robot.go b/examples/firmata_blink_robot.go index e27de4ce1..31800a27d 100644 --- a/examples/firmata_blink_robot.go +++ b/examples/firmata_blink_robot.go @@ -3,9 +3,9 @@ package main import ( "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/drivers/gpio" - "github.com/hybridgroup/gobot/platforms/firmata" + "gobot.io/x/gobot" + "gobot.io/x/gobot/drivers/gpio" + "gobot.io/x/gobot/platforms/firmata" ) func main() { diff --git a/examples/firmata_blinkm.go b/examples/firmata_blinkm.go index 92e68e56b..af3a75447 100644 --- a/examples/firmata_blinkm.go +++ b/examples/firmata_blinkm.go @@ -4,9 +4,9 @@ import ( "fmt" "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/drivers/i2c" - "github.com/hybridgroup/gobot/platforms/firmata" + "gobot.io/x/gobot" + "gobot.io/x/gobot/drivers/i2c" + "gobot.io/x/gobot/platforms/firmata" ) func main() { diff --git a/examples/firmata_button.go b/examples/firmata_button.go index 6a0bfa923..f0e2c27f2 100644 --- a/examples/firmata_button.go +++ b/examples/firmata_button.go @@ -1,9 +1,9 @@ package main import ( - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/drivers/gpio" - "github.com/hybridgroup/gobot/platforms/firmata" + "gobot.io/x/gobot" + "gobot.io/x/gobot/drivers/gpio" + "gobot.io/x/gobot/platforms/firmata" ) func main() { diff --git a/examples/firmata_buzzer.go b/examples/firmata_buzzer.go index d62b095be..dda161537 100644 --- a/examples/firmata_buzzer.go +++ b/examples/firmata_buzzer.go @@ -3,9 +3,9 @@ package main import ( "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/drivers/gpio" - "github.com/hybridgroup/gobot/platforms/firmata" + "gobot.io/x/gobot" + "gobot.io/x/gobot/drivers/gpio" + "gobot.io/x/gobot/platforms/firmata" ) func main() { diff --git a/examples/firmata_cat_toy.go b/examples/firmata_cat_toy.go index a6a123973..0782f43a1 100644 --- a/examples/firmata_cat_toy.go +++ b/examples/firmata_cat_toy.go @@ -4,10 +4,10 @@ import ( "fmt" "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/drivers/gpio" - "github.com/hybridgroup/gobot/platforms/firmata" - "github.com/hybridgroup/gobot/platforms/leap" + "gobot.io/x/gobot" + "gobot.io/x/gobot/drivers/gpio" + "gobot.io/x/gobot/platforms/firmata" + "gobot.io/x/gobot/platforms/leap" ) func main() { diff --git a/examples/firmata_direct_pin.go b/examples/firmata_direct_pin.go index 98a2babff..07299ad5f 100644 --- a/examples/firmata_direct_pin.go +++ b/examples/firmata_direct_pin.go @@ -3,9 +3,9 @@ package main import ( "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/drivers/gpio" - "github.com/hybridgroup/gobot/platforms/firmata" + "gobot.io/x/gobot" + "gobot.io/x/gobot/drivers/gpio" + "gobot.io/x/gobot/platforms/firmata" ) func main() { diff --git a/examples/firmata_hmc6352.go b/examples/firmata_hmc6352.go index 9f0c545bf..787dd07e8 100644 --- a/examples/firmata_hmc6352.go +++ b/examples/firmata_hmc6352.go @@ -4,9 +4,9 @@ import ( "fmt" "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/drivers/i2c" - "github.com/hybridgroup/gobot/platforms/firmata" + "gobot.io/x/gobot" + "gobot.io/x/gobot/drivers/i2c" + "gobot.io/x/gobot/platforms/firmata" ) func main() { diff --git a/examples/firmata_integration.go b/examples/firmata_integration.go index f6a567753..835d79364 100644 --- a/examples/firmata_integration.go +++ b/examples/firmata_integration.go @@ -4,9 +4,9 @@ import ( "fmt" "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/drivers/gpio" - "github.com/hybridgroup/gobot/platforms/firmata" + "gobot.io/x/gobot" + "gobot.io/x/gobot/drivers/gpio" + "gobot.io/x/gobot/platforms/firmata" ) func main() { diff --git a/examples/firmata_led_brightness.go b/examples/firmata_led_brightness.go index 9eb38be85..c7f020433 100644 --- a/examples/firmata_led_brightness.go +++ b/examples/firmata_led_brightness.go @@ -3,9 +3,9 @@ package main import ( "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/drivers/gpio" - "github.com/hybridgroup/gobot/platforms/firmata" + "gobot.io/x/gobot" + "gobot.io/x/gobot/drivers/gpio" + "gobot.io/x/gobot/platforms/firmata" ) func main() { diff --git a/examples/firmata_led_brightness_with_analog_input.go b/examples/firmata_led_brightness_with_analog_input.go index 03198dc9d..dd252a995 100644 --- a/examples/firmata_led_brightness_with_analog_input.go +++ b/examples/firmata_led_brightness_with_analog_input.go @@ -3,9 +3,9 @@ package main import ( "fmt" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/drivers/gpio" - "github.com/hybridgroup/gobot/platforms/firmata" + "gobot.io/x/gobot" + "gobot.io/x/gobot/drivers/gpio" + "gobot.io/x/gobot/platforms/firmata" ) func main() { diff --git a/examples/firmata_lidarlite.go b/examples/firmata_lidarlite.go index f82b7b198..9b0fcca76 100644 --- a/examples/firmata_lidarlite.go +++ b/examples/firmata_lidarlite.go @@ -4,9 +4,9 @@ import ( "fmt" "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/drivers/i2c" - "github.com/hybridgroup/gobot/platforms/firmata" + "gobot.io/x/gobot" + "gobot.io/x/gobot/drivers/i2c" + "gobot.io/x/gobot/platforms/firmata" ) func main() { diff --git a/examples/firmata_makey_button.go b/examples/firmata_makey_button.go index 5d5c96a22..919f12cfb 100644 --- a/examples/firmata_makey_button.go +++ b/examples/firmata_makey_button.go @@ -1,9 +1,9 @@ package main import ( - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/drivers/gpio" - "github.com/hybridgroup/gobot/platforms/firmata" + "gobot.io/x/gobot" + "gobot.io/x/gobot/drivers/gpio" + "gobot.io/x/gobot/platforms/firmata" ) func main() { diff --git a/examples/firmata_metal_button.go b/examples/firmata_metal_button.go index c011628e2..1e706491f 100644 --- a/examples/firmata_metal_button.go +++ b/examples/firmata_metal_button.go @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/hybridgroup/gobot/drivers/gpio" - "github.com/hybridgroup/gobot/platforms/firmata" + "gobot.io/x/gobot/drivers/gpio" + "gobot.io/x/gobot/platforms/firmata" ) func main() { diff --git a/examples/firmata_mma7660.go b/examples/firmata_mma7660.go index cd7f24022..46a3242ae 100644 --- a/examples/firmata_mma7660.go +++ b/examples/firmata_mma7660.go @@ -4,9 +4,9 @@ import ( "fmt" "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/drivers/i2c" - "github.com/hybridgroup/gobot/platforms/firmata" + "gobot.io/x/gobot" + "gobot.io/x/gobot/drivers/i2c" + "gobot.io/x/gobot/platforms/firmata" ) func main() { diff --git a/examples/firmata_motor.go b/examples/firmata_motor.go index d5cd8ba7d..3a87db339 100644 --- a/examples/firmata_motor.go +++ b/examples/firmata_motor.go @@ -3,9 +3,9 @@ package main import ( "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/drivers/gpio" - "github.com/hybridgroup/gobot/platforms/firmata" + "gobot.io/x/gobot" + "gobot.io/x/gobot/drivers/gpio" + "gobot.io/x/gobot/platforms/firmata" ) func main() { diff --git a/examples/firmata_mpl115a2.go b/examples/firmata_mpl115a2.go index c2de15660..a90f5e3c3 100644 --- a/examples/firmata_mpl115a2.go +++ b/examples/firmata_mpl115a2.go @@ -4,9 +4,9 @@ import ( "fmt" "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/drivers/i2c" - "github.com/hybridgroup/gobot/platforms/firmata" + "gobot.io/x/gobot" + "gobot.io/x/gobot/drivers/i2c" + "gobot.io/x/gobot/platforms/firmata" ) func main() { diff --git a/examples/firmata_mpu6050.go b/examples/firmata_mpu6050.go index f79cfc081..72b7b1930 100644 --- a/examples/firmata_mpu6050.go +++ b/examples/firmata_mpu6050.go @@ -4,9 +4,9 @@ import ( "fmt" "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/drivers/i2c" - "github.com/hybridgroup/gobot/platforms/firmata" + "gobot.io/x/gobot" + "gobot.io/x/gobot/drivers/i2c" + "gobot.io/x/gobot/platforms/firmata" ) func main() { diff --git a/examples/firmata_pir_motion.go b/examples/firmata_pir_motion.go index 9fc335789..5d439a258 100644 --- a/examples/firmata_pir_motion.go +++ b/examples/firmata_pir_motion.go @@ -3,9 +3,9 @@ package main import ( "fmt" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/drivers/gpio" - "github.com/hybridgroup/gobot/platforms/firmata" + "gobot.io/x/gobot" + "gobot.io/x/gobot/drivers/gpio" + "gobot.io/x/gobot/platforms/firmata" ) func main() { diff --git a/examples/firmata_rgb_led.go b/examples/firmata_rgb_led.go index 5c1730645..41de90279 100644 --- a/examples/firmata_rgb_led.go +++ b/examples/firmata_rgb_led.go @@ -3,9 +3,9 @@ package main import ( "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/drivers/gpio" - "github.com/hybridgroup/gobot/platforms/firmata" + "gobot.io/x/gobot" + "gobot.io/x/gobot/drivers/gpio" + "gobot.io/x/gobot/platforms/firmata" ) func main() { diff --git a/examples/firmata_servo.go b/examples/firmata_servo.go index f8a280c10..e788f90de 100644 --- a/examples/firmata_servo.go +++ b/examples/firmata_servo.go @@ -4,9 +4,9 @@ import ( "fmt" "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/drivers/gpio" - "github.com/hybridgroup/gobot/platforms/firmata" + "gobot.io/x/gobot" + "gobot.io/x/gobot/drivers/gpio" + "gobot.io/x/gobot/platforms/firmata" ) func main() { diff --git a/examples/firmata_temp36.go b/examples/firmata_temp36.go index 0529131c8..4a70bae03 100644 --- a/examples/firmata_temp36.go +++ b/examples/firmata_temp36.go @@ -5,8 +5,8 @@ import ( "fmt" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/platforms/firmata" + "gobot.io/x/gobot" + "gobot.io/x/gobot/platforms/firmata" ) func main() { diff --git a/examples/firmata_travis.go b/examples/firmata_travis.go index bbbecd63f..61d60e2cb 100644 --- a/examples/firmata_travis.go +++ b/examples/firmata_travis.go @@ -7,9 +7,9 @@ import ( "net/http" "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/drivers/gpio" - "github.com/hybridgroup/gobot/platforms/firmata" + "gobot.io/x/gobot" + "gobot.io/x/gobot/drivers/gpio" + "gobot.io/x/gobot/platforms/firmata" ) type TravisResponse struct { diff --git a/examples/firmata_wiichuck.go b/examples/firmata_wiichuck.go index 153abc297..8d967544e 100644 --- a/examples/firmata_wiichuck.go +++ b/examples/firmata_wiichuck.go @@ -3,9 +3,9 @@ package main import ( "fmt" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/drivers/i2c" - "github.com/hybridgroup/gobot/platforms/firmata" + "gobot.io/x/gobot" + "gobot.io/x/gobot/drivers/i2c" + "gobot.io/x/gobot/platforms/firmata" ) func main() { diff --git a/examples/hello.go b/examples/hello.go index 77376cbf5..caf63426c 100644 --- a/examples/hello.go +++ b/examples/hello.go @@ -4,7 +4,7 @@ import ( "fmt" "time" - "github.com/hybridgroup/gobot" + "gobot.io/x/gobot" ) func main() { diff --git a/examples/hello_api.go b/examples/hello_api.go index 3a78929b0..9faf0ad51 100644 --- a/examples/hello_api.go +++ b/examples/hello_api.go @@ -5,8 +5,8 @@ import ( "html" "net/http" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/api" + "gobot.io/x/gobot" + "gobot.io/x/gobot/api" ) func main() { diff --git a/examples/hello_api_auth.go b/examples/hello_api_auth.go index 8a82f66cd..3894fe96d 100644 --- a/examples/hello_api_auth.go +++ b/examples/hello_api_auth.go @@ -5,8 +5,8 @@ import ( "html" "net/http" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/api" + "gobot.io/x/gobot" + "gobot.io/x/gobot/api" ) func main() { diff --git a/examples/joule_blink.go b/examples/joule_blink.go index e3a23d5b9..9f30b2475 100644 --- a/examples/joule_blink.go +++ b/examples/joule_blink.go @@ -3,9 +3,9 @@ package main import ( "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/drivers/gpio" - "github.com/hybridgroup/gobot/platforms/intel-iot/joule" + "gobot.io/x/gobot" + "gobot.io/x/gobot/drivers/gpio" + "gobot.io/x/gobot/platforms/intel-iot/joule" ) func main() { diff --git a/examples/joule_blinkm.go b/examples/joule_blinkm.go index 4e3efdf8d..0704bb6ff 100644 --- a/examples/joule_blinkm.go +++ b/examples/joule_blinkm.go @@ -4,9 +4,9 @@ import ( "fmt" "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/drivers/i2c" - "github.com/hybridgroup/gobot/platforms/intel-iot/joule" + "gobot.io/x/gobot" + "gobot.io/x/gobot/drivers/i2c" + "gobot.io/x/gobot/platforms/intel-iot/joule" ) func main() { diff --git a/examples/joule_grove_lcd.go b/examples/joule_grove_lcd.go index 8b55a3451..f7b2e4016 100644 --- a/examples/joule_grove_lcd.go +++ b/examples/joule_grove_lcd.go @@ -3,9 +3,9 @@ package main import ( "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/drivers/i2c" - "github.com/hybridgroup/gobot/platforms/intel-iot/joule" + "gobot.io/x/gobot" + "gobot.io/x/gobot/drivers/i2c" + "gobot.io/x/gobot/platforms/intel-iot/joule" ) func main() { diff --git a/examples/joule_leds.go b/examples/joule_leds.go index 1c23d6e59..62e35d263 100644 --- a/examples/joule_leds.go +++ b/examples/joule_leds.go @@ -3,9 +3,9 @@ package main import ( "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/drivers/gpio" - "github.com/hybridgroup/gobot/platforms/intel-iot/joule" + "gobot.io/x/gobot" + "gobot.io/x/gobot/drivers/gpio" + "gobot.io/x/gobot/platforms/intel-iot/joule" ) func main() { diff --git a/examples/joule_rgb_led.go b/examples/joule_rgb_led.go index 064e3d45a..67a9088db 100644 --- a/examples/joule_rgb_led.go +++ b/examples/joule_rgb_led.go @@ -3,9 +3,9 @@ package main import ( "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/drivers/gpio" - "github.com/hybridgroup/gobot/platforms/intel-iot/joule" + "gobot.io/x/gobot" + "gobot.io/x/gobot/drivers/gpio" + "gobot.io/x/gobot/platforms/intel-iot/joule" ) func main() { diff --git a/examples/joystick_ps3.go b/examples/joystick_ps3.go index 1e07d0cb4..1cdd1fc8b 100644 --- a/examples/joystick_ps3.go +++ b/examples/joystick_ps3.go @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/platforms/joystick" + "gobot.io/x/gobot" + "gobot.io/x/gobot/platforms/joystick" ) func main() { diff --git a/examples/joystick_ps4.go b/examples/joystick_ps4.go index bd709181c..33c5cd6ed 100644 --- a/examples/joystick_ps4.go +++ b/examples/joystick_ps4.go @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/platforms/joystick" + "gobot.io/x/gobot" + "gobot.io/x/gobot/platforms/joystick" ) func main() { diff --git a/examples/joystick_xbox360.go b/examples/joystick_xbox360.go index 3216293cc..f0cfc222d 100644 --- a/examples/joystick_xbox360.go +++ b/examples/joystick_xbox360.go @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/platforms/joystick" + "gobot.io/x/gobot" + "gobot.io/x/gobot/platforms/joystick" ) func main() { diff --git a/examples/keyboard.go b/examples/keyboard.go index 74dce3f47..b4f651c65 100644 --- a/examples/keyboard.go +++ b/examples/keyboard.go @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/platforms/keyboard" + "gobot.io/x/gobot" + "gobot.io/x/gobot/platforms/keyboard" ) func main() { diff --git a/examples/keyboard_mqtt.go b/examples/keyboard_mqtt.go new file mode 100644 index 000000000..c2837d09c --- /dev/null +++ b/examples/keyboard_mqtt.go @@ -0,0 +1,37 @@ +package main + +import ( + "gobot.io/x/gobot" + "gobot.io/x/gobot/platforms/keyboard" + "gobot.io/x/gobot/platforms/mqtt" +) + +func main() { + keys := keyboard.NewDriver() + mqttAdaptor := mqtt.NewAdaptor("tcp://iot.eclipse.org:1883", "conductor") + + work := func() { + keys.On(keyboard.Key, func(data interface{}) { + key := data.(keyboard.KeyEvent) + + switch key.Key { + case keyboard.ArrowUp: + mqttAdaptor.Publish("rover/frente", []byte{}) + case keyboard.ArrowRight: + mqttAdaptor.Publish("rover/derecha", []byte{}) + case keyboard.ArrowDown: + mqttAdaptor.Publish("rover/atras", []byte{}) + case keyboard.ArrowLeft: + mqttAdaptor.Publish("rover/izquierda", []byte{}) + } + }) + } + + robot := gobot.NewRobot("keyboardbot", + []gobot.Connection{mqttAdaptor}, + []gobot.Device{keys}, + work, + ) + + robot.Start() +} diff --git a/examples/leap_motion.go b/examples/leap_motion.go index 532fcc2d0..3055abf44 100644 --- a/examples/leap_motion.go +++ b/examples/leap_motion.go @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/platforms/leap" + "gobot.io/x/gobot" + "gobot.io/x/gobot/platforms/leap" ) func main() { diff --git a/examples/leap_motion_gestures.go b/examples/leap_motion_gestures.go index a8ca26722..2aac181c0 100644 --- a/examples/leap_motion_gestures.go +++ b/examples/leap_motion_gestures.go @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/platforms/leap" + "gobot.io/x/gobot" + "gobot.io/x/gobot/platforms/leap" ) func main() { diff --git a/examples/leap_motion_hands.go b/examples/leap_motion_hands.go index 2954217c5..8ccfd6c8d 100644 --- a/examples/leap_motion_hands.go +++ b/examples/leap_motion_hands.go @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/platforms/leap" + "gobot.io/x/gobot" + "gobot.io/x/gobot/platforms/leap" ) func main() { diff --git a/examples/leap_servos.go b/examples/leap_servos.go index 7fc2d51af..ce97560b5 100644 --- a/examples/leap_servos.go +++ b/examples/leap_servos.go @@ -1,10 +1,10 @@ package main import ( - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/drivers/gpio" - "github.com/hybridgroup/gobot/platforms/firmata" - "github.com/hybridgroup/gobot/platforms/leap" + "gobot.io/x/gobot" + "gobot.io/x/gobot/drivers/gpio" + "gobot.io/x/gobot/platforms/firmata" + "gobot.io/x/gobot/platforms/leap" ) // Video: https://www.youtube.com/watch?v=ayNMyUfdAqc diff --git a/examples/leap_sphero.go b/examples/leap_sphero.go index 8baa6fe47..44064a642 100644 --- a/examples/leap_sphero.go +++ b/examples/leap_sphero.go @@ -3,9 +3,9 @@ package main import ( "math" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/platforms/leap" - "github.com/hybridgroup/gobot/platforms/sphero" + "gobot.io/x/gobot" + "gobot.io/x/gobot/platforms/leap" + "gobot.io/x/gobot/platforms/sphero" ) func main() { diff --git a/examples/mavlink.go b/examples/mavlink.go index 3fdfd8383..b96f68cd0 100644 --- a/examples/mavlink.go +++ b/examples/mavlink.go @@ -3,9 +3,9 @@ package main import ( "fmt" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/platforms/mavlink" - common "github.com/hybridgroup/gobot/platforms/mavlink/common" + "gobot.io/x/gobot" + "gobot.io/x/gobot/platforms/mavlink" + common "gobot.io/x/gobot/platforms/mavlink/common" ) func main() { diff --git a/examples/megapi_motor.go b/examples/megapi_motor.go index be1bee71a..14bc034fa 100644 --- a/examples/megapi_motor.go +++ b/examples/megapi_motor.go @@ -3,8 +3,8 @@ package main import ( "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/platforms/megapi" + "gobot.io/x/gobot" + "gobot.io/x/gobot/platforms/megapi" ) func main() { diff --git a/examples/metal_button.go b/examples/metal_button.go index 4cc9ee6cc..af61d48f5 100644 --- a/examples/metal_button.go +++ b/examples/metal_button.go @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/hybridgroup/gobot/drivers/gpio" - "github.com/hybridgroup/gobot/platforms/intel-iot/edison" + "gobot.io/x/gobot/drivers/gpio" + "gobot.io/x/gobot/platforms/intel-iot/edison" ) func main() { diff --git a/examples/minidrone.go b/examples/minidrone.go index 52726b758..5577a0e10 100644 --- a/examples/minidrone.go +++ b/examples/minidrone.go @@ -5,9 +5,9 @@ import ( "os" "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/platforms/ble" - "github.com/hybridgroup/gobot/platforms/parrot/minidrone" + "gobot.io/x/gobot" + "gobot.io/x/gobot/platforms/ble" + "gobot.io/x/gobot/platforms/parrot/minidrone" ) func main() { diff --git a/examples/minidrone_ps3.go b/examples/minidrone_ps3.go index e6f61a5a3..d570df105 100644 --- a/examples/minidrone_ps3.go +++ b/examples/minidrone_ps3.go @@ -5,10 +5,10 @@ import ( "os" "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/platforms/ble" - "github.com/hybridgroup/gobot/platforms/joystick" - "github.com/hybridgroup/gobot/platforms/parrot/minidrone" + "gobot.io/x/gobot" + "gobot.io/x/gobot/platforms/ble" + "gobot.io/x/gobot/platforms/joystick" + "gobot.io/x/gobot/platforms/parrot/minidrone" ) type pair struct { diff --git a/examples/mqtt_firmata_blink.go b/examples/mqtt_firmata_blink.go index 6463fdfb5..6cc48eb2c 100644 --- a/examples/mqtt_firmata_blink.go +++ b/examples/mqtt_firmata_blink.go @@ -3,10 +3,10 @@ package main import ( "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/drivers/gpio" - "github.com/hybridgroup/gobot/platforms/firmata" - "github.com/hybridgroup/gobot/platforms/mqtt" + "gobot.io/x/gobot" + "gobot.io/x/gobot/drivers/gpio" + "gobot.io/x/gobot/platforms/firmata" + "gobot.io/x/gobot/platforms/mqtt" ) func main() { diff --git a/examples/mqtt_ping.go b/examples/mqtt_ping.go index 5bb6fc8d7..7c88c845e 100644 --- a/examples/mqtt_ping.go +++ b/examples/mqtt_ping.go @@ -4,8 +4,8 @@ import ( "fmt" "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/platforms/mqtt" + "gobot.io/x/gobot" + "gobot.io/x/gobot/platforms/mqtt" ) func main() { diff --git a/examples/nats.go b/examples/nats.go index cd6813056..c5624f5f5 100644 --- a/examples/nats.go +++ b/examples/nats.go @@ -4,8 +4,8 @@ import ( "fmt" "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/platforms/nats" + "gobot.io/x/gobot" + "gobot.io/x/gobot/platforms/nats" ) func main() { diff --git a/examples/neurosky.go b/examples/neurosky.go index 8ccfa8d98..dc0d66f44 100644 --- a/examples/neurosky.go +++ b/examples/neurosky.go @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/platforms/neurosky" + "gobot.io/x/gobot" + "gobot.io/x/gobot/platforms/neurosky" ) func main() { diff --git a/examples/ollie.go b/examples/ollie.go index 9dc2cf153..ee7ef74da 100644 --- a/examples/ollie.go +++ b/examples/ollie.go @@ -4,9 +4,9 @@ import ( "os" "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/platforms/ble" - "github.com/hybridgroup/gobot/platforms/sphero/ollie" + "gobot.io/x/gobot" + "gobot.io/x/gobot/platforms/ble" + "gobot.io/x/gobot/platforms/sphero/ollie" ) func main() { diff --git a/examples/ollie_mqtt.go b/examples/ollie_mqtt.go new file mode 100644 index 000000000..1c48c1087 --- /dev/null +++ b/examples/ollie_mqtt.go @@ -0,0 +1,80 @@ +package main + +import ( + "os" + "strconv" + "time" + + "gobot.io/x/gobot" + "gobot.io/x/gobot/platforms/ble" + "gobot.io/x/gobot/platforms/mqtt" + "gobot.io/x/gobot/platforms/sphero/ollie" +) + +const ( + FRENTE = 0 + DERECHA = 90 + ATRAS = 180 + IZQUIERDA = 270 +) + +func main() { + bleAdaptor := ble.NewClientAdaptor(os.Args[1]) + ollie := ollie.NewDriver(bleAdaptor) + + mqttAdaptor := mqtt.NewAdaptor("tcp://iot.eclipse.org:1883", "ollie") + + work := func() { + ollie.SetRGB(255, 0, 255) + + mqttAdaptor.On("sensores/dial", func(data []byte) { + val, _ := strconv.Atoi(string(data)) + + if val > 2000 { + ollie.SetRGB(0, 255, 0) + return + } + if val > 1000 { + ollie.SetRGB(255, 255, 0) + return + } + ollie.SetRGB(255, 0, 0) + }) + + mqttAdaptor.On("rover/frente", func(data []byte) { + ollie.Roll(40, FRENTE) + gobot.After(1*time.Second, func() { + ollie.Stop() + }) + }) + + mqttAdaptor.On("rover/derecha", func(data []byte) { + ollie.Roll(40, DERECHA) + gobot.After(1*time.Second, func() { + ollie.Stop() + }) + }) + + mqttAdaptor.On("rover/atras", func(data []byte) { + ollie.Roll(40, ATRAS) + gobot.After(1*time.Second, func() { + ollie.Stop() + }) + }) + + mqttAdaptor.On("rover/izquierda", func(data []byte) { + ollie.Roll(40, IZQUIERDA) + gobot.After(1*time.Second, func() { + ollie.Stop() + }) + }) + } + + robot := gobot.NewRobot("ollieBot", + []gobot.Connection{bleAdaptor, mqttAdaptor}, + []gobot.Device{ollie}, + work, + ) + + robot.Start() +} diff --git a/examples/ollie_roll.go b/examples/ollie_roll.go index d8a048039..b877bb969 100644 --- a/examples/ollie_roll.go +++ b/examples/ollie_roll.go @@ -4,9 +4,9 @@ import ( "os" "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/platforms/ble" - "github.com/hybridgroup/gobot/platforms/sphero/ollie" + "gobot.io/x/gobot" + "gobot.io/x/gobot/platforms/ble" + "gobot.io/x/gobot/platforms/sphero/ollie" ) func main() { diff --git a/examples/opencv_face_detect.go b/examples/opencv_face_detect.go index 7c4db0c22..34d879aee 100644 --- a/examples/opencv_face_detect.go +++ b/examples/opencv_face_detect.go @@ -5,8 +5,8 @@ import ( "runtime" "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/platforms/opencv" + "gobot.io/x/gobot" + "gobot.io/x/gobot/platforms/opencv" cv "github.com/lazywei/go-opencv/opencv" ) diff --git a/examples/opencv_window.go b/examples/opencv_window.go index 28b876f8a..15503d835 100644 --- a/examples/opencv_window.go +++ b/examples/opencv_window.go @@ -1,8 +1,8 @@ package main import ( - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/platforms/opencv" + "gobot.io/x/gobot" + "gobot.io/x/gobot/platforms/opencv" cv "github.com/lazywei/go-opencv/opencv" ) diff --git a/examples/particle_api.go b/examples/particle_api.go index d40141458..cf7256271 100644 --- a/examples/particle_api.go +++ b/examples/particle_api.go @@ -3,10 +3,10 @@ package main import ( "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/api" - "github.com/hybridgroup/gobot/drivers/gpio" - "github.com/hybridgroup/gobot/platforms/particle" + "gobot.io/x/gobot" + "gobot.io/x/gobot/api" + "gobot.io/x/gobot/drivers/gpio" + "gobot.io/x/gobot/platforms/particle" ) func main() { diff --git a/examples/particle_blink.go b/examples/particle_blink.go index ec19212f3..4e521ea33 100644 --- a/examples/particle_blink.go +++ b/examples/particle_blink.go @@ -3,9 +3,9 @@ package main import ( "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/drivers/gpio" - "github.com/hybridgroup/gobot/platforms/particle" + "gobot.io/x/gobot" + "gobot.io/x/gobot/drivers/gpio" + "gobot.io/x/gobot/platforms/particle" ) func main() { diff --git a/examples/particle_button.go b/examples/particle_button.go index 0e712c312..ec123647d 100644 --- a/examples/particle_button.go +++ b/examples/particle_button.go @@ -1,9 +1,9 @@ package main import ( - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/drivers/gpio" - "github.com/hybridgroup/gobot/platforms/particle" + "gobot.io/x/gobot" + "gobot.io/x/gobot/drivers/gpio" + "gobot.io/x/gobot/platforms/particle" ) func main() { diff --git a/examples/particle_events.go b/examples/particle_events.go index 574f3d5d7..27f9b3d8d 100644 --- a/examples/particle_events.go +++ b/examples/particle_events.go @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/platforms/particle" + "gobot.io/x/gobot" + "gobot.io/x/gobot/platforms/particle" ) func main() { diff --git a/examples/particle_function.go b/examples/particle_function.go index 714d0e8c4..90fba9f4c 100644 --- a/examples/particle_function.go +++ b/examples/particle_function.go @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/platforms/particle" + "gobot.io/x/gobot" + "gobot.io/x/gobot/platforms/particle" ) func main() { diff --git a/examples/particle_led_brightness.go b/examples/particle_led_brightness.go index 0b4616f51..252601e71 100644 --- a/examples/particle_led_brightness.go +++ b/examples/particle_led_brightness.go @@ -3,9 +3,9 @@ package main import ( "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/drivers/gpio" - "github.com/hybridgroup/gobot/platforms/particle" + "gobot.io/x/gobot" + "gobot.io/x/gobot/drivers/gpio" + "gobot.io/x/gobot/platforms/particle" ) func main() { diff --git a/examples/particle_variable.go b/examples/particle_variable.go index 157b07951..88620c526 100644 --- a/examples/particle_variable.go +++ b/examples/particle_variable.go @@ -4,8 +4,8 @@ import ( "fmt" "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/platforms/particle" + "gobot.io/x/gobot" + "gobot.io/x/gobot/platforms/particle" ) func main() { diff --git a/examples/pebble.go b/examples/pebble.go index 3c08c7d96..5ec6ea275 100644 --- a/examples/pebble.go +++ b/examples/pebble.go @@ -3,9 +3,9 @@ package main import ( "fmt" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/api" - "github.com/hybridgroup/gobot/platforms/pebble" + "gobot.io/x/gobot" + "gobot.io/x/gobot/api" + "gobot.io/x/gobot/platforms/pebble" ) func main() { diff --git a/examples/pebble_accelerometer.go b/examples/pebble_accelerometer.go index fad7928d2..e67cab3a3 100644 --- a/examples/pebble_accelerometer.go +++ b/examples/pebble_accelerometer.go @@ -3,9 +3,9 @@ package main import ( "fmt" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/api" - "github.com/hybridgroup/gobot/platforms/pebble" + "gobot.io/x/gobot" + "gobot.io/x/gobot/api" + "gobot.io/x/gobot/platforms/pebble" ) func main() { diff --git a/examples/raspi_adafruit_dcmotor.go b/examples/raspi_adafruit_dcmotor.go index 703658bbd..dab5284bb 100644 --- a/examples/raspi_adafruit_dcmotor.go +++ b/examples/raspi_adafruit_dcmotor.go @@ -4,9 +4,9 @@ import ( "log" "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/drivers/i2c" - "github.com/hybridgroup/gobot/platforms/raspi" + "gobot.io/x/gobot" + "gobot.io/x/gobot/drivers/i2c" + "gobot.io/x/gobot/platforms/raspi" ) func adafruitDCMotorRunner(a *i2c.AdafruitMotorHatDriver, dcMotor int) (err error) { diff --git a/examples/raspi_adafruit_servo.go b/examples/raspi_adafruit_servo.go index 4d1fc985e..df8841efe 100644 --- a/examples/raspi_adafruit_servo.go +++ b/examples/raspi_adafruit_servo.go @@ -4,9 +4,9 @@ import ( "log" "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/drivers/i2c" - "github.com/hybridgroup/gobot/platforms/raspi" + "gobot.io/x/gobot" + "gobot.io/x/gobot/drivers/i2c" + "gobot.io/x/gobot/platforms/raspi" ) var ( diff --git a/examples/raspi_adafruit_stepper.go b/examples/raspi_adafruit_stepper.go index 0d75685e8..33b6649de 100644 --- a/examples/raspi_adafruit_stepper.go +++ b/examples/raspi_adafruit_stepper.go @@ -4,9 +4,9 @@ import ( "log" "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/drivers/i2c" - "github.com/hybridgroup/gobot/platforms/raspi" + "gobot.io/x/gobot" + "gobot.io/x/gobot/drivers/i2c" + "gobot.io/x/gobot/platforms/raspi" ) func adafruitStepperMotorRunner(a *i2c.AdafruitMotorHatDriver, motor int) (err error) { diff --git a/examples/raspi_blink.go b/examples/raspi_blink.go index a59b20a06..4e6406b8d 100644 --- a/examples/raspi_blink.go +++ b/examples/raspi_blink.go @@ -3,9 +3,9 @@ package main import ( "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/drivers/gpio" - "github.com/hybridgroup/gobot/platforms/raspi" + "gobot.io/x/gobot" + "gobot.io/x/gobot/drivers/gpio" + "gobot.io/x/gobot/platforms/raspi" ) func main() { diff --git a/examples/raspi_blinkm.go b/examples/raspi_blinkm.go index 907ff20ec..2b264555f 100644 --- a/examples/raspi_blinkm.go +++ b/examples/raspi_blinkm.go @@ -4,9 +4,9 @@ import ( "fmt" "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/drivers/i2c" - "github.com/hybridgroup/gobot/platforms/raspi" + "gobot.io/x/gobot" + "gobot.io/x/gobot/drivers/i2c" + "gobot.io/x/gobot/platforms/raspi" ) func main() { diff --git a/examples/raspi_button.go b/examples/raspi_button.go index 4db4ebf17..95fb9be7d 100644 --- a/examples/raspi_button.go +++ b/examples/raspi_button.go @@ -3,9 +3,9 @@ package main import ( "fmt" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/drivers/gpio" - "github.com/hybridgroup/gobot/platforms/raspi" + "gobot.io/x/gobot" + "gobot.io/x/gobot/drivers/gpio" + "gobot.io/x/gobot/platforms/raspi" ) func main() { diff --git a/examples/sphero.go b/examples/sphero.go index d4fb43509..96cf47db7 100644 --- a/examples/sphero.go +++ b/examples/sphero.go @@ -4,8 +4,8 @@ import ( "fmt" "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/platforms/sphero" + "gobot.io/x/gobot" + "gobot.io/x/gobot/platforms/sphero" ) func main() { diff --git a/examples/sphero_api.go b/examples/sphero_api.go index c6b36f91a..1e453f403 100644 --- a/examples/sphero_api.go +++ b/examples/sphero_api.go @@ -1,9 +1,9 @@ package main import ( - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/api" - "github.com/hybridgroup/gobot/platforms/sphero" + "gobot.io/x/gobot" + "gobot.io/x/gobot/api" + "gobot.io/x/gobot/platforms/sphero" ) func main() { diff --git a/examples/sphero_conways.go b/examples/sphero_conways.go index c876ba278..971688f6a 100644 --- a/examples/sphero_conways.go +++ b/examples/sphero_conways.go @@ -4,8 +4,8 @@ import ( "fmt" "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/platforms/sphero" + "gobot.io/x/gobot" + "gobot.io/x/gobot/platforms/sphero" ) type conway struct { diff --git a/examples/sphero_dpad.go b/examples/sphero_dpad.go index be87dd4c4..8b8b8b8bd 100644 --- a/examples/sphero_dpad.go +++ b/examples/sphero_dpad.go @@ -3,9 +3,9 @@ package main import ( "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/api" - "github.com/hybridgroup/gobot/platforms/sphero" + "gobot.io/x/gobot" + "gobot.io/x/gobot/api" + "gobot.io/x/gobot/platforms/sphero" ) func main() { diff --git a/examples/sphero_master.go b/examples/sphero_master.go index 6394b91a1..9cafd331b 100644 --- a/examples/sphero_master.go +++ b/examples/sphero_master.go @@ -3,8 +3,8 @@ package main import ( "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/platforms/sphero" + "gobot.io/x/gobot" + "gobot.io/x/gobot/platforms/sphero" ) func main() { diff --git a/examples/sphero_multiple.go b/examples/sphero_multiple.go index 4bba6935a..6fb7f6ec4 100644 --- a/examples/sphero_multiple.go +++ b/examples/sphero_multiple.go @@ -4,9 +4,9 @@ import ( "fmt" "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/api" - "github.com/hybridgroup/gobot/platforms/sphero" + "gobot.io/x/gobot" + "gobot.io/x/gobot/api" + "gobot.io/x/gobot/platforms/sphero" ) func NewSwarmBot(port string) *gobot.Robot { diff --git a/examples/square.go b/examples/square.go index 983fc2254..0d30a4abb 100644 --- a/examples/square.go +++ b/examples/square.go @@ -3,10 +3,10 @@ package main import ( "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/api" - "github.com/hybridgroup/gobot/drivers/gpio" - "github.com/hybridgroup/gobot/platforms/intel-iot/edison" + "gobot.io/x/gobot" + "gobot.io/x/gobot/api" + "gobot.io/x/gobot/drivers/gpio" + "gobot.io/x/gobot/platforms/intel-iot/edison" ) func main() { diff --git a/examples/square_fire.go b/examples/square_fire.go index 1ea51c9e3..91858aa48 100644 --- a/examples/square_fire.go +++ b/examples/square_fire.go @@ -3,10 +3,10 @@ package main import ( "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/api" - "github.com/hybridgroup/gobot/drivers/gpio" - "github.com/hybridgroup/gobot/platforms/intel-iot/edison" + "gobot.io/x/gobot" + "gobot.io/x/gobot/api" + "gobot.io/x/gobot/drivers/gpio" + "gobot.io/x/gobot/platforms/intel-iot/edison" ) func main() { diff --git a/examples_test.go b/examples_test.go index e736ab990..302633c68 100644 --- a/examples_test.go +++ b/examples_test.go @@ -5,8 +5,8 @@ import ( "testing" "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/gobottest" + "gobot.io/x/gobot" + "gobot.io/x/gobot/gobottest" ) func ExampleEvery() { diff --git a/master_test.go b/master_test.go index 1e47b1ca6..7f268b7ea 100644 --- a/master_test.go +++ b/master_test.go @@ -7,7 +7,7 @@ import ( "testing" multierror "github.com/hashicorp/go-multierror" - "github.com/hybridgroup/gobot/gobottest" + "gobot.io/x/gobot/gobottest" ) func TestConnectionEach(t *testing.T) { diff --git a/platforms/audio/audio_adaptor_test.go b/platforms/audio/audio_adaptor_test.go index 00b97bec1..c9ef6c9f1 100644 --- a/platforms/audio/audio_adaptor_test.go +++ b/platforms/audio/audio_adaptor_test.go @@ -5,8 +5,8 @@ import ( "os/exec" "testing" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/gobottest" + "gobot.io/x/gobot" + "gobot.io/x/gobot/gobottest" ) var _ gobot.Adaptor = (*Adaptor)(nil) diff --git a/platforms/audio/audio_driver.go b/platforms/audio/audio_driver.go index 50dc6d99d..bef122053 100644 --- a/platforms/audio/audio_driver.go +++ b/platforms/audio/audio_driver.go @@ -4,7 +4,7 @@ package audio import ( "time" - "github.com/hybridgroup/gobot" + "gobot.io/x/gobot" ) // Driver is gobot software device for audio playback diff --git a/platforms/audio/audio_driver_test.go b/platforms/audio/audio_driver_test.go index d1ca964fc..84eafae3c 100644 --- a/platforms/audio/audio_driver_test.go +++ b/platforms/audio/audio_driver_test.go @@ -6,8 +6,8 @@ import ( "os/exec" "testing" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/gobottest" + "gobot.io/x/gobot" + "gobot.io/x/gobot/gobottest" ) var _ gobot.Driver = (*Driver)(nil) diff --git a/platforms/audio/doc.go b/platforms/audio/doc.go new file mode 100644 index 000000000..04c55adf8 --- /dev/null +++ b/platforms/audio/doc.go @@ -0,0 +1,7 @@ +/* +Package audio provides the Gobot adaptor for audio. + +For more information refer to the README: +https://gobot.io/x/gobot/blob/master/platforms/audio/README.md +*/ +package audio // import "gobot.io/x/gobot/platforms/audio" diff --git a/platforms/beaglebone/README.md b/platforms/beaglebone/README.md index 8cc6dcca2..f4063f0b6 100644 --- a/platforms/beaglebone/README.md +++ b/platforms/beaglebone/README.md @@ -7,7 +7,7 @@ For more info about the BeagleBone platform click [here](http://beagleboard.org/ ## How to Install ``` -go get -d -u github.com/hybridgroup/gobot/... && go install github.com/hybridgroup/gobot/platforms/beaglebone +go get -d -u gobot.io/x/gobot/... && go install gobot.io/x/gobot/platforms/beaglebone ``` ## How to Use @@ -18,9 +18,9 @@ package main import ( "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/drivers/gpio" - "github.com/hybridgroup/gobot/platforms/beaglebone" + "gobot.io/x/gobot" + "gobot.io/x/gobot/drivers/gpio" + "gobot.io/x/gobot/platforms/beaglebone" ) func main() { diff --git a/platforms/beaglebone/beaglebone_adaptor.go b/platforms/beaglebone/beaglebone_adaptor.go index c510d859b..675ccbf7c 100644 --- a/platforms/beaglebone/beaglebone_adaptor.go +++ b/platforms/beaglebone/beaglebone_adaptor.go @@ -11,8 +11,8 @@ import ( "strings" multierror "github.com/hashicorp/go-multierror" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/sysfs" + "gobot.io/x/gobot" + "gobot.io/x/gobot/sysfs" ) var glob = func(pattern string) (matches []string, err error) { diff --git a/platforms/beaglebone/beaglebone_adaptor_test.go b/platforms/beaglebone/beaglebone_adaptor_test.go index 84d96de7e..57dbcdd5e 100644 --- a/platforms/beaglebone/beaglebone_adaptor_test.go +++ b/platforms/beaglebone/beaglebone_adaptor_test.go @@ -5,11 +5,11 @@ import ( "strings" "testing" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/drivers/gpio" - "github.com/hybridgroup/gobot/drivers/i2c" - "github.com/hybridgroup/gobot/gobottest" - "github.com/hybridgroup/gobot/sysfs" + "gobot.io/x/gobot" + "gobot.io/x/gobot/drivers/gpio" + "gobot.io/x/gobot/drivers/i2c" + "gobot.io/x/gobot/gobottest" + "gobot.io/x/gobot/sysfs" ) var _ gobot.Adaptor = (*Adaptor)(nil) diff --git a/platforms/beaglebone/doc.go b/platforms/beaglebone/doc.go index cdb2904c9..1b1b7e62e 100644 --- a/platforms/beaglebone/doc.go +++ b/platforms/beaglebone/doc.go @@ -3,7 +3,7 @@ Package beaglebone provides the Gobot adaptor for the Beaglebone Black. Installing: - go get github.com/hybridgroup/platforms/gobot/beaglebone + go get gobot.io/x/platforms/gobot/beaglebone Example: @@ -12,9 +12,9 @@ Example: import ( "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/drivers/gpio" - "github.com/hybridgroup/gobot/platforms/beaglebone" + "gobot.io/x/gobot" + "gobot.io/x/gobot/drivers/gpio" + "gobot.io/x/gobot/platforms/beaglebone" ) func main() { @@ -37,6 +37,6 @@ Example: } For more information refer to the beaglebone README: -https://github.com/hybridgroup/gobot/blob/master/platforms/beaglebone/README.md +https://gobot.io/x/gobot/blob/master/platforms/beaglebone/README.md */ -package beaglebone +package beaglebone // import "gobot.io/x/gobot/platforms/beaglebone" diff --git a/platforms/beaglebone/pwm_pin.go b/platforms/beaglebone/pwm_pin.go index fa251252c..c20fe5c13 100644 --- a/platforms/beaglebone/pwm_pin.go +++ b/platforms/beaglebone/pwm_pin.go @@ -7,7 +7,7 @@ import ( "strings" "time" - "github.com/hybridgroup/gobot/sysfs" + "gobot.io/x/gobot/sysfs" ) type pwmPin struct { diff --git a/platforms/ble/README.md b/platforms/ble/README.md index a2647b6e4..b5567566a 100644 --- a/platforms/ble/README.md +++ b/platforms/ble/README.md @@ -8,7 +8,7 @@ Learn more about Bluetooth LE [here](http://en.wikipedia.org/wiki/Bluetooth_low_ ## How to Install ``` -go get github.com/hybridgroup/gobot && go install github.com/hybridgroup/gobot/platforms/ble +go get gobot.io/x/gobot && go install gobot.io/x/gobot/platforms/ble ``` ## How To Connect diff --git a/platforms/ble/battery.go b/platforms/ble/battery.go index 29667c38b..525cf819e 100644 --- a/platforms/ble/battery.go +++ b/platforms/ble/battery.go @@ -3,7 +3,7 @@ package ble import ( "bytes" - "github.com/hybridgroup/gobot" + "gobot.io/x/gobot" ) var _ gobot.Driver = (*BatteryDriver)(nil) diff --git a/platforms/ble/ble_client_adaptor.go b/platforms/ble/ble_client_adaptor.go index eef5af8af..b9d25a954 100644 --- a/platforms/ble/ble_client_adaptor.go +++ b/platforms/ble/ble_client_adaptor.go @@ -6,7 +6,7 @@ import ( "strings" "github.com/currantlabs/gatt" - "github.com/hybridgroup/gobot" + "gobot.io/x/gobot" ) var _ gobot.Adaptor = (*ClientAdaptor)(nil) diff --git a/platforms/ble/ble_client_adaptor_test.go b/platforms/ble/ble_client_adaptor_test.go index 3f6aadc9b..2fd81e95a 100644 --- a/platforms/ble/ble_client_adaptor_test.go +++ b/platforms/ble/ble_client_adaptor_test.go @@ -3,7 +3,7 @@ package ble import ( "testing" - "github.com/hybridgroup/gobot/gobottest" + "gobot.io/x/gobot/gobottest" ) func initTestBLEClientAdaptor() *ClientAdaptor { diff --git a/platforms/ble/device_information.go b/platforms/ble/device_information.go index ef006f8da..5ddd1381e 100644 --- a/platforms/ble/device_information.go +++ b/platforms/ble/device_information.go @@ -3,7 +3,7 @@ package ble import ( "bytes" - "github.com/hybridgroup/gobot" + "gobot.io/x/gobot" ) var _ gobot.Driver = (*DeviceInformationDriver)(nil) diff --git a/platforms/ble/doc.go b/platforms/ble/doc.go new file mode 100644 index 000000000..d46331765 --- /dev/null +++ b/platforms/ble/doc.go @@ -0,0 +1,7 @@ +/* +Package ble provides the Gobot adaptor for Bluetooth LE. + +For more information refer to the README: +https://gobot.io/x/gobot/blob/master/platforms/ble/README.md +*/ +package ble // import "gobot.io/x/gobot/platforms/ble" diff --git a/platforms/chip/README.md b/platforms/chip/README.md index 0701a247c..d8fbe1a3a 100644 --- a/platforms/chip/README.md +++ b/platforms/chip/README.md @@ -6,7 +6,7 @@ For documentation about the CHIP platform click [here](http://docs.getchip.com/) ## How to Install ``` -go get -d -u github.com/hybridgroup/gobot/... && go install github.com/hybridgroup/gobot/platforms/chip +go get -d -u gobot.io/x/gobot/... && go install gobot.io/x/gobot/platforms/chip ``` ## Cross compiling for the CHIP @@ -40,9 +40,9 @@ package main import ( "fmt" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/drivers/gpio" - "github.com/hybridgroup/gobot/platforms/chip" + "gobot.io/x/gobot" + "gobot.io/x/gobot/drivers/gpio" + "gobot.io/x/gobot/platforms/chip" ) func main() { diff --git a/platforms/chip/chip_adaptor.go b/platforms/chip/chip_adaptor.go index b3c14aad4..766937b73 100644 --- a/platforms/chip/chip_adaptor.go +++ b/platforms/chip/chip_adaptor.go @@ -6,7 +6,7 @@ import ( "strings" multierror "github.com/hashicorp/go-multierror" - "github.com/hybridgroup/gobot/sysfs" + "gobot.io/x/gobot/sysfs" ) // Adaptor represents a Gobot Adaptor for a C.H.I.P. diff --git a/platforms/chip/chip_adaptor_test.go b/platforms/chip/chip_adaptor_test.go index e2f3e9ed7..ef22c234b 100644 --- a/platforms/chip/chip_adaptor_test.go +++ b/platforms/chip/chip_adaptor_test.go @@ -4,11 +4,11 @@ import ( "errors" "testing" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/drivers/gpio" - "github.com/hybridgroup/gobot/drivers/i2c" - "github.com/hybridgroup/gobot/gobottest" - "github.com/hybridgroup/gobot/sysfs" + "gobot.io/x/gobot" + "gobot.io/x/gobot/drivers/gpio" + "gobot.io/x/gobot/drivers/i2c" + "gobot.io/x/gobot/gobottest" + "gobot.io/x/gobot/sysfs" ) var _ gobot.Adaptor = (*Adaptor)(nil) diff --git a/platforms/chip/doc.go b/platforms/chip/doc.go index c501a5e01..8981bbca1 100644 --- a/platforms/chip/doc.go +++ b/platforms/chip/doc.go @@ -2,6 +2,6 @@ Package chip contains the Gobot adaptor for the CHIP For further information refer to the chip README: -https://github.com/hybridgroup/gobot/blob/master/platforms/chip/README.md +https://gobot.io/x/gobot/blob/master/platforms/chip/README.md */ -package chip +package chip // import "gobot.io/x/gobot/platforms/chip" diff --git a/platforms/digispark/README.md b/platforms/digispark/README.md index c7034903f..2c91f6c3d 100644 --- a/platforms/digispark/README.md +++ b/platforms/digispark/README.md @@ -27,7 +27,7 @@ $ sudo apt-get install libusb-dev Now you can install the package with ``` -go get -d -u github.com/hybridgroup/gobot/... && go install github.com/hybridgroup/gobot/platforms/digispark +go get -d -u gobot.io/x/gobot/... && go install gobot.io/x/gobot/platforms/digispark ``` ## How to Use @@ -38,9 +38,9 @@ package main import ( "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/drivers/gpio" - "github.com/hybridgroup/gobot/platforms/digispark" + "gobot.io/x/gobot" + "gobot.io/x/gobot/drivers/gpio" + "gobot.io/x/gobot/platforms/digispark" ) func main() { diff --git a/platforms/digispark/digispark_adaptor_test.go b/platforms/digispark/digispark_adaptor_test.go index 1f54fa58a..e112de94c 100644 --- a/platforms/digispark/digispark_adaptor_test.go +++ b/platforms/digispark/digispark_adaptor_test.go @@ -4,9 +4,9 @@ import ( "errors" "testing" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/drivers/gpio" - "github.com/hybridgroup/gobot/gobottest" + "gobot.io/x/gobot" + "gobot.io/x/gobot/drivers/gpio" + "gobot.io/x/gobot/gobottest" ) var _ gobot.Adaptor = (*Adaptor)(nil) diff --git a/platforms/digispark/doc.go b/platforms/digispark/doc.go index 9c5b955a9..325fe5e9e 100644 --- a/platforms/digispark/doc.go +++ b/platforms/digispark/doc.go @@ -6,7 +6,7 @@ Installing: This package requires installing `libusb`. Then you can install the package with: - go get github.com/hybridgroup/gobot/platforms/digispark + go get gobot.io/x/gobot/platforms/digispark Example: @@ -15,9 +15,9 @@ Example: import ( "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/drivers/gpio" - "github.com/hybridgroup/gobot/platforms/digispark" + "gobot.io/x/gobot" + "gobot.io/x/gobot/drivers/gpio" + "gobot.io/x/gobot/platforms/digispark" ) func main() { @@ -40,6 +40,6 @@ Example: } For further information refer to digispark README: -https://github.com/hybridgroup/gobot/blob/master/platforms/digispark/README.md +https://gobot.io/x/gobot/blob/master/platforms/digispark/README.md */ -package digispark +package digispark // import "gobot.io/x/gobot/platforms/digispark" diff --git a/platforms/firmata/README.md b/platforms/firmata/README.md index 5a7866f80..f1638a949 100644 --- a/platforms/firmata/README.md +++ b/platforms/firmata/README.md @@ -9,7 +9,7 @@ For more info about the arduino platform click [here](http://arduino.cc/). ## How to Install ``` -go get -d -u github.com/hybridgroup/gobot/... && go install github.com/hybridgroup/gobot/platforms/firmata +go get -d -u gobot.io/x/gobot/... && go install gobot.io/x/gobot/platforms/firmata ``` ## How to Use @@ -20,9 +20,9 @@ package main import ( "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/drivers/gpio" - "github.com/hybridgroup/gobot/platforms/firmata" + "gobot.io/x/gobot" + "gobot.io/x/gobot/drivers/gpio" + "gobot.io/x/gobot/platforms/firmata" ) func main() { diff --git a/platforms/firmata/client/client.go b/platforms/firmata/client/client.go index 26fd557ca..1c7232b88 100644 --- a/platforms/firmata/client/client.go +++ b/platforms/firmata/client/client.go @@ -1,6 +1,6 @@ // Package client provies a client for interacting with microcontrollers // using the Firmata protocol https://github.com/firmata/protocol. -package client +package client // import "gobot.io/x/gobot/platforms/firmata/client" import ( "errors" @@ -9,7 +9,7 @@ import ( "math" "time" - "github.com/hybridgroup/gobot" + "gobot.io/x/gobot" ) // Pin Modes diff --git a/platforms/firmata/client/client_test.go b/platforms/firmata/client/client_test.go index dd6e277c9..d43e0d70b 100644 --- a/platforms/firmata/client/client_test.go +++ b/platforms/firmata/client/client_test.go @@ -5,7 +5,7 @@ import ( "testing" "time" - "github.com/hybridgroup/gobot/gobottest" + "gobot.io/x/gobot/gobottest" ) type readWriteCloser struct{} diff --git a/platforms/firmata/client/examples/blink.go b/platforms/firmata/client/examples/blink.go index d5048138c..5944b8b71 100644 --- a/platforms/firmata/client/examples/blink.go +++ b/platforms/firmata/client/examples/blink.go @@ -4,7 +4,7 @@ import ( "fmt" "time" - "github.com/hybridgroup/gobot/platforms/firmata/client" + "gobot.io/x/gobot/platforms/firmata/client" "github.com/tarm/serial" ) diff --git a/platforms/firmata/doc.go b/platforms/firmata/doc.go index 8066c3573..efe5e617c 100644 --- a/platforms/firmata/doc.go +++ b/platforms/firmata/doc.go @@ -3,7 +3,7 @@ Package firmata provides the Gobot adaptor for microcontrollers that support the Installing: - go get -d -u github.com/hybridgroup/gobot/... && go get github.com/hybridgroup/gobot/platforms/firmata + go get -d -u gobot.io/x/gobot/... && go get gobot.io/x/gobot/platforms/firmata Example: @@ -12,9 +12,9 @@ Example: import ( "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/drivers/gpio" - "github.com/hybridgroup/gobot/platforms/firmata" + "gobot.io/x/gobot" + "gobot.io/x/gobot/drivers/gpio" + "gobot.io/x/gobot/platforms/firmata" ) func main() { @@ -37,6 +37,6 @@ Example: } For further information refer to firmata readme: -https://github.com/hybridgroup/gobot/blob/master/platforms/firmata/README.md +https://gobot.io/x/gobot/blob/master/platforms/firmata/README.md */ -package firmata +package firmata // import "gobot.io/x/gobot/platforms/firmata" diff --git a/platforms/firmata/firmata_adaptor.go b/platforms/firmata/firmata_adaptor.go index a737dc790..46534ad65 100644 --- a/platforms/firmata/firmata_adaptor.go +++ b/platforms/firmata/firmata_adaptor.go @@ -5,8 +5,8 @@ import ( "strconv" "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/platforms/firmata/client" + "gobot.io/x/gobot" + "gobot.io/x/gobot/platforms/firmata/client" "github.com/tarm/serial" ) diff --git a/platforms/firmata/firmata_adaptor_test.go b/platforms/firmata/firmata_adaptor_test.go index 7d2be71d2..6f1499871 100644 --- a/platforms/firmata/firmata_adaptor_test.go +++ b/platforms/firmata/firmata_adaptor_test.go @@ -9,11 +9,11 @@ import ( "testing" "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/drivers/gpio" - "github.com/hybridgroup/gobot/drivers/i2c" - "github.com/hybridgroup/gobot/gobottest" - "github.com/hybridgroup/gobot/platforms/firmata/client" + "gobot.io/x/gobot" + "gobot.io/x/gobot/drivers/gpio" + "gobot.io/x/gobot/drivers/i2c" + "gobot.io/x/gobot/gobottest" + "gobot.io/x/gobot/platforms/firmata/client" ) var _ gobot.Adaptor = (*Adaptor)(nil) diff --git a/platforms/intel-iot/edison/README.md b/platforms/intel-iot/edison/README.md index a68fa5a24..ddb291a0e 100644 --- a/platforms/intel-iot/edison/README.md +++ b/platforms/intel-iot/edison/README.md @@ -53,9 +53,9 @@ package main import ( "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/drivers/gpio" - "github.com/hybridgroup/gobot/platforms/intel-iot/edison" + "gobot.io/x/gobot" + "gobot.io/x/gobot/drivers/gpio" + "gobot.io/x/gobot/platforms/intel-iot/edison" ) func main() { @@ -82,7 +82,7 @@ func main() { } ``` -You can read the [full API documentation online](http://godoc.org/github.com/hybridgroup/gobot). +You can read the [full API documentation online](http://godoc.org/gobot.io/x/gobot). #### Cross compiling for the Intel Edison diff --git a/platforms/intel-iot/edison/arduino_pinmap.go b/platforms/intel-iot/edison/arduino_pinmap.go index 9e209deed..1a317a5b3 100644 --- a/platforms/intel-iot/edison/arduino_pinmap.go +++ b/platforms/intel-iot/edison/arduino_pinmap.go @@ -1,6 +1,6 @@ package edison -import "github.com/hybridgroup/gobot/sysfs" +import "gobot.io/x/gobot/sysfs" var arduinoPinMap = map[string]sysfsPin{ "0": sysfsPin{ diff --git a/platforms/intel-iot/edison/doc.go b/platforms/intel-iot/edison/doc.go index 924a1b31b..a5d2d996d 100644 --- a/platforms/intel-iot/edison/doc.go +++ b/platforms/intel-iot/edison/doc.go @@ -2,6 +2,6 @@ Package edison contains the Gobot adaptor for the Intel Edison. For further information refer to intel-iot README: -https://github.com/hybridgroup/gobot/blob/master/platforms/intel-iot/edison/README.md +https://gobot.io/x/gobot/blob/master/platforms/intel-iot/edison/README.md */ -package edison +package edison // import "gobot.io/x/gobot/platforms/intel-iot/edison" diff --git a/platforms/intel-iot/edison/edison_adaptor.go b/platforms/intel-iot/edison/edison_adaptor.go index 035b85d3d..68838ce32 100644 --- a/platforms/intel-iot/edison/edison_adaptor.go +++ b/platforms/intel-iot/edison/edison_adaptor.go @@ -6,8 +6,8 @@ import ( "strconv" multierror "github.com/hashicorp/go-multierror" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/sysfs" + "gobot.io/x/gobot" + "gobot.io/x/gobot/sysfs" ) func writeFile(path string, data []byte) (i int, err error) { diff --git a/platforms/intel-iot/edison/edison_adaptor_test.go b/platforms/intel-iot/edison/edison_adaptor_test.go index 0397e04ee..1b4e7e6ef 100644 --- a/platforms/intel-iot/edison/edison_adaptor_test.go +++ b/platforms/intel-iot/edison/edison_adaptor_test.go @@ -4,11 +4,11 @@ import ( "errors" "testing" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/drivers/gpio" - "github.com/hybridgroup/gobot/drivers/i2c" - "github.com/hybridgroup/gobot/gobottest" - "github.com/hybridgroup/gobot/sysfs" + "gobot.io/x/gobot" + "gobot.io/x/gobot/drivers/gpio" + "gobot.io/x/gobot/drivers/i2c" + "gobot.io/x/gobot/gobottest" + "gobot.io/x/gobot/sysfs" ) var _ gobot.Adaptor = (*Adaptor)(nil) diff --git a/platforms/intel-iot/intel-iot.go b/platforms/intel-iot/intel-iot.go index a6e2b1f96..f681b6d66 100644 --- a/platforms/intel-iot/intel-iot.go +++ b/platforms/intel-iot/intel-iot.go @@ -6,6 +6,6 @@ This package currently supports the following Intel IoT hardware: - Intel Joule developer kit For further information refer to intel-iot README: -https://github.com/hybridgroup/gobot/blob/master/platforms/intel-iot/README.md +https://gobot.io/x/gobot/blob/master/platforms/intel-iot/README.md */ package inteliot diff --git a/platforms/intel-iot/joule/README.md b/platforms/intel-iot/joule/README.md index 41b9cdef8..17bffd492 100644 --- a/platforms/intel-iot/joule/README.md +++ b/platforms/intel-iot/joule/README.md @@ -24,9 +24,9 @@ package main import ( "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/drivers/gpio" - "github.com/hybridgroup/gobot/platforms/intel-iot/joule" + "gobot.io/x/gobot" + "gobot.io/x/gobot/drivers/gpio" + "gobot.io/x/gobot/platforms/intel-iot/joule" ) func main() { @@ -49,7 +49,7 @@ func main() { } ``` -You can read the [full API documentation online](http://godoc.org/github.com/hybridgroup/gobot). +You can read the [full API documentation online](http://godoc.org/gobot.io/x/gobot). #### Cross compiling for the Intel Joule diff --git a/platforms/intel-iot/joule/doc.go b/platforms/intel-iot/joule/doc.go index ba3bc3ce5..f8e5bb5fa 100644 --- a/platforms/intel-iot/joule/doc.go +++ b/platforms/intel-iot/joule/doc.go @@ -2,6 +2,6 @@ Package joule contains the Gobot adaptor for the Intel Joule. For further information refer to intel-iot README: -https://github.com/hybridgroup/gobot/blob/master/platforms/intel-iot/joule/README.md +https://gobot.io/x/gobot/blob/master/platforms/intel-iot/joule/README.md */ -package joule +package joule // import "gobot.io/x/gobot/platforms/intel-iot/joule" diff --git a/platforms/intel-iot/joule/joule_adaptor.go b/platforms/intel-iot/joule/joule_adaptor.go index 4e2683c76..616b887e1 100644 --- a/platforms/intel-iot/joule/joule_adaptor.go +++ b/platforms/intel-iot/joule/joule_adaptor.go @@ -6,8 +6,8 @@ import ( "strconv" multierror "github.com/hashicorp/go-multierror" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/sysfs" + "gobot.io/x/gobot" + "gobot.io/x/gobot/sysfs" ) func writeFile(path string, data []byte) (i int, err error) { diff --git a/platforms/intel-iot/joule/joule_adaptor_test.go b/platforms/intel-iot/joule/joule_adaptor_test.go index 2445174a3..aaf709090 100644 --- a/platforms/intel-iot/joule/joule_adaptor_test.go +++ b/platforms/intel-iot/joule/joule_adaptor_test.go @@ -4,11 +4,11 @@ import ( "errors" "testing" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/drivers/gpio" - "github.com/hybridgroup/gobot/drivers/i2c" - "github.com/hybridgroup/gobot/gobottest" - "github.com/hybridgroup/gobot/sysfs" + "gobot.io/x/gobot" + "gobot.io/x/gobot/drivers/gpio" + "gobot.io/x/gobot/drivers/i2c" + "gobot.io/x/gobot/gobottest" + "gobot.io/x/gobot/sysfs" ) var _ gobot.Adaptor = (*Adaptor)(nil) diff --git a/platforms/joystick/README.md b/platforms/joystick/README.md index 1e5822cf9..dba4cab68 100644 --- a/platforms/joystick/README.md +++ b/platforms/joystick/README.md @@ -28,7 +28,7 @@ $ sudo apt-get install libsdl2-2.0-0 Now you can install the package with ``` -go get -d -u github.com/hybridgroup/gobot/... && go install github.com/hybridgroup/gobot/platforms/joystick +go get -d -u gobot.io/x/gobot/... && go install gobot.io/x/gobot/platforms/joystick ``` ## How to Use @@ -146,8 +146,8 @@ package main import ( "fmt" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/platforms/joystick" + "gobot.io/x/gobot" + "gobot.io/x/gobot/platforms/joystick" ) func main() { diff --git a/platforms/joystick/doc.go b/platforms/joystick/doc.go index 82b6bbeab..c9e020787 100644 --- a/platforms/joystick/doc.go +++ b/platforms/joystick/doc.go @@ -6,7 +6,7 @@ Installing: This package requires `sdl2` to be installed on your system Then install package with: - go get github.com/hybridgroup/gobot/platforms/joystick + go get gobot.io/x/gobot/platforms/joystick Example: @@ -15,8 +15,8 @@ Example: import ( "fmt" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/platforms/joystick" + "gobot.io/x/gobot" + "gobot.io/x/gobot/platforms/joystick" ) func main() { @@ -62,6 +62,6 @@ Example: } For further information refer to joystick README: -https://github.com/hybridgroup/gobot/blob/master/platforms/joystick/README.md +https://gobot.io/x/gobot/blob/master/platforms/joystick/README.md */ -package joystick +package joystick // import "gobot.io/x/gobot/platforms/joystick" diff --git a/platforms/joystick/joystick_adaptor_test.go b/platforms/joystick/joystick_adaptor_test.go index 0968ff9a0..83d139616 100644 --- a/platforms/joystick/joystick_adaptor_test.go +++ b/platforms/joystick/joystick_adaptor_test.go @@ -4,8 +4,8 @@ import ( "errors" "testing" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/gobottest" + "gobot.io/x/gobot" + "gobot.io/x/gobot/gobottest" ) var _ gobot.Adaptor = (*Adaptor)(nil) diff --git a/platforms/joystick/joystick_driver.go b/platforms/joystick/joystick_driver.go index c9ccc2639..b998b03f7 100644 --- a/platforms/joystick/joystick_driver.go +++ b/platforms/joystick/joystick_driver.go @@ -6,7 +6,7 @@ import ( "io/ioutil" "time" - "github.com/hybridgroup/gobot" + "gobot.io/x/gobot" "github.com/veandco/go-sdl2/sdl" ) diff --git a/platforms/joystick/joystick_driver_test.go b/platforms/joystick/joystick_driver_test.go index 19d0c4e96..952396959 100644 --- a/platforms/joystick/joystick_driver_test.go +++ b/platforms/joystick/joystick_driver_test.go @@ -4,8 +4,8 @@ import ( "testing" "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/gobottest" + "gobot.io/x/gobot" + "gobot.io/x/gobot/gobottest" "github.com/veandco/go-sdl2/sdl" ) diff --git a/platforms/keyboard/README.md b/platforms/keyboard/README.md index feddea189..238476cff 100644 --- a/platforms/keyboard/README.md +++ b/platforms/keyboard/README.md @@ -5,7 +5,7 @@ This module implements support for keyboard events, wrapping the `stty` utility. ## How to Install ``` -go get github.com/hybridgroup/gobot && go install github.com/hybridgroup/gobot/platforms/keyboard +go get gobot.io/x/gobot && go install gobot.io/x/gobot/platforms/keyboard ``` ## How to Use @@ -18,8 +18,8 @@ package main import ( "fmt" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/platforms/keyboard" + "gobot.io/x/gobot" + "gobot.io/x/gobot/platforms/keyboard" ) func main() { diff --git a/platforms/keyboard/doc.go b/platforms/keyboard/doc.go index 5aef1acb9..00f503763 100644 --- a/platforms/keyboard/doc.go +++ b/platforms/keyboard/doc.go @@ -5,7 +5,7 @@ Installing: Then you can install the package with: - go get github.com/hybridgroup/gobot && go install github.com/hybridgroup/gobot/platforms/keyboard + go get gobot.io/x/gobot && go install gobot.io/x/gobot/platforms/keyboard Example: @@ -14,8 +14,8 @@ Example: import ( "fmt" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/platforms/keyboard" + "gobot.io/x/gobot" + "gobot.io/x/gobot/platforms/keyboard" ) func main() { @@ -44,6 +44,6 @@ Example: For further information refer to keyboard README: -https://github.com/hybridgroup/gobot/blob/master/platforms/keyboard/README.md +https://gobot.io/x/gobot/blob/master/platforms/keyboard/README.md */ -package keyboard +package keyboard // import "gobot.io/x/gobot/platforms/keyboard" diff --git a/platforms/keyboard/keyboard_driver.go b/platforms/keyboard/keyboard_driver.go index eb0a8509d..6280d99e6 100644 --- a/platforms/keyboard/keyboard_driver.go +++ b/platforms/keyboard/keyboard_driver.go @@ -4,7 +4,7 @@ import ( "log" "os" - "github.com/hybridgroup/gobot" + "gobot.io/x/gobot" ) const ( diff --git a/platforms/keyboard/keyboard_driver_test.go b/platforms/keyboard/keyboard_driver_test.go index fabf3b09d..c50311872 100644 --- a/platforms/keyboard/keyboard_driver_test.go +++ b/platforms/keyboard/keyboard_driver_test.go @@ -4,8 +4,8 @@ import ( "os" "testing" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/gobottest" + "gobot.io/x/gobot" + "gobot.io/x/gobot/gobottest" ) var _ gobot.Driver = (*Driver)(nil) diff --git a/platforms/keyboard/keyboard_test.go b/platforms/keyboard/keyboard_test.go index 6eb63bdff..ac159826d 100644 --- a/platforms/keyboard/keyboard_test.go +++ b/platforms/keyboard/keyboard_test.go @@ -3,7 +3,7 @@ package keyboard import ( "testing" - "github.com/hybridgroup/gobot/gobottest" + "gobot.io/x/gobot/gobottest" ) func TestParseSpace(t *testing.T) { diff --git a/platforms/leap/README.md b/platforms/leap/README.md index 66ccb1740..904f0e451 100644 --- a/platforms/leap/README.md +++ b/platforms/leap/README.md @@ -11,7 +11,7 @@ First install the [Leap Motion Software](https://www.leapmotion.com/setup) Now you can install the package with: ``` -go get -d -u github.com/hybridgroup/gobot/... && go install github.com/hybridgroup/gobot/platforms/leap +go get -d -u gobot.io/x/gobot/... && go install gobot.io/x/gobot/platforms/leap ``` ## How to Use @@ -22,8 +22,8 @@ package main import ( "fmt" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/platforms/leap" + "gobot.io/x/gobot" + "gobot.io/x/gobot/platforms/leap" ) func main() { diff --git a/platforms/leap/doc.go b/platforms/leap/doc.go index 31b514f69..cd8424a44 100644 --- a/platforms/leap/doc.go +++ b/platforms/leap/doc.go @@ -6,7 +6,7 @@ Installing: * First install the [Leap Motion Software](https://www.leapmotion.com/setup). * Then install the package: - go get github.com/hybridgroup/gobot/platforms/leap + go get gobot.io/x/gobot/platforms/leap Example: @@ -15,8 +15,8 @@ Example: import ( "fmt" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/platforms/leap" + "gobot.io/x/gobot" + "gobot.io/x/gobot/platforms/leap" ) func main() { @@ -39,6 +39,6 @@ Example: } For more information refer to the leap README: -https://github.com/hybridgroup/gobot/blob/master/platforms/leap/README.md +https://gobot.io/x/gobot/blob/master/platforms/leap/README.md */ -package leap +package leap // import "gobot.io/x/gobot/platforms/leap" diff --git a/platforms/leap/leap_motion_adaptor_test.go b/platforms/leap/leap_motion_adaptor_test.go index 8f021420f..ddd91f8f2 100644 --- a/platforms/leap/leap_motion_adaptor_test.go +++ b/platforms/leap/leap_motion_adaptor_test.go @@ -5,8 +5,8 @@ import ( "io" "testing" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/gobottest" + "gobot.io/x/gobot" + "gobot.io/x/gobot/gobottest" ) var _ gobot.Adaptor = (*Adaptor)(nil) diff --git a/platforms/leap/leap_motion_driver.go b/platforms/leap/leap_motion_driver.go index 095f0e3fb..29eb39215 100644 --- a/platforms/leap/leap_motion_driver.go +++ b/platforms/leap/leap_motion_driver.go @@ -4,7 +4,7 @@ import ( "encoding/json" "io" - "github.com/hybridgroup/gobot" + "gobot.io/x/gobot" "golang.org/x/net/websocket" ) diff --git a/platforms/leap/leap_motion_driver_test.go b/platforms/leap/leap_motion_driver_test.go index 7e0cc70eb..92dc26d85 100644 --- a/platforms/leap/leap_motion_driver_test.go +++ b/platforms/leap/leap_motion_driver_test.go @@ -6,8 +6,8 @@ import ( "io/ioutil" "testing" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/gobottest" + "gobot.io/x/gobot" + "gobot.io/x/gobot/gobottest" ) var _ gobot.Driver = (*Driver)(nil) diff --git a/platforms/mavlink/README.md b/platforms/mavlink/README.md index f810b689d..1b1270225 100644 --- a/platforms/mavlink/README.md +++ b/platforms/mavlink/README.md @@ -5,7 +5,7 @@ For information on the MAVlink communication protocol click [here](http://qgroun ## How to Install ``` -go get -d -u github.com/hybridgroup/gobot/... && go install github.com/hybridgroup/gobot/platforms/mavlink +go get -d -u gobot.io/x/gobot/... && go install gobot.io/x/gobot/platforms/mavlink ``` @@ -17,9 +17,9 @@ package main import ( "fmt" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/platforms/mavlink" - common "github.com/hybridgroup/gobot/platforms/mavlink/common" + "gobot.io/x/gobot" + "gobot.io/x/gobot/platforms/mavlink" + common "gobot.io/x/gobot/platforms/mavlink/common" ) func main() { diff --git a/platforms/mavlink/doc.go b/platforms/mavlink/doc.go index 74021460d..9adbb7dd5 100644 --- a/platforms/mavlink/doc.go +++ b/platforms/mavlink/doc.go @@ -3,7 +3,7 @@ Package mavlink contains the Gobot adaptor and driver for the MAVlink Communicat Installing: - go get github.com/hybridgroup/gobot/platforms/mavlink + go get gobot.io/x/gobot/platforms/mavlink Example: @@ -12,9 +12,9 @@ Example: import ( "fmt" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/platforms/mavlink" - common "github.com/hybridgroup/gobot/platforms/mavlink/common" + "gobot.io/x/gobot" + "gobot.io/x/gobot/platforms/mavlink" + common "gobot.io/x/gobot/platforms/mavlink/common" ) func main() { @@ -63,6 +63,6 @@ Example: } For further information refer to mavlink README: -https://github.com/hybridgroup/gobot/blob/master/platforms/mavlink/README.md +https://gobot.io/x/gobot/blob/master/platforms/mavlink/README.md */ -package mavlink +package mavlink // import "gobot.io/x/gobot/platforms/mavlink" diff --git a/platforms/mavlink/mavlink_adaptor_test.go b/platforms/mavlink/mavlink_adaptor_test.go index c2f11c375..88d48cadf 100644 --- a/platforms/mavlink/mavlink_adaptor_test.go +++ b/platforms/mavlink/mavlink_adaptor_test.go @@ -5,8 +5,8 @@ import ( "io" "testing" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/gobottest" + "gobot.io/x/gobot" + "gobot.io/x/gobot/gobottest" ) var _ gobot.Adaptor = (*Adaptor)(nil) diff --git a/platforms/mavlink/mavlink_driver.go b/platforms/mavlink/mavlink_driver.go index d7a1d26eb..181a317ec 100644 --- a/platforms/mavlink/mavlink_driver.go +++ b/platforms/mavlink/mavlink_driver.go @@ -3,8 +3,8 @@ package mavlink import ( "time" - "github.com/hybridgroup/gobot" - common "github.com/hybridgroup/gobot/platforms/mavlink/common" + "gobot.io/x/gobot" + common "gobot.io/x/gobot/platforms/mavlink/common" ) const ( diff --git a/platforms/mavlink/mavlink_driver_test.go b/platforms/mavlink/mavlink_driver_test.go index 476a2fdf1..4691d12bc 100644 --- a/platforms/mavlink/mavlink_driver_test.go +++ b/platforms/mavlink/mavlink_driver_test.go @@ -5,9 +5,9 @@ import ( "testing" "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/gobottest" - common "github.com/hybridgroup/gobot/platforms/mavlink/common" + "gobot.io/x/gobot" + "gobot.io/x/gobot/gobottest" + common "gobot.io/x/gobot/platforms/mavlink/common" ) var _ gobot.Driver = (*Driver)(nil) diff --git a/platforms/megapi/README.md b/platforms/megapi/README.md index b8cabdd95..92b27d810 100644 --- a/platforms/megapi/README.md +++ b/platforms/megapi/README.md @@ -7,7 +7,7 @@ The code is based on a python implementation that can be found [here](https://gi ## How to Install ``` -go get -d -u github.com/hybridgroup/gobot/... && go install github.com/hybridgroup/gobot/platforms/megapi +go get -d -u gobot.io/x/gobot/... && go install gobot.io/x/gobot/platforms/megapi ``` ## How to Use @@ -16,8 +16,8 @@ go get -d -u github.com/hybridgroup/gobot/... && go install github.com/hybridgro package main import ( - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/platforms/megapi" + "gobot.io/x/gobot" + "gobot.io/x/gobot/platforms/megapi" "time" ) diff --git a/platforms/megapi/doc.go b/platforms/megapi/doc.go new file mode 100644 index 000000000..c454f41c6 --- /dev/null +++ b/platforms/megapi/doc.go @@ -0,0 +1,7 @@ +/* +Package megapi provides the Gobot adaptor for MegaPi. + +For more information refer to the README: +https://gobot.io/x/gobot/blob/master/platforms/megapi/README.md +*/ +package megapi // import "gobot.io/x/gobot/platforms/megapi" diff --git a/platforms/megapi/megapi_adaptor.go b/platforms/megapi/megapi_adaptor.go index 31c12ef21..370c63215 100644 --- a/platforms/megapi/megapi_adaptor.go +++ b/platforms/megapi/megapi_adaptor.go @@ -4,7 +4,7 @@ import ( "io" "time" - "github.com/hybridgroup/gobot" + "gobot.io/x/gobot" "github.com/tarm/serial" ) diff --git a/platforms/megapi/motor_driver.go b/platforms/megapi/motor_driver.go index b28c32c9b..be7398722 100644 --- a/platforms/megapi/motor_driver.go +++ b/platforms/megapi/motor_driver.go @@ -5,7 +5,7 @@ import ( "encoding/binary" "sync" - "github.com/hybridgroup/gobot" + "gobot.io/x/gobot" ) var _ gobot.Driver = (*MotorDriver)(nil) diff --git a/platforms/mqtt/README.md b/platforms/mqtt/README.md index a0a2a6e60..d82b8ee7d 100644 --- a/platforms/mqtt/README.md +++ b/platforms/mqtt/README.md @@ -11,7 +11,7 @@ For more info about the MQTT machine to machine messaging standard, go to http:/ Install running: ``` -go get -d -u github.com/hybridgroup/gobot/... && go install github.com/hybridgroup/gobot/platforms/mqtt +go get -d -u gobot.io/x/gobot/... && go install gobot.io/x/gobot/platforms/mqtt ``` ## How to Use @@ -22,8 +22,8 @@ Before running the example, make sure you have an MQTT message broker running so package main import ( - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/platforms/mqtt" + "gobot.io/x/gobot" + "gobot.io/x/gobot/platforms/mqtt" "fmt" "time" ) @@ -63,7 +63,7 @@ func main() { ## Contributing -For our contribution guidelines, please go to https://github.com/hybridgroup/gobot/blob/master/CONTRIBUTING.md +For our contribution guidelines, please go to https://gobot.io/x/gobot/blob/master/CONTRIBUTING.md ## License diff --git a/platforms/mqtt/doc.go b/platforms/mqtt/doc.go index 53695c1f6..b65834754 100644 --- a/platforms/mqtt/doc.go +++ b/platforms/mqtt/doc.go @@ -3,9 +3,9 @@ Package mqtt provides Gobot adaptor for the mqtt message service. Installing: - go get github.com/hybridgroup/gobot/platforms/mqtt + go get gobot.io/x/gobot/platforms/mqtt For further information refer to mqtt README: -https://github.com/hybridgroup/gobot/blob/master/platforms/mqtt/README.md +https://gobot.io/x/gobot/blob/master/platforms/mqtt/README.md */ -package mqtt +package mqtt // import "gobot.io/x/gobot/platforms/mqtt" diff --git a/platforms/mqtt/mqtt_adaptor_test.go b/platforms/mqtt/mqtt_adaptor_test.go index e4dccfc0a..1bc222ae9 100644 --- a/platforms/mqtt/mqtt_adaptor_test.go +++ b/platforms/mqtt/mqtt_adaptor_test.go @@ -6,8 +6,8 @@ import ( "testing" multierror "github.com/hashicorp/go-multierror" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/gobottest" + "gobot.io/x/gobot" + "gobot.io/x/gobot/gobottest" ) var _ gobot.Adaptor = (*Adaptor)(nil) diff --git a/platforms/nats/README.md b/platforms/nats/README.md index cc9676321..0940f039e 100644 --- a/platforms/nats/README.md +++ b/platforms/nats/README.md @@ -11,7 +11,7 @@ The NATS messaging protocol (http://www.nats.io/documentation/internals/nats-pro Install running: ``` -go get -d -u github.com/hybridgroup/gobot/... && go install github.com/hybridgroup/gobot/platforms/nats +go get -d -u gobot.io/x/gobot/... && go install gobot.io/x/gobot/platforms/nats ``` ## How to Use @@ -25,8 +25,8 @@ import ( "fmt" "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/platforms/nats" + "gobot.io/x/gobot" + "gobot.io/x/gobot/platforms/nats" ) func main() { @@ -71,7 +71,7 @@ func main() { ## Contributing -For our contribution guidelines, please go to https://github.com/hybridgroup/gobot/blob/master/CONTRIBUTING.md +For our contribution guidelines, please go to https://gobot.io/x/gobot/blob/master/CONTRIBUTING.md ## License diff --git a/platforms/nats/doc.go b/platforms/nats/doc.go index 3d6af631e..55370ef0e 100644 --- a/platforms/nats/doc.go +++ b/platforms/nats/doc.go @@ -1,8 +1,8 @@ /* Package nats provides Gobot adaptor for the nats message service. Installing: - go get github.com/hybridgroup/gobot/platforms/nats + go get gobot.io/x/gobot/platforms/nats For further information refer to mqtt README: -https://github.com/hybridgroup/gobot/blob/master/platforms/nats/README.md +https://gobot.io/x/gobot/blob/master/platforms/nats/README.md */ -package nats +package nats // import "gobot.io/x/gobot/platforms/nats" diff --git a/platforms/nats/nats_adaptor_test.go b/platforms/nats/nats_adaptor_test.go index eb8dbc8f8..65cb1907a 100644 --- a/platforms/nats/nats_adaptor_test.go +++ b/platforms/nats/nats_adaptor_test.go @@ -5,8 +5,8 @@ import ( "fmt" "testing" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/gobottest" + "gobot.io/x/gobot" + "gobot.io/x/gobot/gobottest" "github.com/nats-io/nats" ) diff --git a/platforms/neurosky/README.md b/platforms/neurosky/README.md index fb2f8f983..69fbdfb35 100644 --- a/platforms/neurosky/README.md +++ b/platforms/neurosky/README.md @@ -8,7 +8,7 @@ This package contains the Gobot adaptor and driver for the [Neurosky Mindwave Mo Installing Gobot with Neurosky support is pretty easy. ``` -go get -d -u github.com/hybridgroup/gobot/... && go install github.com/hybridgroup/gobot/platforms/neurosky +go get -d -u gobot.io/x/gobot/... && go install gobot.io/x/gobot/platforms/neurosky ``` ## How To Connect @@ -21,7 +21,7 @@ Now you must pair with the Mindwave. Open System Preferences > Bluetooth. Now wi ### Ubuntu -Connecting to the Mindwave from Ubuntu or any other Linux-based OS can be done entirely from the command line using [Gort](https://github.com/hybridgroup/gort) CLI commands. Here are the steps. +Connecting to the Mindwave from Ubuntu or any other Linux-based OS can be done entirely from the command line using [Gort](https://gobot.io/x/gort) CLI commands. Here are the steps. Find the address of the Mindwave, by using: ``` @@ -52,8 +52,8 @@ package main import ( "fmt" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/platforms/neurosky" + "gobot.io/x/gobot" + "gobot.io/x/gobot/platforms/neurosky" ) func main() { diff --git a/platforms/neurosky/doc.go b/platforms/neurosky/doc.go index 393c80d80..3a1480cb2 100644 --- a/platforms/neurosky/doc.go +++ b/platforms/neurosky/doc.go @@ -3,7 +3,7 @@ Package neurosky contains the Gobot adaptor and driver for the Neurosky Mindwave Installing: - go get github.com/hybridgroup/gobot/platforms/neurosky + go get gobot.io/x/gobot/platforms/neurosky Example: @@ -12,8 +12,8 @@ Example: import ( "fmt" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/platforms/neurosky" + "gobot.io/x/gobot" + "gobot.io/x/gobot/platforms/neurosky" ) func main() { @@ -63,6 +63,6 @@ Example: } For further information refer to neuroky README: -https://github.com/hybridgroup/gobot/blob/master/platforms/neurosky/README.md +https://gobot.io/x/gobot/blob/master/platforms/neurosky/README.md */ -package neurosky +package neurosky // import "gobot.io/x/gobot/platforms/neurosky" diff --git a/platforms/neurosky/neurosky_adaptor_test.go b/platforms/neurosky/neurosky_adaptor_test.go index 8a9f1214d..6492f85cd 100644 --- a/platforms/neurosky/neurosky_adaptor_test.go +++ b/platforms/neurosky/neurosky_adaptor_test.go @@ -5,8 +5,8 @@ import ( "io" "testing" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/gobottest" + "gobot.io/x/gobot" + "gobot.io/x/gobot/gobottest" ) var _ gobot.Adaptor = (*Adaptor)(nil) diff --git a/platforms/neurosky/neurosky_driver.go b/platforms/neurosky/neurosky_driver.go index fb3f990c2..d4ed00152 100644 --- a/platforms/neurosky/neurosky_driver.go +++ b/platforms/neurosky/neurosky_driver.go @@ -3,7 +3,7 @@ package neurosky import ( "bytes" - "github.com/hybridgroup/gobot" + "gobot.io/x/gobot" ) const ( diff --git a/platforms/neurosky/neurosky_driver_test.go b/platforms/neurosky/neurosky_driver_test.go index 304d5b6b2..72fab3221 100644 --- a/platforms/neurosky/neurosky_driver_test.go +++ b/platforms/neurosky/neurosky_driver_test.go @@ -7,8 +7,8 @@ import ( "testing" "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/gobottest" + "gobot.io/x/gobot" + "gobot.io/x/gobot/gobottest" ) var _ gobot.Driver = (*Driver)(nil) diff --git a/platforms/opencv/README.md b/platforms/opencv/README.md index e38bb956b..247272e74 100644 --- a/platforms/opencv/README.md +++ b/platforms/opencv/README.md @@ -33,7 +33,7 @@ Follow the official [OpenCV installation guide](http://docs.opencv.org/doc/tutor Now you can install the package with ``` -go get -d -u github.com/hybridgroup/gobot/... && go install github.com/hybridgroup/gobot/platforms/opencv +go get -d -u gobot.io/x/gobot/... && go install gobot.io/x/gobot/platforms/opencv ``` ## How to Use @@ -45,8 +45,8 @@ package main import ( cv "github.com/lazywei/go-opencv/opencv" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/platforms/opencv" + "gobot.io/x/gobot" + "gobot.io/x/gobot/platforms/opencv" ) func main() { diff --git a/platforms/opencv/camera_driver.go b/platforms/opencv/camera_driver.go index 7a387e906..aed7d1dcc 100644 --- a/platforms/opencv/camera_driver.go +++ b/platforms/opencv/camera_driver.go @@ -5,7 +5,7 @@ import ( "time" - "github.com/hybridgroup/gobot" + "gobot.io/x/gobot" cv "github.com/lazywei/go-opencv/opencv" ) diff --git a/platforms/opencv/camera_driver_test.go b/platforms/opencv/camera_driver_test.go index 652864080..6794f9de1 100644 --- a/platforms/opencv/camera_driver_test.go +++ b/platforms/opencv/camera_driver_test.go @@ -4,8 +4,8 @@ import ( "testing" "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/gobottest" + "gobot.io/x/gobot" + "gobot.io/x/gobot/gobottest" ) var _ gobot.Driver = (*CameraDriver)(nil) diff --git a/platforms/opencv/doc.go b/platforms/opencv/doc.go index b1315d32d..48eb80b21 100644 --- a/platforms/opencv/doc.go +++ b/platforms/opencv/doc.go @@ -7,16 +7,16 @@ This package requires `opencv` to be installed on your system Then you can install the package with: - go get github.com/hybridgroup/gobot && go install github.com/hybridgroup/gobot/platforms/opencv + go get gobot.io/x/gobot && go install gobot.io/x/gobot/platforms/opencv Example: package main import ( - cv "github.com/hybridgroup/go-opencv/opencv" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/platforms/opencv" + cv "gobot.io/x/go-opencv/opencv" + "gobot.io/x/gobot" + "gobot.io/x/gobot/platforms/opencv" ) func main() { @@ -38,6 +38,6 @@ Example: } For further information refer to opencv README: -https://github.com/hybridgroup/gobot/blob/master/platforms/opencv/README.md +https://gobot.io/x/gobot/blob/master/platforms/opencv/README.md */ -package opencv +package opencv // import "gobot.io/x/gobot/platforms/opencv" diff --git a/platforms/opencv/utils_test.go b/platforms/opencv/utils_test.go index 180bc38de..aaab27ae1 100644 --- a/platforms/opencv/utils_test.go +++ b/platforms/opencv/utils_test.go @@ -5,7 +5,7 @@ import ( "runtime" "testing" - "github.com/hybridgroup/gobot/gobottest" + "gobot.io/x/gobot/gobottest" cv "github.com/lazywei/go-opencv/opencv" ) diff --git a/platforms/opencv/window_driver.go b/platforms/opencv/window_driver.go index 73d4a6a5f..fc5f3ce4a 100644 --- a/platforms/opencv/window_driver.go +++ b/platforms/opencv/window_driver.go @@ -1,7 +1,7 @@ package opencv import ( - "github.com/hybridgroup/gobot" + "gobot.io/x/gobot" cv "github.com/lazywei/go-opencv/opencv" ) diff --git a/platforms/opencv/window_driver_test.go b/platforms/opencv/window_driver_test.go index bf2531a72..f375837c7 100644 --- a/platforms/opencv/window_driver_test.go +++ b/platforms/opencv/window_driver_test.go @@ -5,8 +5,8 @@ import ( "runtime" "testing" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/gobottest" + "gobot.io/x/gobot" + "gobot.io/x/gobot/gobottest" cv "github.com/lazywei/go-opencv/opencv" ) diff --git a/platforms/parrot/ardrone/README.md b/platforms/parrot/ardrone/README.md index abba8e504..345549eb1 100644 --- a/platforms/parrot/ardrone/README.md +++ b/platforms/parrot/ardrone/README.md @@ -6,7 +6,7 @@ For more info about the ARDrone platform click [here](http://ardrone2.parrot.com ## How to Install ``` -go get -d -u github.com/hybridgroup/gobot/... && go install github.com/hybridgroup/gobot/platforms/parrot/ardrone +go get -d -u gobot.io/x/gobot/... && go install gobot.io/x/gobot/platforms/parrot/ardrone ``` ## How to Use ```go @@ -15,8 +15,8 @@ package main import ( "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/platforms/parrot/ardrone" + "gobot.io/x/gobot" + "gobot.io/x/gobot/platforms/parrot/ardrone" ) func main() { diff --git a/platforms/parrot/ardrone/ardrone_adaptor_test.go b/platforms/parrot/ardrone/ardrone_adaptor_test.go index b23418676..b9d1159c4 100644 --- a/platforms/parrot/ardrone/ardrone_adaptor_test.go +++ b/platforms/parrot/ardrone/ardrone_adaptor_test.go @@ -4,8 +4,8 @@ import ( "errors" "testing" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/gobottest" + "gobot.io/x/gobot" + "gobot.io/x/gobot/gobottest" ) var _ gobot.Adaptor = (*Adaptor)(nil) diff --git a/platforms/parrot/ardrone/ardrone_driver.go b/platforms/parrot/ardrone/ardrone_driver.go index cb9613039..94fa697bd 100644 --- a/platforms/parrot/ardrone/ardrone_driver.go +++ b/platforms/parrot/ardrone/ardrone_driver.go @@ -1,7 +1,7 @@ package ardrone import ( - "github.com/hybridgroup/gobot" + "gobot.io/x/gobot" ) const ( diff --git a/platforms/parrot/ardrone/ardrone_driver_test.go b/platforms/parrot/ardrone/ardrone_driver_test.go index e978d8940..b77c08630 100644 --- a/platforms/parrot/ardrone/ardrone_driver_test.go +++ b/platforms/parrot/ardrone/ardrone_driver_test.go @@ -3,8 +3,8 @@ package ardrone import ( "testing" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/gobottest" + "gobot.io/x/gobot" + "gobot.io/x/gobot/gobottest" ) var _ gobot.Driver = (*Driver)(nil) diff --git a/platforms/parrot/ardrone/doc.go b/platforms/parrot/ardrone/doc.go index 00014bf13..cfd8ac0e7 100644 --- a/platforms/parrot/ardrone/doc.go +++ b/platforms/parrot/ardrone/doc.go @@ -3,7 +3,7 @@ Package ardrone provides the Gobot adaptor and driver for the Parrot Ardrone. Installing: - go get -d -u github.com/hybridgroup/gobot/... && go install github.com/hybridgroup/gobot/platforms/parrot/ardrone + go get -d -u gobot.io/x/gobot/... && go install gobot.io/x/gobot/platforms/parrot/ardrone Example: @@ -12,8 +12,8 @@ Example: import ( "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/platforms/parrot/ardrone" + "gobot.io/x/gobot" + "gobot.io/x/gobot/platforms/parrot/ardrone" ) func main() { @@ -39,6 +39,6 @@ Example: } For more information refer to the ardrone README: -https://github.com/hybridgroup/gobot/tree/master/platforms/ardrone +https://gobot.io/x/gobot/tree/master/platforms/ardrone */ -package ardrone +package ardrone // import "gobot.io/x/gobot/platforms/parrot/ardrone" diff --git a/platforms/parrot/bebop/README.md b/platforms/parrot/bebop/README.md index 8b786f8cd..f4da6be7e 100644 --- a/platforms/parrot/bebop/README.md +++ b/platforms/parrot/bebop/README.md @@ -5,7 +5,7 @@ The Bebop from Parrot is an inexpensive quadcopter that is controlled using WiFi ## How to Install ``` -go get -d -u github.com/hybridgroup/gobot/... && go install github.com/hybridgroup/gobot/platforms/parrot/bebop +go get -d -u gobot.io/x/gobot/... && go install gobot.io/x/gobot/platforms/parrot/bebop ``` ## How to Use @@ -15,8 +15,8 @@ package main import ( "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/platforms/parrot/bebop" + "gobot.io/x/gobot" + "gobot.io/x/gobot/platforms/parrot/bebop" ) func main() { diff --git a/platforms/parrot/bebop/bebop_adaptor.go b/platforms/parrot/bebop/bebop_adaptor.go index 3e5949e82..2a02e0aaf 100644 --- a/platforms/parrot/bebop/bebop_adaptor.go +++ b/platforms/parrot/bebop/bebop_adaptor.go @@ -1,7 +1,7 @@ package bebop import ( - "github.com/hybridgroup/gobot/platforms/parrot/bebop/client" + "gobot.io/x/gobot/platforms/parrot/bebop/client" ) // drone defines expected drone behaviour diff --git a/platforms/parrot/bebop/bebop_adaptor_test.go b/platforms/parrot/bebop/bebop_adaptor_test.go index fc7565803..907a5429a 100644 --- a/platforms/parrot/bebop/bebop_adaptor_test.go +++ b/platforms/parrot/bebop/bebop_adaptor_test.go @@ -4,8 +4,8 @@ import ( "errors" "testing" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/gobottest" + "gobot.io/x/gobot" + "gobot.io/x/gobot/gobottest" ) var _ gobot.Adaptor = (*Adaptor)(nil) diff --git a/platforms/parrot/bebop/bebop_driver.go b/platforms/parrot/bebop/bebop_driver.go index a2730a71e..5393cfc4a 100644 --- a/platforms/parrot/bebop/bebop_driver.go +++ b/platforms/parrot/bebop/bebop_driver.go @@ -1,7 +1,7 @@ package bebop import ( - "github.com/hybridgroup/gobot" + "gobot.io/x/gobot" ) const ( diff --git a/platforms/parrot/bebop/bebop_driver_test.go b/platforms/parrot/bebop/bebop_driver_test.go index 875b16ef3..be170e725 100644 --- a/platforms/parrot/bebop/bebop_driver_test.go +++ b/platforms/parrot/bebop/bebop_driver_test.go @@ -1,5 +1,5 @@ package bebop -import "github.com/hybridgroup/gobot" +import "gobot.io/x/gobot" var _ gobot.Driver = (*Driver)(nil) diff --git a/platforms/parrot/bebop/client/examples/takeoff.go b/platforms/parrot/bebop/client/examples/takeoff.go index de2ad3dbc..3eaa7542f 100644 --- a/platforms/parrot/bebop/client/examples/takeoff.go +++ b/platforms/parrot/bebop/client/examples/takeoff.go @@ -4,7 +4,7 @@ import ( "fmt" "time" - "github.com/hybridgroup/gobot/platforms/bebop/client" + "gobot.io/x/gobot/platforms/bebop/client" ) func main() { diff --git a/platforms/parrot/bebop/client/examples/video.go b/platforms/parrot/bebop/client/examples/video.go index 14b831e9c..61faa5cdc 100644 --- a/platforms/parrot/bebop/client/examples/video.go +++ b/platforms/parrot/bebop/client/examples/video.go @@ -21,7 +21,7 @@ import ( "os/exec" "time" - "github.com/hybridgroup/gobot/platforms/bebop/client" + "gobot.io/x/gobot/platforms/bebop/client" ) func main() { diff --git a/platforms/parrot/bebop/doc.go b/platforms/parrot/bebop/doc.go index 322754cbd..283bcbafc 100644 --- a/platforms/parrot/bebop/doc.go +++ b/platforms/parrot/bebop/doc.go @@ -3,9 +3,9 @@ Package bebop provides the Gobot adaptor and driver for the Parrot Bebop. Installing: - go get -d -u github.com/hybridgroup/gobot/... && go install github.com/hybridgroup/gobot/platforms/parrot/bebop + go get -d -u gobot.io/x/gobot/... && go install gobot.io/x/gobot/platforms/parrot/bebop For more information refer to the bebop README: -https://github.com/hybridgroup/gobot/tree/master/platforms/parrot/bebop +https://gobot.io/x/gobot/tree/master/platforms/parrot/bebop */ -package bebop +package bebop // import "gobot.io/x/gobot/platforms/parrot/bebop" diff --git a/platforms/parrot/minidrone/README.md b/platforms/parrot/minidrone/README.md index bffa03554..879e11e02 100644 --- a/platforms/parrot/minidrone/README.md +++ b/platforms/parrot/minidrone/README.md @@ -5,7 +5,7 @@ The Parrot Minidrone is very inexpensive quadcopter that is controlled using Blu ## How to Install ``` -go get -d -u github.com/hybridgroup/gobot/... && go install github.com/hybridgroup/gobot/platforms/ble +go get -d -u gobot.io/x/gobot/... && go install gobot.io/x/gobot/platforms/ble ``` ## How to Use diff --git a/platforms/parrot/minidrone/doc.go b/platforms/parrot/minidrone/doc.go index 48dfa17c5..7aaf54701 100644 --- a/platforms/parrot/minidrone/doc.go +++ b/platforms/parrot/minidrone/doc.go @@ -2,6 +2,6 @@ Package minidrone contains the Gobot driver for the Parrot Minidrone. For more information refer to the minidrone README: -https://github.com/hybridgroup/gobot/blob/master/platforms/parrot/minidrone/README.md +https://gobot.io/x/gobot/blob/master/platforms/parrot/minidrone/README.md */ -package minidrone +package minidrone // import "gobot.io/x/gobot/platforms/parrot/minidrone" diff --git a/platforms/parrot/minidrone/minidrone_driver.go b/platforms/parrot/minidrone/minidrone_driver.go index 61fad2def..c2bb0aa8d 100644 --- a/platforms/parrot/minidrone/minidrone_driver.go +++ b/platforms/parrot/minidrone/minidrone_driver.go @@ -6,8 +6,8 @@ import ( "fmt" "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/platforms/ble" + "gobot.io/x/gobot" + "gobot.io/x/gobot/platforms/ble" ) // Driver is gobot software device to the keyboard diff --git a/platforms/parrot/minidrone/minidrone_driver_test.go b/platforms/parrot/minidrone/minidrone_driver_test.go index f120bca7d..2721c7ef9 100644 --- a/platforms/parrot/minidrone/minidrone_driver_test.go +++ b/platforms/parrot/minidrone/minidrone_driver_test.go @@ -1,5 +1,5 @@ package minidrone -import "github.com/hybridgroup/gobot" +import "gobot.io/x/gobot" var _ gobot.Driver = (*Driver)(nil) diff --git a/platforms/parrot/parrot.go b/platforms/parrot/parrot.go index ae4781ebd..bdf2d0cb6 100644 --- a/platforms/parrot/parrot.go +++ b/platforms/parrot/parrot.go @@ -6,6 +6,6 @@ This package currently supports the following Parrot drones: - Intel Joule developer kit For further information refer to Parrot README: -https://github.com/hybridgroup/gobot/blob/master/platforms/parrot/README.md +https://gobot.io/x/gobot/blob/master/platforms/parrot/README.md */ package parrot diff --git a/platforms/particle/README.md b/platforms/particle/README.md index c937e63b3..f34d832a5 100644 --- a/platforms/particle/README.md +++ b/platforms/particle/README.md @@ -9,7 +9,7 @@ For more info about the Particle platform go to https://www.particle.io/ Installing Gobot with Particle support is pretty easy. ``` -go get -d -u github.com/hybridgroup/gobot/... && go install github.com/hybridgroup/gobot/platforms/particle +go get -d -u gobot.io/x/gobot/... && go install gobot.io/x/gobot/platforms/particle ``` ## How to Use @@ -20,9 +20,9 @@ package main import ( "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/drivers/gpio" - "github.com/hybridgroup/gobot/platforms/particle" + "gobot.io/x/gobot" + "gobot.io/x/gobot/drivers/gpio" + "gobot.io/x/gobot/platforms/particle" ) func main() { diff --git a/platforms/particle/adaptor.go b/platforms/particle/adaptor.go index 3cc99eb5e..e76defd57 100644 --- a/platforms/particle/adaptor.go +++ b/platforms/particle/adaptor.go @@ -10,7 +10,7 @@ import ( "strconv" "github.com/donovanhide/eventsource" - "github.com/hybridgroup/gobot" + "gobot.io/x/gobot" ) // Adaptor is the Gobot Adaptor for Particle diff --git a/platforms/particle/adaptor_test.go b/platforms/particle/adaptor_test.go index 5e40ec881..d4512ccce 100644 --- a/platforms/particle/adaptor_test.go +++ b/platforms/particle/adaptor_test.go @@ -8,9 +8,9 @@ import ( "testing" "github.com/donovanhide/eventsource" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/drivers/gpio" - "github.com/hybridgroup/gobot/gobottest" + "gobot.io/x/gobot" + "gobot.io/x/gobot/drivers/gpio" + "gobot.io/x/gobot/gobottest" ) var _ gobot.Adaptor = (*Adaptor)(nil) diff --git a/platforms/particle/doc.go b/platforms/particle/doc.go index db6f370b6..f2619cf83 100644 --- a/platforms/particle/doc.go +++ b/platforms/particle/doc.go @@ -3,7 +3,7 @@ Package particle provides the Gobot adaptor for the Particle Photon and Electron Installing: - go get github.com/hybridgroup/gobot && go install github.com/hybridgroup/gobot/platforms/particle + go get gobot.io/x/gobot && go install gobot.io/x/gobot/platforms/particle Example: @@ -12,9 +12,9 @@ Example: import ( "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/drivers/gpio" - "github.com/hybridgroup/gobot/platforms/particle" + "gobot.io/x/gobot" + "gobot.io/x/gobot/drivers/gpio" + "gobot.io/x/gobot/platforms/particle" ) func main() { @@ -37,6 +37,6 @@ Example: } For further information refer to Particle readme: -https://github.com/hybridgroup/gobot/blob/master/platforms/particle/README.md +https://gobot.io/x/gobot/blob/master/platforms/particle/README.md */ -package particle +package particle // import "gobot.io/x/gobot/platforms/particle" diff --git a/platforms/pebble/README.md b/platforms/pebble/README.md index 80f254941..10ecc574d 100644 --- a/platforms/pebble/README.md +++ b/platforms/pebble/README.md @@ -2,16 +2,16 @@ This repository contains the Gobot adaptor for [Pebble smart watch](http://getpebble.com/). -It uses the Pebble 2.0 SDK, and requires the 2.0 iOS or Android app, and that the ["watchbot" app](https://github.com/hybridgroup/watchbot) has been installed on the Pebble watch. +It uses the Pebble 2.0 SDK, and requires the 2.0 iOS or Android app, and that the ["watchbot" app](https://gobot.io/x/watchbot) has been installed on the Pebble watch. ## How to Install ``` -go get -d -u github.com/hybridgroup/gobot/... && go install github.com/hybridgroup/gobot/platforms/pebble +go get -d -u gobot.io/x/gobot/... && go install gobot.io/x/gobot/platforms/pebble ``` * Install Pebble 2.0 iOS or Android app. (If you haven't already) -* Follow README to install and configure "watchbot" on your watch: https://github.com/hybridgroup/watchbot +* Follow README to install and configure "watchbot" on your watch: https://gobot.io/x/watchbot ## How to Use @@ -23,9 +23,9 @@ package main import ( "fmt" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/api" - "github.com/hybridgroup/gobot/platforms/pebble" + "gobot.io/x/gobot" + "gobot.io/x/gobot/api" + "gobot.io/x/gobot/platforms/pebble" ) func main() { diff --git a/platforms/pebble/doc.go b/platforms/pebble/doc.go index f947224d6..04e6a6ed4 100644 --- a/platforms/pebble/doc.go +++ b/platforms/pebble/doc.go @@ -3,10 +3,10 @@ Package pebble contains the Gobot adaptor and driver for Pebble smart watch. Installing: -It requires the 2.x iOS or Android app, and "watchbot" app (https://github.com/hybridgroup/watchbot) +It requires the 2.x iOS or Android app, and "watchbot" app (https://gobot.io/x/watchbot) installed on Pebble watch. Then install running: - go get github.com/hybridgroup/gobot/platforms/pebble + go get gobot.io/x/gobot/platforms/pebble Example: @@ -17,9 +17,9 @@ Before running the example, make sure configuration settings match with your pro import ( "fmt" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/api" - "github.com/hybridgroup/gobot/platforms/pebble" + "gobot.io/x/gobot" + "gobot.io/x/gobot/api" + "gobot.io/x/gobot/platforms/pebble" ) func main() { @@ -52,6 +52,6 @@ Before running the example, make sure configuration settings match with your pro } For more information refer to the pebble README: -https://github.com/hybridgroup/gobot/blob/master/platforms/pebble/README.md +https://gobot.io/x/gobot/blob/master/platforms/pebble/README.md */ -package pebble +package pebble // import "gobot.io/x/gobot/platforms/pebble" diff --git a/platforms/pebble/pebble_adaptor_test.go b/platforms/pebble/pebble_adaptor_test.go index bdcfaa68f..e42cf8243 100644 --- a/platforms/pebble/pebble_adaptor_test.go +++ b/platforms/pebble/pebble_adaptor_test.go @@ -3,8 +3,8 @@ package pebble import ( "testing" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/gobottest" + "gobot.io/x/gobot" + "gobot.io/x/gobot/gobottest" ) var _ gobot.Adaptor = (*Adaptor)(nil) diff --git a/platforms/pebble/pebble_driver.go b/platforms/pebble/pebble_driver.go index 9daa2b5e5..658872e04 100644 --- a/platforms/pebble/pebble_driver.go +++ b/platforms/pebble/pebble_driver.go @@ -1,7 +1,7 @@ package pebble import ( - "github.com/hybridgroup/gobot" + "gobot.io/x/gobot" ) type Driver struct { diff --git a/platforms/pebble/pebble_driver_test.go b/platforms/pebble/pebble_driver_test.go index da92c16c3..abef18ef3 100644 --- a/platforms/pebble/pebble_driver_test.go +++ b/platforms/pebble/pebble_driver_test.go @@ -4,8 +4,8 @@ import ( "testing" "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/gobottest" + "gobot.io/x/gobot" + "gobot.io/x/gobot/gobottest" ) var _ gobot.Driver = (*Driver)(nil) diff --git a/platforms/raspi/README.md b/platforms/raspi/README.md index b26b42eb3..7ebf02b48 100644 --- a/platforms/raspi/README.md +++ b/platforms/raspi/README.md @@ -11,7 +11,7 @@ For more info about the Raspberry Pi platform, click [here](http://www.raspberry First you must install the appropriate Go packages ``` -go get -d -u github.com/hybridgroup/gobot/... && go install github.com/hybridgroup/gobot/platforms/raspi +go get -d -u gobot.io/x/gobot/... && go install gobot.io/x/gobot/platforms/raspi ``` ### Enabling PWM output on GPIO pins. @@ -68,9 +68,9 @@ package main import ( "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/drivers/gpio" - "github.com/hybridgroup/gobot/platforms/raspi" + "gobot.io/x/gobot" + "gobot.io/x/gobot/drivers/gpio" + "gobot.io/x/gobot/platforms/raspi" ) func main() { diff --git a/platforms/raspi/doc.go b/platforms/raspi/doc.go index b74ef6775..560ffeea4 100644 --- a/platforms/raspi/doc.go +++ b/platforms/raspi/doc.go @@ -2,6 +2,6 @@ Package raspi contains the Gobot adaptor for the Raspberry Pi. For further information refer to raspi README: -https://github.com/hybridgroup/gobot/blob/master/platforms/raspi/README.md +https://gobot.io/x/gobot/blob/master/platforms/raspi/README.md */ -package raspi +package raspi // import "gobot.io/x/gobot/platforms/raspi" diff --git a/platforms/raspi/raspi_adaptor.go b/platforms/raspi/raspi_adaptor.go index c25aa9635..475039d8e 100644 --- a/platforms/raspi/raspi_adaptor.go +++ b/platforms/raspi/raspi_adaptor.go @@ -9,8 +9,8 @@ import ( "strings" multierror "github.com/hashicorp/go-multierror" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/sysfs" + "gobot.io/x/gobot" + "gobot.io/x/gobot/sysfs" ) var readFile = func() ([]byte, error) { diff --git a/platforms/raspi/raspi_adaptor_test.go b/platforms/raspi/raspi_adaptor_test.go index d50001e4a..15e7e7150 100644 --- a/platforms/raspi/raspi_adaptor_test.go +++ b/platforms/raspi/raspi_adaptor_test.go @@ -4,11 +4,11 @@ import ( "strings" "testing" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/drivers/gpio" - "github.com/hybridgroup/gobot/drivers/i2c" - "github.com/hybridgroup/gobot/gobottest" - "github.com/hybridgroup/gobot/sysfs" + "gobot.io/x/gobot" + "gobot.io/x/gobot/drivers/gpio" + "gobot.io/x/gobot/drivers/i2c" + "gobot.io/x/gobot/gobottest" + "gobot.io/x/gobot/sysfs" ) var _ gobot.Adaptor = (*Adaptor)(nil) diff --git a/platforms/sphero/README.md b/platforms/sphero/README.md index 777b26447..b102703f6 100644 --- a/platforms/sphero/README.md +++ b/platforms/sphero/README.md @@ -8,7 +8,7 @@ Learn more about the Sphero robot go here: http://www.gosphero.com/ ## How to Install ``` -go get -d -u github.com/hybridgroup/gobot/... && go install github.com/hybridgroup/gobot/platforms/sphero +go get -d -u gobot.io/x/gobot/... && go install gobot.io/x/gobot/platforms/sphero ``` ## How To Connect @@ -21,7 +21,7 @@ Now you must pair with the Sphero. Open System Preferences > Bluetooth. Now with ### Ubuntu -Connecting to the Sphero from Ubuntu or any other Linux-based OS can be done entirely from the command line using [Gort](https://github.com/hybridgroup/gort) CLI commands. Here are the steps. +Connecting to the Sphero from Ubuntu or any other Linux-based OS can be done entirely from the command line using [Gort](https://gobot.io/x/gort) CLI commands. Here are the steps. Find the address of the Sphero, by using: ``` @@ -53,8 +53,8 @@ import ( "fmt" "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/platforms/sphero" + "gobot.io/x/gobot" + "gobot.io/x/gobot/platforms/sphero" ) func main() { diff --git a/platforms/sphero/doc.go b/platforms/sphero/doc.go index 37e0be02c..bf14a5e65 100644 --- a/platforms/sphero/doc.go +++ b/platforms/sphero/doc.go @@ -3,7 +3,7 @@ Package sphero provides the Gobot adaptor and driver for the Sphero. Installing: - go get github.com/hybridgroup/gobot/platforms/sphero + go get gobot.io/x/gobot/platforms/sphero Example: @@ -13,8 +13,8 @@ Example: "fmt" "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/platforms/sphero" + "gobot.io/x/gobot" + "gobot.io/x/gobot/platforms/sphero" ) func main() { @@ -37,6 +37,6 @@ Example: } For further information refer to sphero readme: -https://github.com/hybridgroup/gobot/blob/master/platforms/sphero/README.md +https://gobot.io/x/gobot/blob/master/platforms/sphero/README.md */ -package sphero +package sphero // import "gobot.io/x/gobot/platforms/sphero" diff --git a/platforms/sphero/ollie/README.md b/platforms/sphero/ollie/README.md index c9c599c25..437db4d1a 100644 --- a/platforms/sphero/ollie/README.md +++ b/platforms/sphero/ollie/README.md @@ -5,7 +5,7 @@ The Sphero Ollie is toy robot that is controlled using Bluetooth LE. ## How to Install ``` -go get -d -u github.com/hybridgroup/gobot/... && go install github.com/hybridgroup/gobot/platforms/ble +go get -d -u gobot.io/x/gobot/... && go install gobot.io/x/gobot/platforms/ble ``` ## How to Use diff --git a/platforms/sphero/ollie/doc.go b/platforms/sphero/ollie/doc.go index e34f7d8c9..beac1027b 100644 --- a/platforms/sphero/ollie/doc.go +++ b/platforms/sphero/ollie/doc.go @@ -2,6 +2,6 @@ Package ollie contains the Gobot driver for the Sphero Ollie. For more information refer to the Ollie README: -https://github.com/hybridgroup/gobot/blob/master/platforms/sphero/ollie/README.md +https://gobot.io/x/gobot/blob/master/platforms/sphero/ollie/README.md */ -package ollie +package ollie // import "gobot.io/x/gobot/platforms/sphero/ollie" diff --git a/platforms/sphero/ollie/ollie_driver.go b/platforms/sphero/ollie/ollie_driver.go index ced8be6df..2dd89a24d 100644 --- a/platforms/sphero/ollie/ollie_driver.go +++ b/platforms/sphero/ollie/ollie_driver.go @@ -5,8 +5,8 @@ import ( "fmt" "time" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/platforms/ble" + "gobot.io/x/gobot" + "gobot.io/x/gobot/platforms/ble" ) var _ gobot.Driver = (*Driver)(nil) diff --git a/platforms/sphero/ollie/ollie_driver_test.go b/platforms/sphero/ollie/ollie_driver_test.go index be785ae87..07a7ca3b3 100644 --- a/platforms/sphero/ollie/ollie_driver_test.go +++ b/platforms/sphero/ollie/ollie_driver_test.go @@ -1,5 +1,5 @@ package ollie -import "github.com/hybridgroup/gobot" +import "gobot.io/x/gobot" var _ gobot.Driver = (*Driver)(nil) diff --git a/platforms/sphero/sphero_adaptor_test.go b/platforms/sphero/sphero_adaptor_test.go index 1bc5287a9..df46195d4 100644 --- a/platforms/sphero/sphero_adaptor_test.go +++ b/platforms/sphero/sphero_adaptor_test.go @@ -5,8 +5,8 @@ import ( "io" "testing" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/gobottest" + "gobot.io/x/gobot" + "gobot.io/x/gobot/gobottest" ) var _ gobot.Adaptor = (*Adaptor)(nil) diff --git a/platforms/sphero/sphero_driver.go b/platforms/sphero/sphero_driver.go index 2f0bd2f5d..182fb5766 100644 --- a/platforms/sphero/sphero_driver.go +++ b/platforms/sphero/sphero_driver.go @@ -6,7 +6,7 @@ import ( "errors" "time" - "github.com/hybridgroup/gobot" + "gobot.io/x/gobot" ) const ( diff --git a/platforms/sphero/sphero_driver_test.go b/platforms/sphero/sphero_driver_test.go index 624303f62..e8e58fd67 100644 --- a/platforms/sphero/sphero_driver_test.go +++ b/platforms/sphero/sphero_driver_test.go @@ -5,8 +5,8 @@ import ( "encoding/binary" "testing" - "github.com/hybridgroup/gobot" - "github.com/hybridgroup/gobot/gobottest" + "gobot.io/x/gobot" + "gobot.io/x/gobot/gobottest" ) var _ gobot.Driver = (*SpheroDriver)(nil) diff --git a/sysfs/digital_pin_test.go b/sysfs/digital_pin_test.go index 54db9666e..406377bf1 100644 --- a/sysfs/digital_pin_test.go +++ b/sysfs/digital_pin_test.go @@ -6,7 +6,7 @@ import ( "syscall" "testing" - "github.com/hybridgroup/gobot/gobottest" + "gobot.io/x/gobot/gobottest" ) func TestDigitalPin(t *testing.T) { diff --git a/sysfs/fs_mock_test.go b/sysfs/fs_mock_test.go index 9b83159f8..ac556c04d 100644 --- a/sysfs/fs_mock_test.go +++ b/sysfs/fs_mock_test.go @@ -3,7 +3,7 @@ package sysfs import ( "testing" - "github.com/hybridgroup/gobot/gobottest" + "gobot.io/x/gobot/gobottest" ) func TestMockFilesystemOpen(t *testing.T) { diff --git a/sysfs/fs_test.go b/sysfs/fs_test.go index 528a5fbad..4f58f9f2b 100644 --- a/sysfs/fs_test.go +++ b/sysfs/fs_test.go @@ -4,7 +4,7 @@ import ( "os" "testing" - "github.com/hybridgroup/gobot/gobottest" + "gobot.io/x/gobot/gobottest" ) func TestFilesystemOpen(t *testing.T) { diff --git a/sysfs/i2c_device_test.go b/sysfs/i2c_device_test.go index 9d4402a75..773de9b25 100644 --- a/sysfs/i2c_device_test.go +++ b/sysfs/i2c_device_test.go @@ -4,7 +4,7 @@ import ( "os" "testing" - "github.com/hybridgroup/gobot/gobottest" + "gobot.io/x/gobot/gobottest" ) func TestNewI2cDevice(t *testing.T) { diff --git a/utils_test.go b/utils_test.go index f1d691edc..d0f204be1 100644 --- a/utils_test.go +++ b/utils_test.go @@ -4,7 +4,7 @@ import ( "testing" "time" - "github.com/hybridgroup/gobot/gobottest" + "gobot.io/x/gobot/gobottest" ) func TestEvery(t *testing.T) {