diff --git a/.circleci/config.yml b/.circleci/config.yml index 57245474f..8091ab510 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -23,7 +23,6 @@ jobs: - run: name: Core and drivers tests command: | - cd ./v2 go test -v -coverprofile=coverage.txt -covermode=atomic . ./drivers/... - run: name: Code coverage @@ -42,7 +41,6 @@ jobs: # digispark needs libusb, joystick needs sdl2, opencv needs opencv name: Platform tests (except digispark, joystick, opencv) command: | - cd ./v2 go test -v $(go list ./platforms/... | grep -v platforms/digispark | grep -v platforms/joystick | grep -v platforms/opencv) "check_examples": @@ -57,7 +55,6 @@ jobs: # digispark needs libusb, joystick needs sdl2, opencv needs opencv name: Check examples (except digispark, joystick, opencv) command: | - cd ./v2 ALL=$(grep -l -r --include "*.go" 'build example' ./) SOME=$(grep -L 'digispark' $(grep -L 'joystick' $(grep -L 'gocv' ${ALL}))) for e in ${SOME} ; do go vet "${e}" ; done diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index cebafc42b..281730892 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -27,7 +27,7 @@ jobs: version: v1.52.2 # Optional: working directory, useful for monorepos - working-directory: v2 + # working-directory: v2 # Optional: golangci-lint command line arguments. # mostly there is no problem locally, but on server: "could not import C (cgo preprocessing failed) (typecheck)" diff --git a/CHANGELOG.md b/CHANGELOG.md index 6926bb6dd..0b48d2767 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,12 +1,22 @@ # CHANGELOG -## [Unreleased](https://github.com/hybridgroup/gobot/compare/v2.0.2...HEAD) +## [Unreleased](https://github.com/hybridgroup/gobot/compare/v2.1.0...HEAD) + +## [v2.1.0](https://github.com/hybridgroup/gobot/compare/v2.0.3...v2.1.0) (2023-05-29) + +### Build + +* **v2:** revert of [#927](https://github.com/hybridgroup/gobot/pull/927), no usage of a v2 subfolder anymore (issue [#920](https://github.com/hybridgroup/gobot/issues/920)) + +## [v2.0.3](https://github.com/hybridgroup/gobot/compare/v2.0.2...v2.0.3) (2023-05-24) + +* accidentally created release without any changes ## [v2.0.2](https://github.com/hybridgroup/gobot/compare/v2.0.1...v2.0.2) (2023-05-22) ### Build -* **v2:** fix usage by moving code to a v2 subfolder ([#927](https://github.com/hybridgroup/gobot/issues/927)) +* **v2:** fix usage by moving code to a v2 subfolder ([#927](https://github.com/hybridgroup/gobot/pull/927)) ## [v2.0.1](https://github.com/hybridgroup/gobot/compare/v2.0.0...v2.0.1) (2023-05-21) diff --git a/Makefile b/Makefile index 63cd82eaa..5ba96901e 100644 --- a/Makefile +++ b/Makefile @@ -1,16 +1,76 @@ -# this file is just a forwarder to the folder with go.mod for common use cases -# it is working since Go 1.18 is installed locally +# include also examples in other than ./examples folder +ALL_EXAMPLES := $(shell grep -l -r --include "*.go" 'build example' ./) +# prevent examples with gocv (opencv) dependencies +EXAMPLES_NO_GOCV := $(shell grep -L 'gocv' $(ALL_EXAMPLES)) +# prevent examples with joystick (sdl2) dependencies +EXAMPLES_NO_JOYSTICK := $(shell grep -L 'joystick' $(ALL_EXAMPLES)) +# prevent examples with joystick (sdl2) and gocv (opencv) dependencies +EXAMPLES_NO_GOCV_JOYSTICK := $(shell grep -L 'joystick' $$(grep -L 'gocv' $(EXAMPLES_NO_GOCV))) +# used examples +EXAMPLES := $(EXAMPLES_NO_GOCV_JOYSTICK) -gomoddir := $(shell go list -f '{{.Dir}}' -m) +.PHONY: test test_race test_cover robeaux version_check fmt_check fmt_fix examples examples_check $(EXAMPLES) +# opencv platform currently skipped to prevent install of preconditions +including_except := $(shell go list ./... | grep -v platforms/opencv) -.PHONY: test fmt_check examples_check - +# Run tests on nearly all directories without test cache test: - cd $(gomoddir) && make test && cd .. + go test -count=1 -v $(including_except) + +# Run tests with race detection +test_race: + go test -race $(including_except) + +# Test, generate and show coverage in browser +test_cover: + go test -v $(including_except) -coverprofile=coverage.txt ; \ + go tool cover -html=coverage.txt ; \ + +robeaux: +ifeq (,$(shell which go-bindata)) + $(error robeaux not built! https://github.com/jteeuwen/go-bindata is required to build robeaux assets ) +endif + cd api ; \ + npm install robeaux ; \ + cp -r node_modules/robeaux robeaux-tmp ; \ + cd robeaux-tmp ; \ + rm Makefile package.json README.markdown ; \ + touch css/fonts.css ; \ + echo "Updating robeaux..." ; \ + go-bindata -pkg="robeaux" -o robeaux.go -ignore=\\.git ./... ; \ + mv robeaux.go ../robeaux ; \ + cd .. ; \ + rm -rf robeaux-tmp/ ; \ + rm -rf node_modules/ ; \ + go fmt ./robeaux/robeaux.go ; \ +# Check for installed and module version match. Will exit with code 50 if not match. +# There is nothing bad in general, if you program with a higher version. +# At least the recipe "fmt_fix" will not work in that case. +version_check: + @gv=$$(echo $$(go version) | sed "s/^.* go\([0-9].[0-9]*\).*/\1/") ; \ + mv=$$(grep -m 1 'go 1.' ./go.mod | sed "s/^go \([0-9].[0-9]*\).*/\1/") ; \ + echo "go: $${gv}.*, go.mod: $${mv}" ; \ + if [ "$${gv}" != "$${mv}" ]; then exit 50; fi ; \ + +# Check for bad code style and other issues fmt_check: - cd $(gomoddir) && make fmt_check && cd .. + gofmt -l ./ + golangci-lint run -v + +# Fix bad code style (will only be executed, on version match) +fmt_fix: version_check + go fmt ./... + +examples: $(EXAMPLES) + +examples_check: + $(MAKE) CHECK=ON examples -examples_check: - cd $(gomoddir) && make examples_check && cd .. \ No newline at end of file +$(EXAMPLES): +ifeq ($(CHECK),ON) + go vet ./$@ +else + go build -o /tmp/gobot_examples/$@ ./$@ +endif diff --git a/v2/adaptor.go b/adaptor.go similarity index 100% rename from v2/adaptor.go rename to adaptor.go diff --git a/v2/api/api.go b/api/api.go similarity index 100% rename from v2/api/api.go rename to api/api.go diff --git a/v2/api/api_test.go b/api/api_test.go similarity index 100% rename from v2/api/api_test.go rename to api/api_test.go diff --git a/v2/api/basic_auth.go b/api/basic_auth.go similarity index 100% rename from v2/api/basic_auth.go rename to api/basic_auth.go diff --git a/v2/api/basic_auth_test.go b/api/basic_auth_test.go similarity index 100% rename from v2/api/basic_auth_test.go rename to api/basic_auth_test.go diff --git a/v2/api/cors.go b/api/cors.go similarity index 100% rename from v2/api/cors.go rename to api/cors.go diff --git a/v2/api/cors_test.go b/api/cors_test.go similarity index 100% rename from v2/api/cors_test.go rename to api/cors_test.go diff --git a/v2/api/doc.go b/api/doc.go similarity index 100% rename from v2/api/doc.go rename to api/doc.go diff --git a/v2/api/helpers_test.go b/api/helpers_test.go similarity index 100% rename from v2/api/helpers_test.go rename to api/helpers_test.go diff --git a/v2/api/robeaux/robeaux.go b/api/robeaux/robeaux.go similarity index 100% rename from v2/api/robeaux/robeaux.go rename to api/robeaux/robeaux.go diff --git a/appveyor.yml b/appveyor.yml index 9b6a24b19..a2abb7d93 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -13,7 +13,6 @@ before_test: - go env build_script: - - cd ./v2 - go test -v -cpu=2 . - go test -v -cpu=2 ./drivers/aio/... - go test -v -cpu=2 ./drivers/i2c/... diff --git a/v2/cli/README.md b/cli/README.md similarity index 100% rename from v2/cli/README.md rename to cli/README.md diff --git a/v2/cli/doc.go b/cli/doc.go similarity index 100% rename from v2/cli/doc.go rename to cli/doc.go diff --git a/v2/cli/generate.go b/cli/generate.go similarity index 100% rename from v2/cli/generate.go rename to cli/generate.go diff --git a/v2/cli/main.go b/cli/main.go similarity index 100% rename from v2/cli/main.go rename to cli/main.go diff --git a/v2/commander.go b/commander.go similarity index 100% rename from v2/commander.go rename to commander.go diff --git a/v2/commander_test.go b/commander_test.go similarity index 100% rename from v2/commander_test.go rename to commander_test.go diff --git a/v2/connection.go b/connection.go similarity index 100% rename from v2/connection.go rename to connection.go diff --git a/v2/device.go b/device.go similarity index 100% rename from v2/device.go rename to device.go diff --git a/v2/doc.go b/doc.go similarity index 100% rename from v2/doc.go rename to doc.go diff --git a/v2/driver.go b/driver.go similarity index 100% rename from v2/driver.go rename to driver.go diff --git a/v2/drivers/aio/LICENSE b/drivers/aio/LICENSE similarity index 100% rename from v2/drivers/aio/LICENSE rename to drivers/aio/LICENSE diff --git a/v2/drivers/aio/README.md b/drivers/aio/README.md similarity index 100% rename from v2/drivers/aio/README.md rename to drivers/aio/README.md diff --git a/v2/drivers/aio/aio.go b/drivers/aio/aio.go similarity index 100% rename from v2/drivers/aio/aio.go rename to drivers/aio/aio.go diff --git a/v2/drivers/aio/analog_actuator_driver.go b/drivers/aio/analog_actuator_driver.go similarity index 100% rename from v2/drivers/aio/analog_actuator_driver.go rename to drivers/aio/analog_actuator_driver.go diff --git a/v2/drivers/aio/analog_actuator_driver_test.go b/drivers/aio/analog_actuator_driver_test.go similarity index 100% rename from v2/drivers/aio/analog_actuator_driver_test.go rename to drivers/aio/analog_actuator_driver_test.go diff --git a/v2/drivers/aio/analog_sensor_driver.go b/drivers/aio/analog_sensor_driver.go similarity index 100% rename from v2/drivers/aio/analog_sensor_driver.go rename to drivers/aio/analog_sensor_driver.go diff --git a/v2/drivers/aio/analog_sensor_driver_test.go b/drivers/aio/analog_sensor_driver_test.go similarity index 100% rename from v2/drivers/aio/analog_sensor_driver_test.go rename to drivers/aio/analog_sensor_driver_test.go diff --git a/v2/drivers/aio/doc.go b/drivers/aio/doc.go similarity index 100% rename from v2/drivers/aio/doc.go rename to drivers/aio/doc.go diff --git a/v2/drivers/aio/grove_drivers.go b/drivers/aio/grove_drivers.go similarity index 100% rename from v2/drivers/aio/grove_drivers.go rename to drivers/aio/grove_drivers.go diff --git a/v2/drivers/aio/grove_drivers_test.go b/drivers/aio/grove_drivers_test.go similarity index 100% rename from v2/drivers/aio/grove_drivers_test.go rename to drivers/aio/grove_drivers_test.go diff --git a/v2/drivers/aio/grove_temperature_sensor_driver.go b/drivers/aio/grove_temperature_sensor_driver.go similarity index 100% rename from v2/drivers/aio/grove_temperature_sensor_driver.go rename to drivers/aio/grove_temperature_sensor_driver.go diff --git a/v2/drivers/aio/grove_temperature_sensor_driver_test.go b/drivers/aio/grove_temperature_sensor_driver_test.go similarity index 100% rename from v2/drivers/aio/grove_temperature_sensor_driver_test.go rename to drivers/aio/grove_temperature_sensor_driver_test.go diff --git a/v2/drivers/aio/helpers_test.go b/drivers/aio/helpers_test.go similarity index 100% rename from v2/drivers/aio/helpers_test.go rename to drivers/aio/helpers_test.go diff --git a/v2/drivers/aio/temperature_sensor_driver.go b/drivers/aio/temperature_sensor_driver.go similarity index 100% rename from v2/drivers/aio/temperature_sensor_driver.go rename to drivers/aio/temperature_sensor_driver.go diff --git a/v2/drivers/aio/temperature_sensor_driver_test.go b/drivers/aio/temperature_sensor_driver_test.go similarity index 100% rename from v2/drivers/aio/temperature_sensor_driver_test.go rename to drivers/aio/temperature_sensor_driver_test.go diff --git a/v2/drivers/common/mfrc522/mfrc522_connectionwrapper.go b/drivers/common/mfrc522/mfrc522_connectionwrapper.go similarity index 100% rename from v2/drivers/common/mfrc522/mfrc522_connectionwrapper.go rename to drivers/common/mfrc522/mfrc522_connectionwrapper.go diff --git a/v2/drivers/common/mfrc522/mfrc522_pcd.go b/drivers/common/mfrc522/mfrc522_pcd.go similarity index 100% rename from v2/drivers/common/mfrc522/mfrc522_pcd.go rename to drivers/common/mfrc522/mfrc522_pcd.go diff --git a/v2/drivers/common/mfrc522/mfrc522_pcd_register.go b/drivers/common/mfrc522/mfrc522_pcd_register.go similarity index 100% rename from v2/drivers/common/mfrc522/mfrc522_pcd_register.go rename to drivers/common/mfrc522/mfrc522_pcd_register.go diff --git a/v2/drivers/common/mfrc522/mfrc522_pcd_test.go b/drivers/common/mfrc522/mfrc522_pcd_test.go similarity index 100% rename from v2/drivers/common/mfrc522/mfrc522_pcd_test.go rename to drivers/common/mfrc522/mfrc522_pcd_test.go diff --git a/v2/drivers/common/mfrc522/mfrc522_picc.go b/drivers/common/mfrc522/mfrc522_picc.go similarity index 100% rename from v2/drivers/common/mfrc522/mfrc522_picc.go rename to drivers/common/mfrc522/mfrc522_picc.go diff --git a/v2/drivers/gpio/LICENSE b/drivers/gpio/LICENSE similarity index 100% rename from v2/drivers/gpio/LICENSE rename to drivers/gpio/LICENSE diff --git a/v2/drivers/gpio/README.md b/drivers/gpio/README.md similarity index 100% rename from v2/drivers/gpio/README.md rename to drivers/gpio/README.md diff --git a/v2/drivers/gpio/aip1640_driver.go b/drivers/gpio/aip1640_driver.go similarity index 100% rename from v2/drivers/gpio/aip1640_driver.go rename to drivers/gpio/aip1640_driver.go diff --git a/v2/drivers/gpio/aip1640_driver_test.go b/drivers/gpio/aip1640_driver_test.go similarity index 100% rename from v2/drivers/gpio/aip1640_driver_test.go rename to drivers/gpio/aip1640_driver_test.go diff --git a/v2/drivers/gpio/button_driver.go b/drivers/gpio/button_driver.go similarity index 100% rename from v2/drivers/gpio/button_driver.go rename to drivers/gpio/button_driver.go diff --git a/v2/drivers/gpio/button_driver_test.go b/drivers/gpio/button_driver_test.go similarity index 100% rename from v2/drivers/gpio/button_driver_test.go rename to drivers/gpio/button_driver_test.go diff --git a/v2/drivers/gpio/buzzer_driver.go b/drivers/gpio/buzzer_driver.go similarity index 100% rename from v2/drivers/gpio/buzzer_driver.go rename to drivers/gpio/buzzer_driver.go diff --git a/v2/drivers/gpio/buzzer_driver_test.go b/drivers/gpio/buzzer_driver_test.go similarity index 100% rename from v2/drivers/gpio/buzzer_driver_test.go rename to drivers/gpio/buzzer_driver_test.go diff --git a/v2/drivers/gpio/direct_pin_driver.go b/drivers/gpio/direct_pin_driver.go similarity index 100% rename from v2/drivers/gpio/direct_pin_driver.go rename to drivers/gpio/direct_pin_driver.go diff --git a/v2/drivers/gpio/direct_pin_driver_test.go b/drivers/gpio/direct_pin_driver_test.go similarity index 100% rename from v2/drivers/gpio/direct_pin_driver_test.go rename to drivers/gpio/direct_pin_driver_test.go diff --git a/v2/drivers/gpio/doc.go b/drivers/gpio/doc.go similarity index 100% rename from v2/drivers/gpio/doc.go rename to drivers/gpio/doc.go diff --git a/v2/drivers/gpio/easy_driver.go b/drivers/gpio/easy_driver.go similarity index 100% rename from v2/drivers/gpio/easy_driver.go rename to drivers/gpio/easy_driver.go diff --git a/v2/drivers/gpio/easy_driver_test.go b/drivers/gpio/easy_driver_test.go similarity index 100% rename from v2/drivers/gpio/easy_driver_test.go rename to drivers/gpio/easy_driver_test.go diff --git a/v2/drivers/gpio/gpio.go b/drivers/gpio/gpio.go similarity index 100% rename from v2/drivers/gpio/gpio.go rename to drivers/gpio/gpio.go diff --git a/v2/drivers/gpio/grove_drivers.go b/drivers/gpio/grove_drivers.go similarity index 100% rename from v2/drivers/gpio/grove_drivers.go rename to drivers/gpio/grove_drivers.go diff --git a/v2/drivers/gpio/grove_drivers_test.go b/drivers/gpio/grove_drivers_test.go similarity index 100% rename from v2/drivers/gpio/grove_drivers_test.go rename to drivers/gpio/grove_drivers_test.go diff --git a/v2/drivers/gpio/hd44780_driver.go b/drivers/gpio/hd44780_driver.go similarity index 100% rename from v2/drivers/gpio/hd44780_driver.go rename to drivers/gpio/hd44780_driver.go diff --git a/v2/drivers/gpio/hd44780_driver_test.go b/drivers/gpio/hd44780_driver_test.go similarity index 100% rename from v2/drivers/gpio/hd44780_driver_test.go rename to drivers/gpio/hd44780_driver_test.go diff --git a/v2/drivers/gpio/helpers_test.go b/drivers/gpio/helpers_test.go similarity index 100% rename from v2/drivers/gpio/helpers_test.go rename to drivers/gpio/helpers_test.go diff --git a/v2/drivers/gpio/led_driver.go b/drivers/gpio/led_driver.go similarity index 100% rename from v2/drivers/gpio/led_driver.go rename to drivers/gpio/led_driver.go diff --git a/v2/drivers/gpio/led_driver_test.go b/drivers/gpio/led_driver_test.go similarity index 100% rename from v2/drivers/gpio/led_driver_test.go rename to drivers/gpio/led_driver_test.go diff --git a/v2/drivers/gpio/makey_button_driver.go b/drivers/gpio/makey_button_driver.go similarity index 100% rename from v2/drivers/gpio/makey_button_driver.go rename to drivers/gpio/makey_button_driver.go diff --git a/v2/drivers/gpio/makey_button_driver_test.go b/drivers/gpio/makey_button_driver_test.go similarity index 100% rename from v2/drivers/gpio/makey_button_driver_test.go rename to drivers/gpio/makey_button_driver_test.go diff --git a/v2/drivers/gpio/max7219_driver.go b/drivers/gpio/max7219_driver.go similarity index 100% rename from v2/drivers/gpio/max7219_driver.go rename to drivers/gpio/max7219_driver.go diff --git a/v2/drivers/gpio/max7219_driver_test.go b/drivers/gpio/max7219_driver_test.go similarity index 100% rename from v2/drivers/gpio/max7219_driver_test.go rename to drivers/gpio/max7219_driver_test.go diff --git a/v2/drivers/gpio/motor_driver.go b/drivers/gpio/motor_driver.go similarity index 100% rename from v2/drivers/gpio/motor_driver.go rename to drivers/gpio/motor_driver.go diff --git a/v2/drivers/gpio/motor_driver_test.go b/drivers/gpio/motor_driver_test.go similarity index 100% rename from v2/drivers/gpio/motor_driver_test.go rename to drivers/gpio/motor_driver_test.go diff --git a/v2/drivers/gpio/pir_motion_driver.go b/drivers/gpio/pir_motion_driver.go similarity index 100% rename from v2/drivers/gpio/pir_motion_driver.go rename to drivers/gpio/pir_motion_driver.go diff --git a/v2/drivers/gpio/pir_motion_driver_test.go b/drivers/gpio/pir_motion_driver_test.go similarity index 100% rename from v2/drivers/gpio/pir_motion_driver_test.go rename to drivers/gpio/pir_motion_driver_test.go diff --git a/v2/drivers/gpio/relay_driver.go b/drivers/gpio/relay_driver.go similarity index 100% rename from v2/drivers/gpio/relay_driver.go rename to drivers/gpio/relay_driver.go diff --git a/v2/drivers/gpio/relay_driver_test.go b/drivers/gpio/relay_driver_test.go similarity index 100% rename from v2/drivers/gpio/relay_driver_test.go rename to drivers/gpio/relay_driver_test.go diff --git a/v2/drivers/gpio/rgb_led_driver.go b/drivers/gpio/rgb_led_driver.go similarity index 100% rename from v2/drivers/gpio/rgb_led_driver.go rename to drivers/gpio/rgb_led_driver.go diff --git a/v2/drivers/gpio/rgb_led_driver_test.go b/drivers/gpio/rgb_led_driver_test.go similarity index 100% rename from v2/drivers/gpio/rgb_led_driver_test.go rename to drivers/gpio/rgb_led_driver_test.go diff --git a/v2/drivers/gpio/servo_driver.go b/drivers/gpio/servo_driver.go similarity index 100% rename from v2/drivers/gpio/servo_driver.go rename to drivers/gpio/servo_driver.go diff --git a/v2/drivers/gpio/servo_driver_test.go b/drivers/gpio/servo_driver_test.go similarity index 100% rename from v2/drivers/gpio/servo_driver_test.go rename to drivers/gpio/servo_driver_test.go diff --git a/v2/drivers/gpio/stepper_driver.go b/drivers/gpio/stepper_driver.go similarity index 100% rename from v2/drivers/gpio/stepper_driver.go rename to drivers/gpio/stepper_driver.go diff --git a/v2/drivers/gpio/stepper_driver_test.go b/drivers/gpio/stepper_driver_test.go similarity index 100% rename from v2/drivers/gpio/stepper_driver_test.go rename to drivers/gpio/stepper_driver_test.go diff --git a/v2/drivers/gpio/tm1638_driver.go b/drivers/gpio/tm1638_driver.go similarity index 100% rename from v2/drivers/gpio/tm1638_driver.go rename to drivers/gpio/tm1638_driver.go diff --git a/v2/drivers/gpio/tm1638_driver_test.go b/drivers/gpio/tm1638_driver_test.go similarity index 100% rename from v2/drivers/gpio/tm1638_driver_test.go rename to drivers/gpio/tm1638_driver_test.go diff --git a/v2/drivers/i2c/LICENSE b/drivers/i2c/LICENSE similarity index 100% rename from v2/drivers/i2c/LICENSE rename to drivers/i2c/LICENSE diff --git a/v2/drivers/i2c/README.md b/drivers/i2c/README.md similarity index 100% rename from v2/drivers/i2c/README.md rename to drivers/i2c/README.md diff --git a/v2/drivers/i2c/adafruit1109_driver.go b/drivers/i2c/adafruit1109_driver.go similarity index 100% rename from v2/drivers/i2c/adafruit1109_driver.go rename to drivers/i2c/adafruit1109_driver.go diff --git a/v2/drivers/i2c/adafruit1109_driver_test.go b/drivers/i2c/adafruit1109_driver_test.go similarity index 100% rename from v2/drivers/i2c/adafruit1109_driver_test.go rename to drivers/i2c/adafruit1109_driver_test.go diff --git a/v2/drivers/i2c/adafruit_driver.go b/drivers/i2c/adafruit_driver.go similarity index 100% rename from v2/drivers/i2c/adafruit_driver.go rename to drivers/i2c/adafruit_driver.go diff --git a/v2/drivers/i2c/adafruit_driver_test.go b/drivers/i2c/adafruit_driver_test.go similarity index 100% rename from v2/drivers/i2c/adafruit_driver_test.go rename to drivers/i2c/adafruit_driver_test.go diff --git a/v2/drivers/i2c/ads1x15_driver.go b/drivers/i2c/ads1x15_driver.go similarity index 100% rename from v2/drivers/i2c/ads1x15_driver.go rename to drivers/i2c/ads1x15_driver.go diff --git a/v2/drivers/i2c/ads1x15_driver_1015_test.go b/drivers/i2c/ads1x15_driver_1015_test.go similarity index 100% rename from v2/drivers/i2c/ads1x15_driver_1015_test.go rename to drivers/i2c/ads1x15_driver_1015_test.go diff --git a/v2/drivers/i2c/ads1x15_driver_1115_test.go b/drivers/i2c/ads1x15_driver_1115_test.go similarity index 100% rename from v2/drivers/i2c/ads1x15_driver_1115_test.go rename to drivers/i2c/ads1x15_driver_1115_test.go diff --git a/v2/drivers/i2c/ads1x15_driver_test.go b/drivers/i2c/ads1x15_driver_test.go similarity index 100% rename from v2/drivers/i2c/ads1x15_driver_test.go rename to drivers/i2c/ads1x15_driver_test.go diff --git a/v2/drivers/i2c/adxl345_driver.go b/drivers/i2c/adxl345_driver.go similarity index 100% rename from v2/drivers/i2c/adxl345_driver.go rename to drivers/i2c/adxl345_driver.go diff --git a/v2/drivers/i2c/adxl345_driver_test.go b/drivers/i2c/adxl345_driver_test.go similarity index 100% rename from v2/drivers/i2c/adxl345_driver_test.go rename to drivers/i2c/adxl345_driver_test.go diff --git a/v2/drivers/i2c/bh1750_driver.go b/drivers/i2c/bh1750_driver.go similarity index 100% rename from v2/drivers/i2c/bh1750_driver.go rename to drivers/i2c/bh1750_driver.go diff --git a/v2/drivers/i2c/bh1750_driver_test.go b/drivers/i2c/bh1750_driver_test.go similarity index 100% rename from v2/drivers/i2c/bh1750_driver_test.go rename to drivers/i2c/bh1750_driver_test.go diff --git a/v2/drivers/i2c/blinkm_driver.go b/drivers/i2c/blinkm_driver.go similarity index 100% rename from v2/drivers/i2c/blinkm_driver.go rename to drivers/i2c/blinkm_driver.go diff --git a/v2/drivers/i2c/blinkm_driver_test.go b/drivers/i2c/blinkm_driver_test.go similarity index 100% rename from v2/drivers/i2c/blinkm_driver_test.go rename to drivers/i2c/blinkm_driver_test.go diff --git a/v2/drivers/i2c/bme280_driver.go b/drivers/i2c/bme280_driver.go similarity index 100% rename from v2/drivers/i2c/bme280_driver.go rename to drivers/i2c/bme280_driver.go diff --git a/v2/drivers/i2c/bme280_driver_test.go b/drivers/i2c/bme280_driver_test.go similarity index 100% rename from v2/drivers/i2c/bme280_driver_test.go rename to drivers/i2c/bme280_driver_test.go diff --git a/v2/drivers/i2c/bmp180_driver.go b/drivers/i2c/bmp180_driver.go similarity index 100% rename from v2/drivers/i2c/bmp180_driver.go rename to drivers/i2c/bmp180_driver.go diff --git a/v2/drivers/i2c/bmp180_driver_test.go b/drivers/i2c/bmp180_driver_test.go similarity index 100% rename from v2/drivers/i2c/bmp180_driver_test.go rename to drivers/i2c/bmp180_driver_test.go diff --git a/v2/drivers/i2c/bmp280_driver.go b/drivers/i2c/bmp280_driver.go similarity index 100% rename from v2/drivers/i2c/bmp280_driver.go rename to drivers/i2c/bmp280_driver.go diff --git a/v2/drivers/i2c/bmp280_driver_test.go b/drivers/i2c/bmp280_driver_test.go similarity index 100% rename from v2/drivers/i2c/bmp280_driver_test.go rename to drivers/i2c/bmp280_driver_test.go diff --git a/v2/drivers/i2c/bmp388_driver.go b/drivers/i2c/bmp388_driver.go similarity index 100% rename from v2/drivers/i2c/bmp388_driver.go rename to drivers/i2c/bmp388_driver.go diff --git a/v2/drivers/i2c/bmp388_driver_test.go b/drivers/i2c/bmp388_driver_test.go similarity index 100% rename from v2/drivers/i2c/bmp388_driver_test.go rename to drivers/i2c/bmp388_driver_test.go diff --git a/v2/drivers/i2c/ccs811_driver.go b/drivers/i2c/ccs811_driver.go similarity index 100% rename from v2/drivers/i2c/ccs811_driver.go rename to drivers/i2c/ccs811_driver.go diff --git a/v2/drivers/i2c/ccs811_driver_test.go b/drivers/i2c/ccs811_driver_test.go similarity index 100% rename from v2/drivers/i2c/ccs811_driver_test.go rename to drivers/i2c/ccs811_driver_test.go diff --git a/v2/drivers/i2c/doc.go b/drivers/i2c/doc.go similarity index 100% rename from v2/drivers/i2c/doc.go rename to drivers/i2c/doc.go diff --git a/v2/drivers/i2c/drv2605l_driver.go b/drivers/i2c/drv2605l_driver.go similarity index 100% rename from v2/drivers/i2c/drv2605l_driver.go rename to drivers/i2c/drv2605l_driver.go diff --git a/v2/drivers/i2c/drv2605l_driver_test.go b/drivers/i2c/drv2605l_driver_test.go similarity index 100% rename from v2/drivers/i2c/drv2605l_driver_test.go rename to drivers/i2c/drv2605l_driver_test.go diff --git a/v2/drivers/i2c/generic_driver.go b/drivers/i2c/generic_driver.go similarity index 100% rename from v2/drivers/i2c/generic_driver.go rename to drivers/i2c/generic_driver.go diff --git a/v2/drivers/i2c/generic_driver_test.go b/drivers/i2c/generic_driver_test.go similarity index 100% rename from v2/drivers/i2c/generic_driver_test.go rename to drivers/i2c/generic_driver_test.go diff --git a/v2/drivers/i2c/grove_drivers.go b/drivers/i2c/grove_drivers.go similarity index 100% rename from v2/drivers/i2c/grove_drivers.go rename to drivers/i2c/grove_drivers.go diff --git a/v2/drivers/i2c/grove_drivers_test.go b/drivers/i2c/grove_drivers_test.go similarity index 100% rename from v2/drivers/i2c/grove_drivers_test.go rename to drivers/i2c/grove_drivers_test.go diff --git a/v2/drivers/i2c/grovepi_driver.go b/drivers/i2c/grovepi_driver.go similarity index 100% rename from v2/drivers/i2c/grovepi_driver.go rename to drivers/i2c/grovepi_driver.go diff --git a/v2/drivers/i2c/grovepi_driver_test.go b/drivers/i2c/grovepi_driver_test.go similarity index 100% rename from v2/drivers/i2c/grovepi_driver_test.go rename to drivers/i2c/grovepi_driver_test.go diff --git a/v2/drivers/i2c/helpers_test.go b/drivers/i2c/helpers_test.go similarity index 100% rename from v2/drivers/i2c/helpers_test.go rename to drivers/i2c/helpers_test.go diff --git a/v2/drivers/i2c/hmc5883l_driver.go b/drivers/i2c/hmc5883l_driver.go similarity index 100% rename from v2/drivers/i2c/hmc5883l_driver.go rename to drivers/i2c/hmc5883l_driver.go diff --git a/v2/drivers/i2c/hmc5883l_driver_test.go b/drivers/i2c/hmc5883l_driver_test.go similarity index 100% rename from v2/drivers/i2c/hmc5883l_driver_test.go rename to drivers/i2c/hmc5883l_driver_test.go diff --git a/v2/drivers/i2c/hmc6352_driver.go b/drivers/i2c/hmc6352_driver.go similarity index 100% rename from v2/drivers/i2c/hmc6352_driver.go rename to drivers/i2c/hmc6352_driver.go diff --git a/v2/drivers/i2c/hmc6352_driver_test.go b/drivers/i2c/hmc6352_driver_test.go similarity index 100% rename from v2/drivers/i2c/hmc6352_driver_test.go rename to drivers/i2c/hmc6352_driver_test.go diff --git a/v2/drivers/i2c/i2c_config.go b/drivers/i2c/i2c_config.go similarity index 100% rename from v2/drivers/i2c/i2c_config.go rename to drivers/i2c/i2c_config.go diff --git a/v2/drivers/i2c/i2c_config_test.go b/drivers/i2c/i2c_config_test.go similarity index 100% rename from v2/drivers/i2c/i2c_config_test.go rename to drivers/i2c/i2c_config_test.go diff --git a/v2/drivers/i2c/i2c_connection.go b/drivers/i2c/i2c_connection.go similarity index 100% rename from v2/drivers/i2c/i2c_connection.go rename to drivers/i2c/i2c_connection.go diff --git a/v2/drivers/i2c/i2c_connection_test.go b/drivers/i2c/i2c_connection_test.go similarity index 100% rename from v2/drivers/i2c/i2c_connection_test.go rename to drivers/i2c/i2c_connection_test.go diff --git a/v2/drivers/i2c/i2c_driver.go b/drivers/i2c/i2c_driver.go similarity index 100% rename from v2/drivers/i2c/i2c_driver.go rename to drivers/i2c/i2c_driver.go diff --git a/v2/drivers/i2c/i2c_driver_test.go b/drivers/i2c/i2c_driver_test.go similarity index 100% rename from v2/drivers/i2c/i2c_driver_test.go rename to drivers/i2c/i2c_driver_test.go diff --git a/v2/drivers/i2c/ina3221_driver.go b/drivers/i2c/ina3221_driver.go similarity index 100% rename from v2/drivers/i2c/ina3221_driver.go rename to drivers/i2c/ina3221_driver.go diff --git a/v2/drivers/i2c/ina3221_driver_test.go b/drivers/i2c/ina3221_driver_test.go similarity index 100% rename from v2/drivers/i2c/ina3221_driver_test.go rename to drivers/i2c/ina3221_driver_test.go diff --git a/v2/drivers/i2c/jhd1313m1_driver.go b/drivers/i2c/jhd1313m1_driver.go similarity index 100% rename from v2/drivers/i2c/jhd1313m1_driver.go rename to drivers/i2c/jhd1313m1_driver.go diff --git a/v2/drivers/i2c/jhd1313m1_driver_test.go b/drivers/i2c/jhd1313m1_driver_test.go similarity index 100% rename from v2/drivers/i2c/jhd1313m1_driver_test.go rename to drivers/i2c/jhd1313m1_driver_test.go diff --git a/v2/drivers/i2c/l3gd20h_driver.go b/drivers/i2c/l3gd20h_driver.go similarity index 100% rename from v2/drivers/i2c/l3gd20h_driver.go rename to drivers/i2c/l3gd20h_driver.go diff --git a/v2/drivers/i2c/l3gd20h_driver_test.go b/drivers/i2c/l3gd20h_driver_test.go similarity index 100% rename from v2/drivers/i2c/l3gd20h_driver_test.go rename to drivers/i2c/l3gd20h_driver_test.go diff --git a/v2/drivers/i2c/lidarlite_driver.go b/drivers/i2c/lidarlite_driver.go similarity index 100% rename from v2/drivers/i2c/lidarlite_driver.go rename to drivers/i2c/lidarlite_driver.go diff --git a/v2/drivers/i2c/lidarlite_driver_test.go b/drivers/i2c/lidarlite_driver_test.go similarity index 100% rename from v2/drivers/i2c/lidarlite_driver_test.go rename to drivers/i2c/lidarlite_driver_test.go diff --git a/v2/drivers/i2c/mcp23017_driver.go b/drivers/i2c/mcp23017_driver.go similarity index 100% rename from v2/drivers/i2c/mcp23017_driver.go rename to drivers/i2c/mcp23017_driver.go diff --git a/v2/drivers/i2c/mcp23017_driver_test.go b/drivers/i2c/mcp23017_driver_test.go similarity index 100% rename from v2/drivers/i2c/mcp23017_driver_test.go rename to drivers/i2c/mcp23017_driver_test.go diff --git a/v2/drivers/i2c/mfrc522_driver.go b/drivers/i2c/mfrc522_driver.go similarity index 100% rename from v2/drivers/i2c/mfrc522_driver.go rename to drivers/i2c/mfrc522_driver.go diff --git a/v2/drivers/i2c/mma7660_driver.go b/drivers/i2c/mma7660_driver.go similarity index 100% rename from v2/drivers/i2c/mma7660_driver.go rename to drivers/i2c/mma7660_driver.go diff --git a/v2/drivers/i2c/mma7660_driver_test.go b/drivers/i2c/mma7660_driver_test.go similarity index 100% rename from v2/drivers/i2c/mma7660_driver_test.go rename to drivers/i2c/mma7660_driver_test.go diff --git a/v2/drivers/i2c/mpl115a2_driver.go b/drivers/i2c/mpl115a2_driver.go similarity index 100% rename from v2/drivers/i2c/mpl115a2_driver.go rename to drivers/i2c/mpl115a2_driver.go diff --git a/v2/drivers/i2c/mpl115a2_driver_test.go b/drivers/i2c/mpl115a2_driver_test.go similarity index 100% rename from v2/drivers/i2c/mpl115a2_driver_test.go rename to drivers/i2c/mpl115a2_driver_test.go diff --git a/v2/drivers/i2c/mpu6050_driver.go b/drivers/i2c/mpu6050_driver.go similarity index 100% rename from v2/drivers/i2c/mpu6050_driver.go rename to drivers/i2c/mpu6050_driver.go diff --git a/v2/drivers/i2c/mpu6050_driver_test.go b/drivers/i2c/mpu6050_driver_test.go similarity index 100% rename from v2/drivers/i2c/mpu6050_driver_test.go rename to drivers/i2c/mpu6050_driver_test.go diff --git a/v2/drivers/i2c/pca9501_driver.go b/drivers/i2c/pca9501_driver.go similarity index 100% rename from v2/drivers/i2c/pca9501_driver.go rename to drivers/i2c/pca9501_driver.go diff --git a/v2/drivers/i2c/pca9501_driver_test.go b/drivers/i2c/pca9501_driver_test.go similarity index 100% rename from v2/drivers/i2c/pca9501_driver_test.go rename to drivers/i2c/pca9501_driver_test.go diff --git a/v2/drivers/i2c/pca953x_driver.go b/drivers/i2c/pca953x_driver.go similarity index 100% rename from v2/drivers/i2c/pca953x_driver.go rename to drivers/i2c/pca953x_driver.go diff --git a/v2/drivers/i2c/pca953x_driver_test.go b/drivers/i2c/pca953x_driver_test.go similarity index 100% rename from v2/drivers/i2c/pca953x_driver_test.go rename to drivers/i2c/pca953x_driver_test.go diff --git a/v2/drivers/i2c/pca9685_driver.go b/drivers/i2c/pca9685_driver.go similarity index 100% rename from v2/drivers/i2c/pca9685_driver.go rename to drivers/i2c/pca9685_driver.go diff --git a/v2/drivers/i2c/pca9685_driver_test.go b/drivers/i2c/pca9685_driver_test.go similarity index 100% rename from v2/drivers/i2c/pca9685_driver_test.go rename to drivers/i2c/pca9685_driver_test.go diff --git a/v2/drivers/i2c/pcf8583_driver.go b/drivers/i2c/pcf8583_driver.go similarity index 100% rename from v2/drivers/i2c/pcf8583_driver.go rename to drivers/i2c/pcf8583_driver.go diff --git a/v2/drivers/i2c/pcf8583_driver_test.go b/drivers/i2c/pcf8583_driver_test.go similarity index 100% rename from v2/drivers/i2c/pcf8583_driver_test.go rename to drivers/i2c/pcf8583_driver_test.go diff --git a/v2/drivers/i2c/pcf8591_driver.go b/drivers/i2c/pcf8591_driver.go similarity index 100% rename from v2/drivers/i2c/pcf8591_driver.go rename to drivers/i2c/pcf8591_driver.go diff --git a/v2/drivers/i2c/pcf8591_driver_test.go b/drivers/i2c/pcf8591_driver_test.go similarity index 100% rename from v2/drivers/i2c/pcf8591_driver_test.go rename to drivers/i2c/pcf8591_driver_test.go diff --git a/v2/drivers/i2c/sht2x_driver.go b/drivers/i2c/sht2x_driver.go similarity index 100% rename from v2/drivers/i2c/sht2x_driver.go rename to drivers/i2c/sht2x_driver.go diff --git a/v2/drivers/i2c/sht2x_driver_test.go b/drivers/i2c/sht2x_driver_test.go similarity index 100% rename from v2/drivers/i2c/sht2x_driver_test.go rename to drivers/i2c/sht2x_driver_test.go diff --git a/v2/drivers/i2c/sht3x_driver.go b/drivers/i2c/sht3x_driver.go similarity index 100% rename from v2/drivers/i2c/sht3x_driver.go rename to drivers/i2c/sht3x_driver.go diff --git a/v2/drivers/i2c/sht3x_driver_test.go b/drivers/i2c/sht3x_driver_test.go similarity index 100% rename from v2/drivers/i2c/sht3x_driver_test.go rename to drivers/i2c/sht3x_driver_test.go diff --git a/v2/drivers/i2c/ssd1306_driver.go b/drivers/i2c/ssd1306_driver.go similarity index 100% rename from v2/drivers/i2c/ssd1306_driver.go rename to drivers/i2c/ssd1306_driver.go diff --git a/v2/drivers/i2c/ssd1306_driver_test.go b/drivers/i2c/ssd1306_driver_test.go similarity index 100% rename from v2/drivers/i2c/ssd1306_driver_test.go rename to drivers/i2c/ssd1306_driver_test.go diff --git a/v2/drivers/i2c/th02_driver.go b/drivers/i2c/th02_driver.go similarity index 100% rename from v2/drivers/i2c/th02_driver.go rename to drivers/i2c/th02_driver.go diff --git a/v2/drivers/i2c/th02_driver_test.go b/drivers/i2c/th02_driver_test.go similarity index 100% rename from v2/drivers/i2c/th02_driver_test.go rename to drivers/i2c/th02_driver_test.go diff --git a/v2/drivers/i2c/tsl2561_driver.go b/drivers/i2c/tsl2561_driver.go similarity index 100% rename from v2/drivers/i2c/tsl2561_driver.go rename to drivers/i2c/tsl2561_driver.go diff --git a/v2/drivers/i2c/tsl2561_driver_test.go b/drivers/i2c/tsl2561_driver_test.go similarity index 100% rename from v2/drivers/i2c/tsl2561_driver_test.go rename to drivers/i2c/tsl2561_driver_test.go diff --git a/v2/drivers/i2c/wiichuck_driver.go b/drivers/i2c/wiichuck_driver.go similarity index 100% rename from v2/drivers/i2c/wiichuck_driver.go rename to drivers/i2c/wiichuck_driver.go diff --git a/v2/drivers/i2c/wiichuck_driver_test.go b/drivers/i2c/wiichuck_driver_test.go similarity index 100% rename from v2/drivers/i2c/wiichuck_driver_test.go rename to drivers/i2c/wiichuck_driver_test.go diff --git a/v2/drivers/i2c/yl40_driver.go b/drivers/i2c/yl40_driver.go similarity index 100% rename from v2/drivers/i2c/yl40_driver.go rename to drivers/i2c/yl40_driver.go diff --git a/v2/drivers/i2c/yl40_driver_test.go b/drivers/i2c/yl40_driver_test.go similarity index 100% rename from v2/drivers/i2c/yl40_driver_test.go rename to drivers/i2c/yl40_driver_test.go diff --git a/v2/drivers/spi/README.md b/drivers/spi/README.md similarity index 100% rename from v2/drivers/spi/README.md rename to drivers/spi/README.md diff --git a/v2/drivers/spi/apa102.go b/drivers/spi/apa102.go similarity index 100% rename from v2/drivers/spi/apa102.go rename to drivers/spi/apa102.go diff --git a/v2/drivers/spi/apa102_test.go b/drivers/spi/apa102_test.go similarity index 100% rename from v2/drivers/spi/apa102_test.go rename to drivers/spi/apa102_test.go diff --git a/v2/drivers/spi/doc.go b/drivers/spi/doc.go similarity index 100% rename from v2/drivers/spi/doc.go rename to drivers/spi/doc.go diff --git a/v2/drivers/spi/helpers_test.go b/drivers/spi/helpers_test.go similarity index 100% rename from v2/drivers/spi/helpers_test.go rename to drivers/spi/helpers_test.go diff --git a/v2/drivers/spi/mcp3002.go b/drivers/spi/mcp3002.go similarity index 100% rename from v2/drivers/spi/mcp3002.go rename to drivers/spi/mcp3002.go diff --git a/v2/drivers/spi/mcp3002_test.go b/drivers/spi/mcp3002_test.go similarity index 100% rename from v2/drivers/spi/mcp3002_test.go rename to drivers/spi/mcp3002_test.go diff --git a/v2/drivers/spi/mcp3004.go b/drivers/spi/mcp3004.go similarity index 100% rename from v2/drivers/spi/mcp3004.go rename to drivers/spi/mcp3004.go diff --git a/v2/drivers/spi/mcp3004_test.go b/drivers/spi/mcp3004_test.go similarity index 100% rename from v2/drivers/spi/mcp3004_test.go rename to drivers/spi/mcp3004_test.go diff --git a/v2/drivers/spi/mcp3008.go b/drivers/spi/mcp3008.go similarity index 100% rename from v2/drivers/spi/mcp3008.go rename to drivers/spi/mcp3008.go diff --git a/v2/drivers/spi/mcp3008_test.go b/drivers/spi/mcp3008_test.go similarity index 100% rename from v2/drivers/spi/mcp3008_test.go rename to drivers/spi/mcp3008_test.go diff --git a/v2/drivers/spi/mcp3202.go b/drivers/spi/mcp3202.go similarity index 100% rename from v2/drivers/spi/mcp3202.go rename to drivers/spi/mcp3202.go diff --git a/v2/drivers/spi/mcp3202_test.go b/drivers/spi/mcp3202_test.go similarity index 100% rename from v2/drivers/spi/mcp3202_test.go rename to drivers/spi/mcp3202_test.go diff --git a/v2/drivers/spi/mcp3204.go b/drivers/spi/mcp3204.go similarity index 100% rename from v2/drivers/spi/mcp3204.go rename to drivers/spi/mcp3204.go diff --git a/v2/drivers/spi/mcp3204_test.go b/drivers/spi/mcp3204_test.go similarity index 100% rename from v2/drivers/spi/mcp3204_test.go rename to drivers/spi/mcp3204_test.go diff --git a/v2/drivers/spi/mcp3208.go b/drivers/spi/mcp3208.go similarity index 100% rename from v2/drivers/spi/mcp3208.go rename to drivers/spi/mcp3208.go diff --git a/v2/drivers/spi/mcp3208_test.go b/drivers/spi/mcp3208_test.go similarity index 100% rename from v2/drivers/spi/mcp3208_test.go rename to drivers/spi/mcp3208_test.go diff --git a/v2/drivers/spi/mcp3304.go b/drivers/spi/mcp3304.go similarity index 100% rename from v2/drivers/spi/mcp3304.go rename to drivers/spi/mcp3304.go diff --git a/v2/drivers/spi/mcp3304_test.go b/drivers/spi/mcp3304_test.go similarity index 100% rename from v2/drivers/spi/mcp3304_test.go rename to drivers/spi/mcp3304_test.go diff --git a/v2/drivers/spi/mfrc522_driver.go b/drivers/spi/mfrc522_driver.go similarity index 100% rename from v2/drivers/spi/mfrc522_driver.go rename to drivers/spi/mfrc522_driver.go diff --git a/v2/drivers/spi/mfrc522_driver_test.go b/drivers/spi/mfrc522_driver_test.go similarity index 100% rename from v2/drivers/spi/mfrc522_driver_test.go rename to drivers/spi/mfrc522_driver_test.go diff --git a/v2/drivers/spi/spi_config.go b/drivers/spi/spi_config.go similarity index 100% rename from v2/drivers/spi/spi_config.go rename to drivers/spi/spi_config.go diff --git a/v2/drivers/spi/spi_connection.go b/drivers/spi/spi_connection.go similarity index 100% rename from v2/drivers/spi/spi_connection.go rename to drivers/spi/spi_connection.go diff --git a/v2/drivers/spi/spi_connection_test.go b/drivers/spi/spi_connection_test.go similarity index 100% rename from v2/drivers/spi/spi_connection_test.go rename to drivers/spi/spi_connection_test.go diff --git a/v2/drivers/spi/spi_driver.go b/drivers/spi/spi_driver.go similarity index 100% rename from v2/drivers/spi/spi_driver.go rename to drivers/spi/spi_driver.go diff --git a/v2/drivers/spi/spi_driver_test.go b/drivers/spi/spi_driver_test.go similarity index 100% rename from v2/drivers/spi/spi_driver_test.go rename to drivers/spi/spi_driver_test.go diff --git a/v2/drivers/spi/ssd1306_driver.go b/drivers/spi/ssd1306_driver.go similarity index 100% rename from v2/drivers/spi/ssd1306_driver.go rename to drivers/spi/ssd1306_driver.go diff --git a/v2/drivers/spi/ssd1306_driver_test.go b/drivers/spi/ssd1306_driver_test.go similarity index 100% rename from v2/drivers/spi/ssd1306_driver_test.go rename to drivers/spi/ssd1306_driver_test.go diff --git a/v2/event.go b/event.go similarity index 100% rename from v2/event.go rename to event.go diff --git a/v2/eventer.go b/eventer.go similarity index 100% rename from v2/eventer.go rename to eventer.go diff --git a/v2/eventer_test.go b/eventer_test.go similarity index 100% rename from v2/eventer_test.go rename to eventer_test.go diff --git a/v2/examples/ardrone.go b/examples/ardrone.go similarity index 100% rename from v2/examples/ardrone.go rename to examples/ardrone.go diff --git a/v2/examples/ardrone_face_tracking.go b/examples/ardrone_face_tracking.go similarity index 100% rename from v2/examples/ardrone_face_tracking.go rename to examples/ardrone_face_tracking.go diff --git a/v2/examples/ardrone_ps3.go b/examples/ardrone_ps3.go similarity index 100% rename from v2/examples/ardrone_ps3.go rename to examples/ardrone_ps3.go diff --git a/v2/examples/audio.go b/examples/audio.go similarity index 100% rename from v2/examples/audio.go rename to examples/audio.go diff --git a/v2/examples/batty.go b/examples/batty.go similarity index 100% rename from v2/examples/batty.go rename to examples/batty.go diff --git a/v2/examples/bb8-collision.go b/examples/bb8-collision.go similarity index 100% rename from v2/examples/bb8-collision.go rename to examples/bb8-collision.go diff --git a/v2/examples/bb8.go b/examples/bb8.go similarity index 100% rename from v2/examples/bb8.go rename to examples/bb8.go diff --git a/v2/examples/beaglebone_basic_direct_pin.go b/examples/beaglebone_basic_direct_pin.go similarity index 100% rename from v2/examples/beaglebone_basic_direct_pin.go rename to examples/beaglebone_basic_direct_pin.go diff --git a/v2/examples/beaglebone_blink.go b/examples/beaglebone_blink.go similarity index 100% rename from v2/examples/beaglebone_blink.go rename to examples/beaglebone_blink.go diff --git a/v2/examples/beaglebone_blink_usr_led.go b/examples/beaglebone_blink_usr_led.go similarity index 100% rename from v2/examples/beaglebone_blink_usr_led.go rename to examples/beaglebone_blink_usr_led.go diff --git a/v2/examples/beaglebone_blinkm.go b/examples/beaglebone_blinkm.go similarity index 100% rename from v2/examples/beaglebone_blinkm.go rename to examples/beaglebone_blinkm.go diff --git a/v2/examples/beaglebone_button.go b/examples/beaglebone_button.go similarity index 100% rename from v2/examples/beaglebone_button.go rename to examples/beaglebone_button.go diff --git a/v2/examples/beaglebone_direct_pin.go b/examples/beaglebone_direct_pin.go similarity index 100% rename from v2/examples/beaglebone_direct_pin.go rename to examples/beaglebone_direct_pin.go diff --git a/v2/examples/beaglebone_grove_accelerometer.go b/examples/beaglebone_grove_accelerometer.go similarity index 100% rename from v2/examples/beaglebone_grove_accelerometer.go rename to examples/beaglebone_grove_accelerometer.go diff --git a/v2/examples/beaglebone_led_brightness.go b/examples/beaglebone_led_brightness.go similarity index 100% rename from v2/examples/beaglebone_led_brightness.go rename to examples/beaglebone_led_brightness.go diff --git a/v2/examples/beaglebone_led_brightness_with_analog_input.go b/examples/beaglebone_led_brightness_with_analog_input.go similarity index 100% rename from v2/examples/beaglebone_led_brightness_with_analog_input.go rename to examples/beaglebone_led_brightness_with_analog_input.go diff --git a/v2/examples/beaglebone_makey_button.go b/examples/beaglebone_makey_button.go similarity index 100% rename from v2/examples/beaglebone_makey_button.go rename to examples/beaglebone_makey_button.go diff --git a/v2/examples/beaglebone_servo.go b/examples/beaglebone_servo.go similarity index 100% rename from v2/examples/beaglebone_servo.go rename to examples/beaglebone_servo.go diff --git a/v2/examples/bebop.go b/examples/bebop.go similarity index 100% rename from v2/examples/bebop.go rename to examples/bebop.go diff --git a/v2/examples/bebop.sdp b/examples/bebop.sdp similarity index 100% rename from v2/examples/bebop.sdp rename to examples/bebop.sdp diff --git a/v2/examples/bebop_ps3.go b/examples/bebop_ps3.go similarity index 100% rename from v2/examples/bebop_ps3.go rename to examples/bebop_ps3.go diff --git a/v2/examples/bebop_ps3_video.go b/examples/bebop_ps3_video.go similarity index 100% rename from v2/examples/bebop_ps3_video.go rename to examples/bebop_ps3_video.go diff --git a/v2/examples/bebop_rtp_video.go b/examples/bebop_rtp_video.go similarity index 100% rename from v2/examples/bebop_rtp_video.go rename to examples/bebop_rtp_video.go diff --git a/v2/examples/ble_battery.go b/examples/ble_battery.go similarity index 100% rename from v2/examples/ble_battery.go rename to examples/ble_battery.go diff --git a/v2/examples/ble_device_info.go b/examples/ble_device_info.go similarity index 100% rename from v2/examples/ble_device_info.go rename to examples/ble_device_info.go diff --git a/v2/examples/ble_firmata_blink.go b/examples/ble_firmata_blink.go similarity index 100% rename from v2/examples/ble_firmata_blink.go rename to examples/ble_firmata_blink.go diff --git a/v2/examples/ble_firmata_curie_imu.go b/examples/ble_firmata_curie_imu.go similarity index 100% rename from v2/examples/ble_firmata_curie_imu.go rename to examples/ble_firmata_curie_imu.go diff --git a/v2/examples/ble_generic_access.go b/examples/ble_generic_access.go similarity index 100% rename from v2/examples/ble_generic_access.go rename to examples/ble_generic_access.go diff --git a/v2/examples/ble_multiple_generic.go b/examples/ble_multiple_generic.go similarity index 100% rename from v2/examples/ble_multiple_generic.go rename to examples/ble_multiple_generic.go diff --git a/v2/examples/ble_multiple_info.go b/examples/ble_multiple_info.go similarity index 100% rename from v2/examples/ble_multiple_info.go rename to examples/ble_multiple_info.go diff --git a/v2/examples/chip_blink.go b/examples/chip_blink.go similarity index 100% rename from v2/examples/chip_blink.go rename to examples/chip_blink.go diff --git a/v2/examples/chip_blinkm.go b/examples/chip_blinkm.go similarity index 100% rename from v2/examples/chip_blinkm.go rename to examples/chip_blinkm.go diff --git a/v2/examples/chip_button.go b/examples/chip_button.go similarity index 100% rename from v2/examples/chip_button.go rename to examples/chip_button.go diff --git a/v2/examples/chip_button_led.go b/examples/chip_button_led.go similarity index 100% rename from v2/examples/chip_button_led.go rename to examples/chip_button_led.go diff --git a/v2/examples/chip_drv2605l.go b/examples/chip_drv2605l.go similarity index 100% rename from v2/examples/chip_drv2605l.go rename to examples/chip_drv2605l.go diff --git a/v2/examples/chip_grove_accelerometer.go b/examples/chip_grove_accelerometer.go similarity index 100% rename from v2/examples/chip_grove_accelerometer.go rename to examples/chip_grove_accelerometer.go diff --git a/v2/examples/chip_grove_lcd.go b/examples/chip_grove_lcd.go similarity index 100% rename from v2/examples/chip_grove_lcd.go rename to examples/chip_grove_lcd.go diff --git a/v2/examples/chip_mpu6050.go b/examples/chip_mpu6050.go similarity index 100% rename from v2/examples/chip_mpu6050.go rename to examples/chip_mpu6050.go diff --git a/v2/examples/chip_tsl2561.go b/examples/chip_tsl2561.go similarity index 100% rename from v2/examples/chip_tsl2561.go rename to examples/chip_tsl2561.go diff --git a/v2/examples/chip_wiichuck.go b/examples/chip_wiichuck.go similarity index 100% rename from v2/examples/chip_wiichuck.go rename to examples/chip_wiichuck.go diff --git a/v2/examples/digispark_api.go b/examples/digispark_api.go similarity index 100% rename from v2/examples/digispark_api.go rename to examples/digispark_api.go diff --git a/v2/examples/digispark_blink.go b/examples/digispark_blink.go similarity index 100% rename from v2/examples/digispark_blink.go rename to examples/digispark_blink.go diff --git a/v2/examples/digispark_blinkm.go b/examples/digispark_blinkm.go similarity index 100% rename from v2/examples/digispark_blinkm.go rename to examples/digispark_blinkm.go diff --git a/v2/examples/digispark_driver.go b/examples/digispark_driver.go similarity index 100% rename from v2/examples/digispark_driver.go rename to examples/digispark_driver.go diff --git a/v2/examples/digispark_led_brightness.go b/examples/digispark_led_brightness.go similarity index 100% rename from v2/examples/digispark_led_brightness.go rename to examples/digispark_led_brightness.go diff --git a/v2/examples/digispark_mpl115a2.go b/examples/digispark_mpl115a2.go similarity index 100% rename from v2/examples/digispark_mpl115a2.go rename to examples/digispark_mpl115a2.go diff --git a/v2/examples/digispark_pca9501.go b/examples/digispark_pca9501.go similarity index 100% rename from v2/examples/digispark_pca9501.go rename to examples/digispark_pca9501.go diff --git a/v2/examples/digispark_servo.go b/examples/digispark_servo.go similarity index 100% rename from v2/examples/digispark_servo.go rename to examples/digispark_servo.go diff --git a/v2/examples/dragonboard_button.go b/examples/dragonboard_button.go similarity index 100% rename from v2/examples/dragonboard_button.go rename to examples/dragonboard_button.go diff --git a/v2/examples/edison_blink.go b/examples/edison_blink.go similarity index 100% rename from v2/examples/edison_blink.go rename to examples/edison_blink.go diff --git a/v2/examples/edison_blink_without_all_gobot_framework.go b/examples/edison_blink_without_all_gobot_framework.go similarity index 100% rename from v2/examples/edison_blink_without_all_gobot_framework.go rename to examples/edison_blink_without_all_gobot_framework.go diff --git a/v2/examples/edison_blinkm.go b/examples/edison_blinkm.go similarity index 100% rename from v2/examples/edison_blinkm.go rename to examples/edison_blinkm.go diff --git a/v2/examples/edison_bme280.go b/examples/edison_bme280.go similarity index 100% rename from v2/examples/edison_bme280.go rename to examples/edison_bme280.go diff --git a/v2/examples/edison_button.go b/examples/edison_button.go similarity index 100% rename from v2/examples/edison_button.go rename to examples/edison_button.go diff --git a/v2/examples/edison_button_led.go b/examples/edison_button_led.go similarity index 100% rename from v2/examples/edison_button_led.go rename to examples/edison_button_led.go diff --git a/v2/examples/edison_button_led_api.go b/examples/edison_button_led_api.go similarity index 100% rename from v2/examples/edison_button_led_api.go rename to examples/edison_button_led_api.go diff --git a/v2/examples/edison_grove_accelerometer.go b/examples/edison_grove_accelerometer.go similarity index 100% rename from v2/examples/edison_grove_accelerometer.go rename to examples/edison_grove_accelerometer.go diff --git a/v2/examples/edison_grove_blink.go b/examples/edison_grove_blink.go similarity index 100% rename from v2/examples/edison_grove_blink.go rename to examples/edison_grove_blink.go diff --git a/v2/examples/edison_grove_button.go b/examples/edison_grove_button.go similarity index 100% rename from v2/examples/edison_grove_button.go rename to examples/edison_grove_button.go diff --git a/v2/examples/edison_grove_buzzer.go b/examples/edison_grove_buzzer.go similarity index 100% rename from v2/examples/edison_grove_buzzer.go rename to examples/edison_grove_buzzer.go diff --git a/v2/examples/edison_grove_lcd.go b/examples/edison_grove_lcd.go similarity index 100% rename from v2/examples/edison_grove_lcd.go rename to examples/edison_grove_lcd.go diff --git a/v2/examples/edison_grove_led.go b/examples/edison_grove_led.go similarity index 100% rename from v2/examples/edison_grove_led.go rename to examples/edison_grove_led.go diff --git a/v2/examples/edison_grove_light_sensor.go b/examples/edison_grove_light_sensor.go similarity index 100% rename from v2/examples/edison_grove_light_sensor.go rename to examples/edison_grove_light_sensor.go diff --git a/v2/examples/edison_grove_piezo_vibration.go b/examples/edison_grove_piezo_vibration.go similarity index 100% rename from v2/examples/edison_grove_piezo_vibration.go rename to examples/edison_grove_piezo_vibration.go diff --git a/v2/examples/edison_grove_rotary_sensor.go b/examples/edison_grove_rotary_sensor.go similarity index 100% rename from v2/examples/edison_grove_rotary_sensor.go rename to examples/edison_grove_rotary_sensor.go diff --git a/v2/examples/edison_grove_sound_sensor.go b/examples/edison_grove_sound_sensor.go similarity index 100% rename from v2/examples/edison_grove_sound_sensor.go rename to examples/edison_grove_sound_sensor.go diff --git a/v2/examples/edison_grove_temperature_sensor.go b/examples/edison_grove_temperature_sensor.go similarity index 100% rename from v2/examples/edison_grove_temperature_sensor.go rename to examples/edison_grove_temperature_sensor.go diff --git a/v2/examples/edison_grove_touch.go b/examples/edison_grove_touch.go similarity index 100% rename from v2/examples/edison_grove_touch.go rename to examples/edison_grove_touch.go diff --git a/v2/examples/edison_led_brightness.go b/examples/edison_led_brightness.go similarity index 100% rename from v2/examples/edison_led_brightness.go rename to examples/edison_led_brightness.go diff --git a/v2/examples/edison_led_brightness_with_analog_input.go b/examples/edison_led_brightness_with_analog_input.go similarity index 100% rename from v2/examples/edison_led_brightness_with_analog_input.go rename to examples/edison_led_brightness_with_analog_input.go diff --git a/v2/examples/edison_miniboard_grove_accelerometer.go b/examples/edison_miniboard_grove_accelerometer.go similarity index 100% rename from v2/examples/edison_miniboard_grove_accelerometer.go rename to examples/edison_miniboard_grove_accelerometer.go diff --git a/v2/examples/edison_rgb_led.go b/examples/edison_rgb_led.go similarity index 100% rename from v2/examples/edison_rgb_led.go rename to examples/edison_rgb_led.go diff --git a/v2/examples/every_done.go b/examples/every_done.go similarity index 100% rename from v2/examples/every_done.go rename to examples/every_done.go diff --git a/v2/examples/firmata_adxl345.go b/examples/firmata_adxl345.go similarity index 100% rename from v2/examples/firmata_adxl345.go rename to examples/firmata_adxl345.go diff --git a/v2/examples/firmata_aip1640.go b/examples/firmata_aip1640.go similarity index 100% rename from v2/examples/firmata_aip1640.go rename to examples/firmata_aip1640.go diff --git a/v2/examples/firmata_blink.go b/examples/firmata_blink.go similarity index 100% rename from v2/examples/firmata_blink.go rename to examples/firmata_blink.go diff --git a/v2/examples/firmata_blink_api.go b/examples/firmata_blink_api.go similarity index 100% rename from v2/examples/firmata_blink_api.go rename to examples/firmata_blink_api.go diff --git a/v2/examples/firmata_blink_metal.go b/examples/firmata_blink_metal.go similarity index 100% rename from v2/examples/firmata_blink_metal.go rename to examples/firmata_blink_metal.go diff --git a/v2/examples/firmata_blink_robot.go b/examples/firmata_blink_robot.go similarity index 100% rename from v2/examples/firmata_blink_robot.go rename to examples/firmata_blink_robot.go diff --git a/v2/examples/firmata_blinkm.go b/examples/firmata_blinkm.go similarity index 100% rename from v2/examples/firmata_blinkm.go rename to examples/firmata_blinkm.go diff --git a/v2/examples/firmata_bme280.go b/examples/firmata_bme280.go similarity index 100% rename from v2/examples/firmata_bme280.go rename to examples/firmata_bme280.go diff --git a/v2/examples/firmata_bmp180.go b/examples/firmata_bmp180.go similarity index 100% rename from v2/examples/firmata_bmp180.go rename to examples/firmata_bmp180.go diff --git a/v2/examples/firmata_bmp280.go b/examples/firmata_bmp280.go similarity index 100% rename from v2/examples/firmata_bmp280.go rename to examples/firmata_bmp280.go diff --git a/v2/examples/firmata_button.go b/examples/firmata_button.go similarity index 100% rename from v2/examples/firmata_button.go rename to examples/firmata_button.go diff --git a/v2/examples/firmata_buzzer.go b/examples/firmata_buzzer.go similarity index 100% rename from v2/examples/firmata_buzzer.go rename to examples/firmata_buzzer.go diff --git a/v2/examples/firmata_cat_toy.go b/examples/firmata_cat_toy.go similarity index 100% rename from v2/examples/firmata_cat_toy.go rename to examples/firmata_cat_toy.go diff --git a/v2/examples/firmata_curie_imu.go b/examples/firmata_curie_imu.go similarity index 100% rename from v2/examples/firmata_curie_imu.go rename to examples/firmata_curie_imu.go diff --git a/v2/examples/firmata_curie_imu_shock_detect.go b/examples/firmata_curie_imu_shock_detect.go similarity index 100% rename from v2/examples/firmata_curie_imu_shock_detect.go rename to examples/firmata_curie_imu_shock_detect.go diff --git a/v2/examples/firmata_curie_imu_step_counter.go b/examples/firmata_curie_imu_step_counter.go similarity index 100% rename from v2/examples/firmata_curie_imu_step_counter.go rename to examples/firmata_curie_imu_step_counter.go diff --git a/v2/examples/firmata_curie_imu_tap_detect.go b/examples/firmata_curie_imu_tap_detect.go similarity index 100% rename from v2/examples/firmata_curie_imu_tap_detect.go rename to examples/firmata_curie_imu_tap_detect.go diff --git a/v2/examples/firmata_direct_pin.go b/examples/firmata_direct_pin.go similarity index 100% rename from v2/examples/firmata_direct_pin.go rename to examples/firmata_direct_pin.go diff --git a/v2/examples/firmata_gpio_max7219.go b/examples/firmata_gpio_max7219.go similarity index 100% rename from v2/examples/firmata_gpio_max7219.go rename to examples/firmata_gpio_max7219.go diff --git a/v2/examples/firmata_grove_lcd.go b/examples/firmata_grove_lcd.go similarity index 100% rename from v2/examples/firmata_grove_lcd.go rename to examples/firmata_grove_lcd.go diff --git a/v2/examples/firmata_grove_sound_sensor.go b/examples/firmata_grove_sound_sensor.go similarity index 100% rename from v2/examples/firmata_grove_sound_sensor.go rename to examples/firmata_grove_sound_sensor.go diff --git a/v2/examples/firmata_hmc6352.go b/examples/firmata_hmc6352.go similarity index 100% rename from v2/examples/firmata_hmc6352.go rename to examples/firmata_hmc6352.go diff --git a/v2/examples/firmata_integration.go b/examples/firmata_integration.go similarity index 100% rename from v2/examples/firmata_integration.go rename to examples/firmata_integration.go diff --git a/v2/examples/firmata_led_brightness.go b/examples/firmata_led_brightness.go similarity index 100% rename from v2/examples/firmata_led_brightness.go rename to examples/firmata_led_brightness.go diff --git a/v2/examples/firmata_led_brightness_with_analog_input.go b/examples/firmata_led_brightness_with_analog_input.go similarity index 100% rename from v2/examples/firmata_led_brightness_with_analog_input.go rename to examples/firmata_led_brightness_with_analog_input.go diff --git a/v2/examples/firmata_lidarlite.go b/examples/firmata_lidarlite.go similarity index 100% rename from v2/examples/firmata_lidarlite.go rename to examples/firmata_lidarlite.go diff --git a/v2/examples/firmata_makey_button.go b/examples/firmata_makey_button.go similarity index 100% rename from v2/examples/firmata_makey_button.go rename to examples/firmata_makey_button.go diff --git a/v2/examples/firmata_metal_button.go b/examples/firmata_metal_button.go similarity index 100% rename from v2/examples/firmata_metal_button.go rename to examples/firmata_metal_button.go diff --git a/v2/examples/firmata_mma7660.go b/examples/firmata_mma7660.go similarity index 100% rename from v2/examples/firmata_mma7660.go rename to examples/firmata_mma7660.go diff --git a/v2/examples/firmata_motor.go b/examples/firmata_motor.go similarity index 100% rename from v2/examples/firmata_motor.go rename to examples/firmata_motor.go diff --git a/v2/examples/firmata_mpl115a2.go b/examples/firmata_mpl115a2.go similarity index 100% rename from v2/examples/firmata_mpl115a2.go rename to examples/firmata_mpl115a2.go diff --git a/v2/examples/firmata_mpu6050.go b/examples/firmata_mpu6050.go similarity index 100% rename from v2/examples/firmata_mpu6050.go rename to examples/firmata_mpu6050.go diff --git a/v2/examples/firmata_pca9685.go b/examples/firmata_pca9685.go similarity index 100% rename from v2/examples/firmata_pca9685.go rename to examples/firmata_pca9685.go diff --git a/v2/examples/firmata_pir_motion.go b/examples/firmata_pir_motion.go similarity index 100% rename from v2/examples/firmata_pir_motion.go rename to examples/firmata_pir_motion.go diff --git a/v2/examples/firmata_rgb_led.go b/examples/firmata_rgb_led.go similarity index 100% rename from v2/examples/firmata_rgb_led.go rename to examples/firmata_rgb_led.go diff --git a/v2/examples/firmata_servo.go b/examples/firmata_servo.go similarity index 100% rename from v2/examples/firmata_servo.go rename to examples/firmata_servo.go diff --git a/v2/examples/firmata_ssd1306.go b/examples/firmata_ssd1306.go similarity index 100% rename from v2/examples/firmata_ssd1306.go rename to examples/firmata_ssd1306.go diff --git a/v2/examples/firmata_temp36.go b/examples/firmata_temp36.go similarity index 100% rename from v2/examples/firmata_temp36.go rename to examples/firmata_temp36.go diff --git a/v2/examples/firmata_tm1638.go b/examples/firmata_tm1638.go similarity index 100% rename from v2/examples/firmata_tm1638.go rename to examples/firmata_tm1638.go diff --git a/v2/examples/firmata_travis.go b/examples/firmata_travis.go similarity index 100% rename from v2/examples/firmata_travis.go rename to examples/firmata_travis.go diff --git a/v2/examples/firmata_wiichuck.go b/examples/firmata_wiichuck.go similarity index 100% rename from v2/examples/firmata_wiichuck.go rename to examples/firmata_wiichuck.go diff --git a/v2/examples/gopigo3.go b/examples/gopigo3.go similarity index 100% rename from v2/examples/gopigo3.go rename to examples/gopigo3.go diff --git a/v2/examples/gopigo3_grove_button.go b/examples/gopigo3_grove_button.go similarity index 100% rename from v2/examples/gopigo3_grove_button.go rename to examples/gopigo3_grove_button.go diff --git a/v2/examples/gopigo3_grove_lcd.go b/examples/gopigo3_grove_lcd.go similarity index 100% rename from v2/examples/gopigo3_grove_lcd.go rename to examples/gopigo3_grove_lcd.go diff --git a/v2/examples/gopigo3_grove_light_sensor.go b/examples/gopigo3_grove_light_sensor.go similarity index 100% rename from v2/examples/gopigo3_grove_light_sensor.go rename to examples/gopigo3_grove_light_sensor.go diff --git a/v2/examples/gopigo3_led_brightness.go b/examples/gopigo3_led_brightness.go similarity index 100% rename from v2/examples/gopigo3_led_brightness.go rename to examples/gopigo3_led_brightness.go diff --git a/v2/examples/gopigo3_servo.go b/examples/gopigo3_servo.go similarity index 100% rename from v2/examples/gopigo3_servo.go rename to examples/gopigo3_servo.go diff --git a/v2/examples/haarcascade_frontalface_alt.xml b/examples/haarcascade_frontalface_alt.xml similarity index 100% rename from v2/examples/haarcascade_frontalface_alt.xml rename to examples/haarcascade_frontalface_alt.xml diff --git a/v2/examples/hello.go b/examples/hello.go similarity index 100% rename from v2/examples/hello.go rename to examples/hello.go diff --git a/v2/examples/hello_api.go b/examples/hello_api.go similarity index 100% rename from v2/examples/hello_api.go rename to examples/hello_api.go diff --git a/v2/examples/hello_api_auth.go b/examples/hello_api_auth.go similarity index 100% rename from v2/examples/hello_api_auth.go rename to examples/hello_api_auth.go diff --git a/v2/examples/hello_api_custom.go b/examples/hello_api_custom.go similarity index 100% rename from v2/examples/hello_api_custom.go rename to examples/hello_api_custom.go diff --git a/v2/examples/hello_api_video.go b/examples/hello_api_video.go similarity index 100% rename from v2/examples/hello_api_video.go rename to examples/hello_api_video.go diff --git a/v2/examples/holystone_hs200.go b/examples/holystone_hs200.go similarity index 100% rename from v2/examples/holystone_hs200.go rename to examples/holystone_hs200.go diff --git a/v2/examples/jetson-nano_blink.go b/examples/jetson-nano_blink.go similarity index 100% rename from v2/examples/jetson-nano_blink.go rename to examples/jetson-nano_blink.go diff --git a/v2/examples/jetson-nano_servo.go b/examples/jetson-nano_servo.go similarity index 100% rename from v2/examples/jetson-nano_servo.go rename to examples/jetson-nano_servo.go diff --git a/v2/examples/joule_blink.go b/examples/joule_blink.go similarity index 100% rename from v2/examples/joule_blink.go rename to examples/joule_blink.go diff --git a/v2/examples/joule_blinkm.go b/examples/joule_blinkm.go similarity index 100% rename from v2/examples/joule_blinkm.go rename to examples/joule_blinkm.go diff --git a/v2/examples/joule_grove_lcd.go b/examples/joule_grove_lcd.go similarity index 100% rename from v2/examples/joule_grove_lcd.go rename to examples/joule_grove_lcd.go diff --git a/v2/examples/joule_grove_rotary_sensor.go b/examples/joule_grove_rotary_sensor.go similarity index 100% rename from v2/examples/joule_grove_rotary_sensor.go rename to examples/joule_grove_rotary_sensor.go diff --git a/v2/examples/joule_led_brightness.go b/examples/joule_led_brightness.go similarity index 100% rename from v2/examples/joule_led_brightness.go rename to examples/joule_led_brightness.go diff --git a/v2/examples/joule_led_brightness_with_analog_input.go b/examples/joule_led_brightness_with_analog_input.go similarity index 100% rename from v2/examples/joule_led_brightness_with_analog_input.go rename to examples/joule_led_brightness_with_analog_input.go diff --git a/v2/examples/joule_leds.go b/examples/joule_leds.go similarity index 100% rename from v2/examples/joule_leds.go rename to examples/joule_leds.go diff --git a/v2/examples/joule_rgb_led.go b/examples/joule_rgb_led.go similarity index 100% rename from v2/examples/joule_rgb_led.go rename to examples/joule_rgb_led.go diff --git a/v2/examples/joystick_ps3.go b/examples/joystick_ps3.go similarity index 100% rename from v2/examples/joystick_ps3.go rename to examples/joystick_ps3.go diff --git a/v2/examples/joystick_ps4.go b/examples/joystick_ps4.go similarity index 100% rename from v2/examples/joystick_ps4.go rename to examples/joystick_ps4.go diff --git a/v2/examples/joystick_ps5.go b/examples/joystick_ps5.go similarity index 100% rename from v2/examples/joystick_ps5.go rename to examples/joystick_ps5.go diff --git a/v2/examples/joystick_xbox360.go b/examples/joystick_xbox360.go similarity index 100% rename from v2/examples/joystick_xbox360.go rename to examples/joystick_xbox360.go diff --git a/v2/examples/joystick_xbox360_rock_band_drums.go b/examples/joystick_xbox360_rock_band_drums.go similarity index 100% rename from v2/examples/joystick_xbox360_rock_band_drums.go rename to examples/joystick_xbox360_rock_band_drums.go diff --git a/v2/examples/joystick_xboxone.go b/examples/joystick_xboxone.go similarity index 100% rename from v2/examples/joystick_xboxone.go rename to examples/joystick_xboxone.go diff --git a/v2/examples/keyboard.go b/examples/keyboard.go similarity index 100% rename from v2/examples/keyboard.go rename to examples/keyboard.go diff --git a/v2/examples/keyboard_mqtt.go b/examples/keyboard_mqtt.go similarity index 100% rename from v2/examples/keyboard_mqtt.go rename to examples/keyboard_mqtt.go diff --git a/v2/examples/laser.mp3 b/examples/laser.mp3 similarity index 100% rename from v2/examples/laser.mp3 rename to examples/laser.mp3 diff --git a/v2/examples/leap_motion.go b/examples/leap_motion.go similarity index 100% rename from v2/examples/leap_motion.go rename to examples/leap_motion.go diff --git a/v2/examples/leap_motion_gestures.go b/examples/leap_motion_gestures.go similarity index 100% rename from v2/examples/leap_motion_gestures.go rename to examples/leap_motion_gestures.go diff --git a/v2/examples/leap_motion_hands.go b/examples/leap_motion_hands.go similarity index 100% rename from v2/examples/leap_motion_hands.go rename to examples/leap_motion_hands.go diff --git a/v2/examples/leap_servos.go b/examples/leap_servos.go similarity index 100% rename from v2/examples/leap_servos.go rename to examples/leap_servos.go diff --git a/v2/examples/leap_sphero.go b/examples/leap_sphero.go similarity index 100% rename from v2/examples/leap_sphero.go rename to examples/leap_sphero.go diff --git a/v2/examples/mavlink.go b/examples/mavlink.go similarity index 100% rename from v2/examples/mavlink.go rename to examples/mavlink.go diff --git a/v2/examples/megapi_motor.go b/examples/megapi_motor.go similarity index 100% rename from v2/examples/megapi_motor.go rename to examples/megapi_motor.go diff --git a/v2/examples/metal_button.go b/examples/metal_button.go similarity index 100% rename from v2/examples/metal_button.go rename to examples/metal_button.go diff --git a/v2/examples/microbit_accelerometer.go b/examples/microbit_accelerometer.go similarity index 100% rename from v2/examples/microbit_accelerometer.go rename to examples/microbit_accelerometer.go diff --git a/v2/examples/microbit_blink.go b/examples/microbit_blink.go similarity index 100% rename from v2/examples/microbit_blink.go rename to examples/microbit_blink.go diff --git a/v2/examples/microbit_buttons.go b/examples/microbit_buttons.go similarity index 100% rename from v2/examples/microbit_buttons.go rename to examples/microbit_buttons.go diff --git a/v2/examples/microbit_buttons_leds.go b/examples/microbit_buttons_leds.go similarity index 100% rename from v2/examples/microbit_buttons_leds.go rename to examples/microbit_buttons_leds.go diff --git a/v2/examples/microbit_io_button.go b/examples/microbit_io_button.go similarity index 100% rename from v2/examples/microbit_io_button.go rename to examples/microbit_io_button.go diff --git a/v2/examples/microbit_led.go b/examples/microbit_led.go similarity index 100% rename from v2/examples/microbit_led.go rename to examples/microbit_led.go diff --git a/v2/examples/microbit_magnetometer.go b/examples/microbit_magnetometer.go similarity index 100% rename from v2/examples/microbit_magnetometer.go rename to examples/microbit_magnetometer.go diff --git a/v2/examples/microbit_temperature.go b/examples/microbit_temperature.go similarity index 100% rename from v2/examples/microbit_temperature.go rename to examples/microbit_temperature.go diff --git a/v2/examples/minidrone.go b/examples/minidrone.go similarity index 100% rename from v2/examples/minidrone.go rename to examples/minidrone.go diff --git a/v2/examples/minidrone_events.go b/examples/minidrone_events.go similarity index 100% rename from v2/examples/minidrone_events.go rename to examples/minidrone_events.go diff --git a/v2/examples/minidrone_mambo_ps3.go b/examples/minidrone_mambo_ps3.go similarity index 100% rename from v2/examples/minidrone_mambo_ps3.go rename to examples/minidrone_mambo_ps3.go diff --git a/v2/examples/minidrone_ps3.go b/examples/minidrone_ps3.go similarity index 100% rename from v2/examples/minidrone_ps3.go rename to examples/minidrone_ps3.go diff --git a/v2/examples/mqtt_driver_ping.go b/examples/mqtt_driver_ping.go similarity index 100% rename from v2/examples/mqtt_driver_ping.go rename to examples/mqtt_driver_ping.go diff --git a/v2/examples/mqtt_firmata_blink.go b/examples/mqtt_firmata_blink.go similarity index 100% rename from v2/examples/mqtt_firmata_blink.go rename to examples/mqtt_firmata_blink.go diff --git a/v2/examples/mqtt_ping.go b/examples/mqtt_ping.go similarity index 100% rename from v2/examples/mqtt_ping.go rename to examples/mqtt_ping.go diff --git a/v2/examples/nanopi_direct_pin.go b/examples/nanopi_direct_pin.go similarity index 100% rename from v2/examples/nanopi_direct_pin.go rename to examples/nanopi_direct_pin.go diff --git a/v2/examples/nanopi_direct_pin_event.go b/examples/nanopi_direct_pin_event.go similarity index 100% rename from v2/examples/nanopi_direct_pin_event.go rename to examples/nanopi_direct_pin_event.go diff --git a/v2/examples/nanopi_led_brightness.go b/examples/nanopi_led_brightness.go similarity index 100% rename from v2/examples/nanopi_led_brightness.go rename to examples/nanopi_led_brightness.go diff --git a/v2/examples/nanopi_pca9533.go b/examples/nanopi_pca9533.go similarity index 100% rename from v2/examples/nanopi_pca9533.go rename to examples/nanopi_pca9533.go diff --git a/v2/examples/nats.go b/examples/nats.go similarity index 100% rename from v2/examples/nats.go rename to examples/nats.go diff --git a/v2/examples/nats_driver_ping.go b/examples/nats_driver_ping.go similarity index 100% rename from v2/examples/nats_driver_ping.go rename to examples/nats_driver_ping.go diff --git a/v2/examples/neurosky.go b/examples/neurosky.go similarity index 100% rename from v2/examples/neurosky.go rename to examples/neurosky.go diff --git a/v2/examples/ollie.go b/examples/ollie.go similarity index 100% rename from v2/examples/ollie.go rename to examples/ollie.go diff --git a/v2/examples/ollie_boost.go b/examples/ollie_boost.go similarity index 100% rename from v2/examples/ollie_boost.go rename to examples/ollie_boost.go diff --git a/v2/examples/ollie_crazy.go b/examples/ollie_crazy.go similarity index 100% rename from v2/examples/ollie_crazy.go rename to examples/ollie_crazy.go diff --git a/v2/examples/ollie_mqtt.go b/examples/ollie_mqtt.go similarity index 100% rename from v2/examples/ollie_mqtt.go rename to examples/ollie_mqtt.go diff --git a/v2/examples/ollie_multiple.go b/examples/ollie_multiple.go similarity index 100% rename from v2/examples/ollie_multiple.go rename to examples/ollie_multiple.go diff --git a/v2/examples/ollie_roll.go b/examples/ollie_roll.go similarity index 100% rename from v2/examples/ollie_roll.go rename to examples/ollie_roll.go diff --git a/v2/examples/ollie_spin.go b/examples/ollie_spin.go similarity index 100% rename from v2/examples/ollie_spin.go rename to examples/ollie_spin.go diff --git a/v2/examples/opencv_face_detect.go b/examples/opencv_face_detect.go similarity index 100% rename from v2/examples/opencv_face_detect.go rename to examples/opencv_face_detect.go diff --git a/v2/examples/opencv_window.go b/examples/opencv_window.go similarity index 100% rename from v2/examples/opencv_window.go rename to examples/opencv_window.go diff --git a/v2/examples/particle_api.go b/examples/particle_api.go similarity index 100% rename from v2/examples/particle_api.go rename to examples/particle_api.go diff --git a/v2/examples/particle_blink.go b/examples/particle_blink.go similarity index 100% rename from v2/examples/particle_blink.go rename to examples/particle_blink.go diff --git a/v2/examples/particle_button.go b/examples/particle_button.go similarity index 100% rename from v2/examples/particle_button.go rename to examples/particle_button.go diff --git a/v2/examples/particle_events.go b/examples/particle_events.go similarity index 100% rename from v2/examples/particle_events.go rename to examples/particle_events.go diff --git a/v2/examples/particle_function.go b/examples/particle_function.go similarity index 100% rename from v2/examples/particle_function.go rename to examples/particle_function.go diff --git a/v2/examples/particle_led_brightness.go b/examples/particle_led_brightness.go similarity index 100% rename from v2/examples/particle_led_brightness.go rename to examples/particle_led_brightness.go diff --git a/v2/examples/particle_variable.go b/examples/particle_variable.go similarity index 100% rename from v2/examples/particle_variable.go rename to examples/particle_variable.go diff --git a/v2/examples/pebble.go b/examples/pebble.go similarity index 100% rename from v2/examples/pebble.go rename to examples/pebble.go diff --git a/v2/examples/pebble_accelerometer.go b/examples/pebble_accelerometer.go similarity index 100% rename from v2/examples/pebble_accelerometer.go rename to examples/pebble_accelerometer.go diff --git a/v2/examples/raspi_adafruit_dcmotor.go b/examples/raspi_adafruit_dcmotor.go similarity index 100% rename from v2/examples/raspi_adafruit_dcmotor.go rename to examples/raspi_adafruit_dcmotor.go diff --git a/v2/examples/raspi_adafruit_servo.go b/examples/raspi_adafruit_servo.go similarity index 100% rename from v2/examples/raspi_adafruit_servo.go rename to examples/raspi_adafruit_servo.go diff --git a/v2/examples/raspi_adafruit_stepper.go b/examples/raspi_adafruit_stepper.go similarity index 100% rename from v2/examples/raspi_adafruit_stepper.go rename to examples/raspi_adafruit_stepper.go diff --git a/v2/examples/raspi_ads1015.go b/examples/raspi_ads1015.go similarity index 100% rename from v2/examples/raspi_ads1015.go rename to examples/raspi_ads1015.go diff --git a/v2/examples/raspi_blink.go b/examples/raspi_blink.go similarity index 100% rename from v2/examples/raspi_blink.go rename to examples/raspi_blink.go diff --git a/v2/examples/raspi_blinkm.go b/examples/raspi_blinkm.go similarity index 100% rename from v2/examples/raspi_blinkm.go rename to examples/raspi_blinkm.go diff --git a/v2/examples/raspi_button.go b/examples/raspi_button.go similarity index 100% rename from v2/examples/raspi_button.go rename to examples/raspi_button.go diff --git a/v2/examples/raspi_ccs811.go b/examples/raspi_ccs811.go similarity index 100% rename from v2/examples/raspi_ccs811.go rename to examples/raspi_ccs811.go diff --git a/v2/examples/raspi_direct_pin.go b/examples/raspi_direct_pin.go similarity index 100% rename from v2/examples/raspi_direct_pin.go rename to examples/raspi_direct_pin.go diff --git a/v2/examples/raspi_direct_pin_event.go b/examples/raspi_direct_pin_event.go similarity index 100% rename from v2/examples/raspi_direct_pin_event.go rename to examples/raspi_direct_pin_event.go diff --git a/v2/examples/raspi_generic.go b/examples/raspi_generic.go similarity index 100% rename from v2/examples/raspi_generic.go rename to examples/raspi_generic.go diff --git a/v2/examples/raspi_grove_pi_blink.go b/examples/raspi_grove_pi_blink.go similarity index 100% rename from v2/examples/raspi_grove_pi_blink.go rename to examples/raspi_grove_pi_blink.go diff --git a/v2/examples/raspi_grove_pi_button.go b/examples/raspi_grove_pi_button.go similarity index 100% rename from v2/examples/raspi_grove_pi_button.go rename to examples/raspi_grove_pi_button.go diff --git a/v2/examples/raspi_grove_pi_dht.go b/examples/raspi_grove_pi_dht.go similarity index 100% rename from v2/examples/raspi_grove_pi_dht.go rename to examples/raspi_grove_pi_dht.go diff --git a/v2/examples/raspi_grove_pi_rotary.go b/examples/raspi_grove_pi_rotary.go similarity index 100% rename from v2/examples/raspi_grove_pi_rotary.go rename to examples/raspi_grove_pi_rotary.go diff --git a/v2/examples/raspi_grove_pi_ultrasonic.go b/examples/raspi_grove_pi_ultrasonic.go similarity index 100% rename from v2/examples/raspi_grove_pi_ultrasonic.go rename to examples/raspi_grove_pi_ultrasonic.go diff --git a/v2/examples/raspi_grove_rotary_sensor.go b/examples/raspi_grove_rotary_sensor.go similarity index 100% rename from v2/examples/raspi_grove_rotary_sensor.go rename to examples/raspi_grove_rotary_sensor.go diff --git a/v2/examples/raspi_hmc5883l.go b/examples/raspi_hmc5883l.go similarity index 100% rename from v2/examples/raspi_hmc5883l.go rename to examples/raspi_hmc5883l.go diff --git a/v2/examples/raspi_ina3221.go b/examples/raspi_ina3221.go similarity index 100% rename from v2/examples/raspi_ina3221.go rename to examples/raspi_ina3221.go diff --git a/v2/examples/raspi_led_brightness.go b/examples/raspi_led_brightness.go similarity index 100% rename from v2/examples/raspi_led_brightness.go rename to examples/raspi_led_brightness.go diff --git a/v2/examples/raspi_mcp3008.go b/examples/raspi_mcp3008.go similarity index 100% rename from v2/examples/raspi_mcp3008.go rename to examples/raspi_mcp3008.go diff --git a/v2/examples/raspi_pca9533.go b/examples/raspi_pca9533.go similarity index 100% rename from v2/examples/raspi_pca9533.go rename to examples/raspi_pca9533.go diff --git a/v2/examples/raspi_sht2x.go b/examples/raspi_sht2x.go similarity index 100% rename from v2/examples/raspi_sht2x.go rename to examples/raspi_sht2x.go diff --git a/v2/examples/raspi_sht3x.go b/examples/raspi_sht3x.go similarity index 100% rename from v2/examples/raspi_sht3x.go rename to examples/raspi_sht3x.go diff --git a/v2/examples/raspi_ssd1306.go b/examples/raspi_ssd1306.go similarity index 100% rename from v2/examples/raspi_ssd1306.go rename to examples/raspi_ssd1306.go diff --git a/v2/examples/raspi_ssd1306spi.go b/examples/raspi_ssd1306spi.go similarity index 100% rename from v2/examples/raspi_ssd1306spi.go rename to examples/raspi_ssd1306spi.go diff --git a/v2/examples/raspi_stepper_move.go b/examples/raspi_stepper_move.go similarity index 100% rename from v2/examples/raspi_stepper_move.go rename to examples/raspi_stepper_move.go diff --git a/v2/examples/sphero.go b/examples/sphero.go similarity index 100% rename from v2/examples/sphero.go rename to examples/sphero.go diff --git a/v2/examples/sphero_api.go b/examples/sphero_api.go similarity index 100% rename from v2/examples/sphero_api.go rename to examples/sphero_api.go diff --git a/v2/examples/sphero_conways.go b/examples/sphero_conways.go similarity index 100% rename from v2/examples/sphero_conways.go rename to examples/sphero_conways.go diff --git a/v2/examples/sphero_dpad.go b/examples/sphero_dpad.go similarity index 100% rename from v2/examples/sphero_dpad.go rename to examples/sphero_dpad.go diff --git a/v2/examples/sphero_master.go b/examples/sphero_master.go similarity index 100% rename from v2/examples/sphero_master.go rename to examples/sphero_master.go diff --git a/v2/examples/sphero_multiple.go b/examples/sphero_multiple.go similarity index 100% rename from v2/examples/sphero_multiple.go rename to examples/sphero_multiple.go diff --git a/v2/examples/sprkplus.go b/examples/sprkplus.go similarity index 100% rename from v2/examples/sprkplus.go rename to examples/sprkplus.go diff --git a/v2/examples/sprkplus_collision.go b/examples/sprkplus_collision.go similarity index 100% rename from v2/examples/sprkplus_collision.go rename to examples/sprkplus_collision.go diff --git a/v2/examples/square.go b/examples/square.go similarity index 100% rename from v2/examples/square.go rename to examples/square.go diff --git a/v2/examples/square_fire.go b/examples/square_fire.go similarity index 100% rename from v2/examples/square_fire.go rename to examples/square_fire.go diff --git a/v2/examples/tello.go b/examples/tello.go similarity index 100% rename from v2/examples/tello.go rename to examples/tello.go diff --git a/v2/examples/tello_facetracker.go b/examples/tello_facetracker.go similarity index 100% rename from v2/examples/tello_facetracker.go rename to examples/tello_facetracker.go diff --git a/v2/examples/tello_keyboard.go b/examples/tello_keyboard.go similarity index 100% rename from v2/examples/tello_keyboard.go rename to examples/tello_keyboard.go diff --git a/v2/examples/tello_opencv.go b/examples/tello_opencv.go similarity index 100% rename from v2/examples/tello_opencv.go rename to examples/tello_opencv.go diff --git a/v2/examples/tello_ps3.go b/examples/tello_ps3.go similarity index 100% rename from v2/examples/tello_ps3.go rename to examples/tello_ps3.go diff --git a/v2/examples/tello_video.go b/examples/tello_video.go similarity index 100% rename from v2/examples/tello_video.go rename to examples/tello_video.go diff --git a/v2/examples/tinkerboard_adafruit1109_lcd_keys.go b/examples/tinkerboard_adafruit1109_lcd_keys.go similarity index 100% rename from v2/examples/tinkerboard_adafruit1109_lcd_keys.go rename to examples/tinkerboard_adafruit1109_lcd_keys.go diff --git a/v2/examples/tinkerboard_ads1115.go b/examples/tinkerboard_ads1115.go similarity index 100% rename from v2/examples/tinkerboard_ads1115.go rename to examples/tinkerboard_ads1115.go diff --git a/v2/examples/tinkerboard_adxl345.go b/examples/tinkerboard_adxl345.go similarity index 100% rename from v2/examples/tinkerboard_adxl345.go rename to examples/tinkerboard_adxl345.go diff --git a/v2/examples/tinkerboard_blink.go b/examples/tinkerboard_blink.go similarity index 100% rename from v2/examples/tinkerboard_blink.go rename to examples/tinkerboard_blink.go diff --git a/v2/examples/tinkerboard_bme280.go b/examples/tinkerboard_bme280.go similarity index 100% rename from v2/examples/tinkerboard_bme280.go rename to examples/tinkerboard_bme280.go diff --git a/v2/examples/tinkerboard_bmp280.go b/examples/tinkerboard_bmp280.go similarity index 100% rename from v2/examples/tinkerboard_bmp280.go rename to examples/tinkerboard_bmp280.go diff --git a/v2/examples/tinkerboard_direct_pin.go b/examples/tinkerboard_direct_pin.go similarity index 100% rename from v2/examples/tinkerboard_direct_pin.go rename to examples/tinkerboard_direct_pin.go diff --git a/v2/examples/tinkerboard_generic.go b/examples/tinkerboard_generic.go similarity index 100% rename from v2/examples/tinkerboard_generic.go rename to examples/tinkerboard_generic.go diff --git a/v2/examples/tinkerboard_grove_lcd.go b/examples/tinkerboard_grove_lcd.go similarity index 100% rename from v2/examples/tinkerboard_grove_lcd.go rename to examples/tinkerboard_grove_lcd.go diff --git a/v2/examples/tinkerboard_hmc5883l.go b/examples/tinkerboard_hmc5883l.go similarity index 100% rename from v2/examples/tinkerboard_hmc5883l.go rename to examples/tinkerboard_hmc5883l.go diff --git a/v2/examples/tinkerboard_mfcrc522gpio.go b/examples/tinkerboard_mfcrc522gpio.go similarity index 100% rename from v2/examples/tinkerboard_mfcrc522gpio.go rename to examples/tinkerboard_mfcrc522gpio.go diff --git a/v2/examples/tinkerboard_mfcrc522spi.go b/examples/tinkerboard_mfcrc522spi.go similarity index 100% rename from v2/examples/tinkerboard_mfcrc522spi.go rename to examples/tinkerboard_mfcrc522spi.go diff --git a/v2/examples/tinkerboard_mpl115a2.go b/examples/tinkerboard_mpl115a2.go similarity index 100% rename from v2/examples/tinkerboard_mpl115a2.go rename to examples/tinkerboard_mpl115a2.go diff --git a/v2/examples/tinkerboard_mpu6050.go b/examples/tinkerboard_mpu6050.go similarity index 100% rename from v2/examples/tinkerboard_mpu6050.go rename to examples/tinkerboard_mpu6050.go diff --git a/v2/examples/tinkerboard_pca9533.go b/examples/tinkerboard_pca9533.go similarity index 100% rename from v2/examples/tinkerboard_pca9533.go rename to examples/tinkerboard_pca9533.go diff --git a/v2/examples/tinkerboard_pcf8583_clock.go b/examples/tinkerboard_pcf8583_clock.go similarity index 100% rename from v2/examples/tinkerboard_pcf8583_clock.go rename to examples/tinkerboard_pcf8583_clock.go diff --git a/v2/examples/tinkerboard_pcf8583_counter.go b/examples/tinkerboard_pcf8583_counter.go similarity index 100% rename from v2/examples/tinkerboard_pcf8583_counter.go rename to examples/tinkerboard_pcf8583_counter.go diff --git a/v2/examples/tinkerboard_pcf8591.go b/examples/tinkerboard_pcf8591.go similarity index 100% rename from v2/examples/tinkerboard_pcf8591.go rename to examples/tinkerboard_pcf8591.go diff --git a/v2/examples/tinkerboard_yl40.go b/examples/tinkerboard_yl40.go similarity index 100% rename from v2/examples/tinkerboard_yl40.go rename to examples/tinkerboard_yl40.go diff --git a/v2/examples/up2_lcd.go b/examples/up2_lcd.go similarity index 100% rename from v2/examples/up2_lcd.go rename to examples/up2_lcd.go diff --git a/v2/examples/up2_leds.go b/examples/up2_leds.go similarity index 100% rename from v2/examples/up2_leds.go rename to examples/up2_leds.go diff --git a/v2/examples/wifi_firmata_analog_input.go b/examples/wifi_firmata_analog_input.go similarity index 100% rename from v2/examples/wifi_firmata_analog_input.go rename to examples/wifi_firmata_analog_input.go diff --git a/v2/examples/wifi_firmata_blink.go b/examples/wifi_firmata_blink.go similarity index 100% rename from v2/examples/wifi_firmata_blink.go rename to examples/wifi_firmata_blink.go diff --git a/v2/examples_test.go b/examples_test.go similarity index 100% rename from v2/examples_test.go rename to examples_test.go diff --git a/v2/go.mod b/go.mod similarity index 100% rename from v2/go.mod rename to go.mod diff --git a/v2/go.sum b/go.sum similarity index 100% rename from v2/go.sum rename to go.sum diff --git a/go.work b/go.work deleted file mode 100644 index 01271d001..000000000 --- a/go.work +++ /dev/null @@ -1,5 +0,0 @@ -go 1.17 - -// this helps go tools and golangci-lint to find the subfolder -// it is working since Go 1.18 is installed -use ./v2 diff --git a/v2/gobottest/gobottest.go b/gobottest/gobottest.go similarity index 100% rename from v2/gobottest/gobottest.go rename to gobottest/gobottest.go diff --git a/v2/gobottest/gobottest_test.go b/gobottest/gobottest_test.go similarity index 100% rename from v2/gobottest/gobottest_test.go rename to gobottest/gobottest_test.go diff --git a/v2/helpers_test.go b/helpers_test.go similarity index 100% rename from v2/helpers_test.go rename to helpers_test.go diff --git a/v2/master.go b/master.go similarity index 100% rename from v2/master.go rename to master.go diff --git a/v2/master_test.go b/master_test.go similarity index 100% rename from v2/master_test.go rename to master_test.go diff --git a/v2/platforms/adaptors/digitalpinsadaptor.go b/platforms/adaptors/digitalpinsadaptor.go similarity index 100% rename from v2/platforms/adaptors/digitalpinsadaptor.go rename to platforms/adaptors/digitalpinsadaptor.go diff --git a/v2/platforms/adaptors/digitalpinsadaptor_test.go b/platforms/adaptors/digitalpinsadaptor_test.go similarity index 100% rename from v2/platforms/adaptors/digitalpinsadaptor_test.go rename to platforms/adaptors/digitalpinsadaptor_test.go diff --git a/v2/platforms/adaptors/i2cbusadaptor.go b/platforms/adaptors/i2cbusadaptor.go similarity index 100% rename from v2/platforms/adaptors/i2cbusadaptor.go rename to platforms/adaptors/i2cbusadaptor.go diff --git a/v2/platforms/adaptors/i2cbusadaptor_test.go b/platforms/adaptors/i2cbusadaptor_test.go similarity index 100% rename from v2/platforms/adaptors/i2cbusadaptor_test.go rename to platforms/adaptors/i2cbusadaptor_test.go diff --git a/v2/platforms/adaptors/options.go b/platforms/adaptors/options.go similarity index 100% rename from v2/platforms/adaptors/options.go rename to platforms/adaptors/options.go diff --git a/v2/platforms/adaptors/pwmpinsadaptor.go b/platforms/adaptors/pwmpinsadaptor.go similarity index 100% rename from v2/platforms/adaptors/pwmpinsadaptor.go rename to platforms/adaptors/pwmpinsadaptor.go diff --git a/v2/platforms/adaptors/pwmpinsadaptor_test.go b/platforms/adaptors/pwmpinsadaptor_test.go similarity index 100% rename from v2/platforms/adaptors/pwmpinsadaptor_test.go rename to platforms/adaptors/pwmpinsadaptor_test.go diff --git a/v2/platforms/adaptors/spibusadaptor.go b/platforms/adaptors/spibusadaptor.go similarity index 100% rename from v2/platforms/adaptors/spibusadaptor.go rename to platforms/adaptors/spibusadaptor.go diff --git a/v2/platforms/adaptors/spibusadaptor_test.go b/platforms/adaptors/spibusadaptor_test.go similarity index 100% rename from v2/platforms/adaptors/spibusadaptor_test.go rename to platforms/adaptors/spibusadaptor_test.go diff --git a/v2/platforms/audio/LICENSE b/platforms/audio/LICENSE similarity index 100% rename from v2/platforms/audio/LICENSE rename to platforms/audio/LICENSE diff --git a/v2/platforms/audio/audio_adaptor.go b/platforms/audio/audio_adaptor.go similarity index 100% rename from v2/platforms/audio/audio_adaptor.go rename to platforms/audio/audio_adaptor.go diff --git a/v2/platforms/audio/audio_adaptor_test.go b/platforms/audio/audio_adaptor_test.go similarity index 100% rename from v2/platforms/audio/audio_adaptor_test.go rename to platforms/audio/audio_adaptor_test.go diff --git a/v2/platforms/audio/audio_driver.go b/platforms/audio/audio_driver.go similarity index 100% rename from v2/platforms/audio/audio_driver.go rename to platforms/audio/audio_driver.go diff --git a/v2/platforms/audio/audio_driver_test.go b/platforms/audio/audio_driver_test.go similarity index 100% rename from v2/platforms/audio/audio_driver_test.go rename to platforms/audio/audio_driver_test.go diff --git a/v2/platforms/audio/doc.go b/platforms/audio/doc.go similarity index 100% rename from v2/platforms/audio/doc.go rename to platforms/audio/doc.go diff --git a/v2/platforms/beaglebone/LICENSE b/platforms/beaglebone/LICENSE similarity index 100% rename from v2/platforms/beaglebone/LICENSE rename to platforms/beaglebone/LICENSE diff --git a/v2/platforms/beaglebone/README.md b/platforms/beaglebone/README.md similarity index 100% rename from v2/platforms/beaglebone/README.md rename to platforms/beaglebone/README.md diff --git a/v2/platforms/beaglebone/beaglebone_adaptor.go b/platforms/beaglebone/beaglebone_adaptor.go similarity index 100% rename from v2/platforms/beaglebone/beaglebone_adaptor.go rename to platforms/beaglebone/beaglebone_adaptor.go diff --git a/v2/platforms/beaglebone/beaglebone_adaptor_test.go b/platforms/beaglebone/beaglebone_adaptor_test.go similarity index 100% rename from v2/platforms/beaglebone/beaglebone_adaptor_test.go rename to platforms/beaglebone/beaglebone_adaptor_test.go diff --git a/v2/platforms/beaglebone/black_pins.go b/platforms/beaglebone/black_pins.go similarity index 100% rename from v2/platforms/beaglebone/black_pins.go rename to platforms/beaglebone/black_pins.go diff --git a/v2/platforms/beaglebone/doc.go b/platforms/beaglebone/doc.go similarity index 100% rename from v2/platforms/beaglebone/doc.go rename to platforms/beaglebone/doc.go diff --git a/v2/platforms/beaglebone/pocketbeagle_adaptor.go b/platforms/beaglebone/pocketbeagle_adaptor.go similarity index 100% rename from v2/platforms/beaglebone/pocketbeagle_adaptor.go rename to platforms/beaglebone/pocketbeagle_adaptor.go diff --git a/v2/platforms/beaglebone/pocketbeagle_pins.go b/platforms/beaglebone/pocketbeagle_pins.go similarity index 100% rename from v2/platforms/beaglebone/pocketbeagle_pins.go rename to platforms/beaglebone/pocketbeagle_pins.go diff --git a/v2/platforms/ble/LICENSE b/platforms/ble/LICENSE similarity index 100% rename from v2/platforms/ble/LICENSE rename to platforms/ble/LICENSE diff --git a/v2/platforms/ble/README.md b/platforms/ble/README.md similarity index 100% rename from v2/platforms/ble/README.md rename to platforms/ble/README.md diff --git a/v2/platforms/ble/battery_driver.go b/platforms/ble/battery_driver.go similarity index 100% rename from v2/platforms/ble/battery_driver.go rename to platforms/ble/battery_driver.go diff --git a/v2/platforms/ble/battery_driver_test.go b/platforms/ble/battery_driver_test.go similarity index 100% rename from v2/platforms/ble/battery_driver_test.go rename to platforms/ble/battery_driver_test.go diff --git a/v2/platforms/ble/ble_client_adaptor.go b/platforms/ble/ble_client_adaptor.go similarity index 100% rename from v2/platforms/ble/ble_client_adaptor.go rename to platforms/ble/ble_client_adaptor.go diff --git a/v2/platforms/ble/ble_client_adaptor_test.go b/platforms/ble/ble_client_adaptor_test.go similarity index 100% rename from v2/platforms/ble/ble_client_adaptor_test.go rename to platforms/ble/ble_client_adaptor_test.go diff --git a/v2/platforms/ble/device_information_driver.go b/platforms/ble/device_information_driver.go similarity index 100% rename from v2/platforms/ble/device_information_driver.go rename to platforms/ble/device_information_driver.go diff --git a/v2/platforms/ble/device_information_driver_test.go b/platforms/ble/device_information_driver_test.go similarity index 100% rename from v2/platforms/ble/device_information_driver_test.go rename to platforms/ble/device_information_driver_test.go diff --git a/v2/platforms/ble/doc.go b/platforms/ble/doc.go similarity index 100% rename from v2/platforms/ble/doc.go rename to platforms/ble/doc.go diff --git a/v2/platforms/ble/generic_access_driver.go b/platforms/ble/generic_access_driver.go similarity index 100% rename from v2/platforms/ble/generic_access_driver.go rename to platforms/ble/generic_access_driver.go diff --git a/v2/platforms/ble/generic_access_driver_test.go b/platforms/ble/generic_access_driver_test.go similarity index 100% rename from v2/platforms/ble/generic_access_driver_test.go rename to platforms/ble/generic_access_driver_test.go diff --git a/v2/platforms/ble/helpers_test.go b/platforms/ble/helpers_test.go similarity index 100% rename from v2/platforms/ble/helpers_test.go rename to platforms/ble/helpers_test.go diff --git a/v2/platforms/ble/serial_port.go b/platforms/ble/serial_port.go similarity index 100% rename from v2/platforms/ble/serial_port.go rename to platforms/ble/serial_port.go diff --git a/v2/platforms/ble/serial_port_test.go b/platforms/ble/serial_port_test.go similarity index 100% rename from v2/platforms/ble/serial_port_test.go rename to platforms/ble/serial_port_test.go diff --git a/v2/platforms/ble/uuid.go b/platforms/ble/uuid.go similarity index 100% rename from v2/platforms/ble/uuid.go rename to platforms/ble/uuid.go diff --git a/v2/platforms/chip/LICENSE b/platforms/chip/LICENSE similarity index 100% rename from v2/platforms/chip/LICENSE rename to platforms/chip/LICENSE diff --git a/v2/platforms/chip/README.md b/platforms/chip/README.md similarity index 100% rename from v2/platforms/chip/README.md rename to platforms/chip/README.md diff --git a/v2/platforms/chip/chip_adaptor.go b/platforms/chip/chip_adaptor.go similarity index 100% rename from v2/platforms/chip/chip_adaptor.go rename to platforms/chip/chip_adaptor.go diff --git a/v2/platforms/chip/chip_adaptor_test.go b/platforms/chip/chip_adaptor_test.go similarity index 100% rename from v2/platforms/chip/chip_adaptor_test.go rename to platforms/chip/chip_adaptor_test.go diff --git a/v2/platforms/chip/chip_pinmap.go b/platforms/chip/chip_pinmap.go similarity index 100% rename from v2/platforms/chip/chip_pinmap.go rename to platforms/chip/chip_pinmap.go diff --git a/v2/platforms/chip/chippro_pinmap.go b/platforms/chip/chippro_pinmap.go similarity index 100% rename from v2/platforms/chip/chippro_pinmap.go rename to platforms/chip/chippro_pinmap.go diff --git a/v2/platforms/chip/doc.go b/platforms/chip/doc.go similarity index 100% rename from v2/platforms/chip/doc.go rename to platforms/chip/doc.go diff --git a/v2/platforms/dexter/README.md b/platforms/dexter/README.md similarity index 100% rename from v2/platforms/dexter/README.md rename to platforms/dexter/README.md diff --git a/v2/platforms/dexter/dexter.go b/platforms/dexter/dexter.go similarity index 100% rename from v2/platforms/dexter/dexter.go rename to platforms/dexter/dexter.go diff --git a/v2/platforms/dexter/gopigo3/README.md b/platforms/dexter/gopigo3/README.md similarity index 100% rename from v2/platforms/dexter/gopigo3/README.md rename to platforms/dexter/gopigo3/README.md diff --git a/v2/platforms/dexter/gopigo3/driver.go b/platforms/dexter/gopigo3/driver.go similarity index 100% rename from v2/platforms/dexter/gopigo3/driver.go rename to platforms/dexter/gopigo3/driver.go diff --git a/v2/platforms/dexter/gopigo3/driver_test.go b/platforms/dexter/gopigo3/driver_test.go similarity index 100% rename from v2/platforms/dexter/gopigo3/driver_test.go rename to platforms/dexter/gopigo3/driver_test.go diff --git a/v2/platforms/digispark/LICENSE b/platforms/digispark/LICENSE similarity index 100% rename from v2/platforms/digispark/LICENSE rename to platforms/digispark/LICENSE diff --git a/v2/platforms/digispark/README.md b/platforms/digispark/README.md similarity index 100% rename from v2/platforms/digispark/README.md rename to platforms/digispark/README.md diff --git a/v2/platforms/digispark/digispark_adaptor.go b/platforms/digispark/digispark_adaptor.go similarity index 100% rename from v2/platforms/digispark/digispark_adaptor.go rename to platforms/digispark/digispark_adaptor.go diff --git a/v2/platforms/digispark/digispark_adaptor_test.go b/platforms/digispark/digispark_adaptor_test.go similarity index 100% rename from v2/platforms/digispark/digispark_adaptor_test.go rename to platforms/digispark/digispark_adaptor_test.go diff --git a/v2/platforms/digispark/digispark_i2c.go b/platforms/digispark/digispark_i2c.go similarity index 100% rename from v2/platforms/digispark/digispark_i2c.go rename to platforms/digispark/digispark_i2c.go diff --git a/v2/platforms/digispark/digispark_i2c_test.go b/platforms/digispark/digispark_i2c_test.go similarity index 100% rename from v2/platforms/digispark/digispark_i2c_test.go rename to platforms/digispark/digispark_i2c_test.go diff --git a/v2/platforms/digispark/doc.go b/platforms/digispark/doc.go similarity index 100% rename from v2/platforms/digispark/doc.go rename to platforms/digispark/doc.go diff --git a/v2/platforms/digispark/littleWire.c b/platforms/digispark/littleWire.c similarity index 100% rename from v2/platforms/digispark/littleWire.c rename to platforms/digispark/littleWire.c diff --git a/v2/platforms/digispark/littleWire.go b/platforms/digispark/littleWire.go similarity index 100% rename from v2/platforms/digispark/littleWire.go rename to platforms/digispark/littleWire.go diff --git a/v2/platforms/digispark/littleWire.h b/platforms/digispark/littleWire.h similarity index 100% rename from v2/platforms/digispark/littleWire.h rename to platforms/digispark/littleWire.h diff --git a/v2/platforms/digispark/littleWire_servo.c b/platforms/digispark/littleWire_servo.c similarity index 100% rename from v2/platforms/digispark/littleWire_servo.c rename to platforms/digispark/littleWire_servo.c diff --git a/v2/platforms/digispark/littleWire_servo.h b/platforms/digispark/littleWire_servo.h similarity index 100% rename from v2/platforms/digispark/littleWire_servo.h rename to platforms/digispark/littleWire_servo.h diff --git a/v2/platforms/digispark/littleWire_util.c b/platforms/digispark/littleWire_util.c similarity index 100% rename from v2/platforms/digispark/littleWire_util.c rename to platforms/digispark/littleWire_util.c diff --git a/v2/platforms/digispark/littleWire_util.h b/platforms/digispark/littleWire_util.h similarity index 100% rename from v2/platforms/digispark/littleWire_util.h rename to platforms/digispark/littleWire_util.h diff --git a/v2/platforms/digispark/opendevice.c b/platforms/digispark/opendevice.c similarity index 100% rename from v2/platforms/digispark/opendevice.c rename to platforms/digispark/opendevice.c diff --git a/v2/platforms/digispark/opendevice.h b/platforms/digispark/opendevice.h similarity index 100% rename from v2/platforms/digispark/opendevice.h rename to platforms/digispark/opendevice.h diff --git a/v2/platforms/dji/README.md b/platforms/dji/README.md similarity index 100% rename from v2/platforms/dji/README.md rename to platforms/dji/README.md diff --git a/v2/platforms/dji/dji.go b/platforms/dji/dji.go similarity index 100% rename from v2/platforms/dji/dji.go rename to platforms/dji/dji.go diff --git a/v2/platforms/dji/tello/README.md b/platforms/dji/tello/README.md similarity index 100% rename from v2/platforms/dji/tello/README.md rename to platforms/dji/tello/README.md diff --git a/v2/platforms/dji/tello/crc.go b/platforms/dji/tello/crc.go similarity index 100% rename from v2/platforms/dji/tello/crc.go rename to platforms/dji/tello/crc.go diff --git a/v2/platforms/dji/tello/driver.go b/platforms/dji/tello/driver.go similarity index 100% rename from v2/platforms/dji/tello/driver.go rename to platforms/dji/tello/driver.go diff --git a/v2/platforms/dji/tello/driver_test.go b/platforms/dji/tello/driver_test.go similarity index 100% rename from v2/platforms/dji/tello/driver_test.go rename to platforms/dji/tello/driver_test.go diff --git a/v2/platforms/dji/tello/pitch.go b/platforms/dji/tello/pitch.go similarity index 100% rename from v2/platforms/dji/tello/pitch.go rename to platforms/dji/tello/pitch.go diff --git a/v2/platforms/dji/tello/pitch_test.go b/platforms/dji/tello/pitch_test.go similarity index 100% rename from v2/platforms/dji/tello/pitch_test.go rename to platforms/dji/tello/pitch_test.go diff --git a/v2/platforms/dragonboard/LICENSE b/platforms/dragonboard/LICENSE similarity index 100% rename from v2/platforms/dragonboard/LICENSE rename to platforms/dragonboard/LICENSE diff --git a/v2/platforms/dragonboard/README.md b/platforms/dragonboard/README.md similarity index 100% rename from v2/platforms/dragonboard/README.md rename to platforms/dragonboard/README.md diff --git a/v2/platforms/dragonboard/doc.go b/platforms/dragonboard/doc.go similarity index 100% rename from v2/platforms/dragonboard/doc.go rename to platforms/dragonboard/doc.go diff --git a/v2/platforms/dragonboard/dragonboard_adaptor.go b/platforms/dragonboard/dragonboard_adaptor.go similarity index 100% rename from v2/platforms/dragonboard/dragonboard_adaptor.go rename to platforms/dragonboard/dragonboard_adaptor.go diff --git a/v2/platforms/dragonboard/dragonboard_adaptor_test.go b/platforms/dragonboard/dragonboard_adaptor_test.go similarity index 100% rename from v2/platforms/dragonboard/dragonboard_adaptor_test.go rename to platforms/dragonboard/dragonboard_adaptor_test.go diff --git a/v2/platforms/firmata/LICENSE b/platforms/firmata/LICENSE similarity index 100% rename from v2/platforms/firmata/LICENSE rename to platforms/firmata/LICENSE diff --git a/v2/platforms/firmata/README.md b/platforms/firmata/README.md similarity index 100% rename from v2/platforms/firmata/README.md rename to platforms/firmata/README.md diff --git a/v2/platforms/firmata/ble_firmata_adaptor.go b/platforms/firmata/ble_firmata_adaptor.go similarity index 100% rename from v2/platforms/firmata/ble_firmata_adaptor.go rename to platforms/firmata/ble_firmata_adaptor.go diff --git a/v2/platforms/firmata/ble_firmata_adaptor_test.go b/platforms/firmata/ble_firmata_adaptor_test.go similarity index 100% rename from v2/platforms/firmata/ble_firmata_adaptor_test.go rename to platforms/firmata/ble_firmata_adaptor_test.go diff --git a/v2/platforms/firmata/client/client.go b/platforms/firmata/client/client.go similarity index 100% rename from v2/platforms/firmata/client/client.go rename to platforms/firmata/client/client.go diff --git a/v2/platforms/firmata/client/client_test.go b/platforms/firmata/client/client_test.go similarity index 100% rename from v2/platforms/firmata/client/client_test.go rename to platforms/firmata/client/client_test.go diff --git a/v2/platforms/firmata/client/examples/blink.go b/platforms/firmata/client/examples/blink.go similarity index 100% rename from v2/platforms/firmata/client/examples/blink.go rename to platforms/firmata/client/examples/blink.go diff --git a/v2/platforms/firmata/doc.go b/platforms/firmata/doc.go similarity index 100% rename from v2/platforms/firmata/doc.go rename to platforms/firmata/doc.go diff --git a/v2/platforms/firmata/firmata_adaptor.go b/platforms/firmata/firmata_adaptor.go similarity index 100% rename from v2/platforms/firmata/firmata_adaptor.go rename to platforms/firmata/firmata_adaptor.go diff --git a/v2/platforms/firmata/firmata_adaptor_test.go b/platforms/firmata/firmata_adaptor_test.go similarity index 100% rename from v2/platforms/firmata/firmata_adaptor_test.go rename to platforms/firmata/firmata_adaptor_test.go diff --git a/v2/platforms/firmata/firmata_i2c.go b/platforms/firmata/firmata_i2c.go similarity index 100% rename from v2/platforms/firmata/firmata_i2c.go rename to platforms/firmata/firmata_i2c.go diff --git a/v2/platforms/firmata/firmata_i2c_test.go b/platforms/firmata/firmata_i2c_test.go similarity index 100% rename from v2/platforms/firmata/firmata_i2c_test.go rename to platforms/firmata/firmata_i2c_test.go diff --git a/v2/platforms/firmata/tcp_firmata_adaptor.go b/platforms/firmata/tcp_firmata_adaptor.go similarity index 100% rename from v2/platforms/firmata/tcp_firmata_adaptor.go rename to platforms/firmata/tcp_firmata_adaptor.go diff --git a/v2/platforms/firmata/tcp_firmata_adaptor_test.go b/platforms/firmata/tcp_firmata_adaptor_test.go similarity index 100% rename from v2/platforms/firmata/tcp_firmata_adaptor_test.go rename to platforms/firmata/tcp_firmata_adaptor_test.go diff --git a/v2/platforms/holystone/README.md b/platforms/holystone/README.md similarity index 100% rename from v2/platforms/holystone/README.md rename to platforms/holystone/README.md diff --git a/v2/platforms/holystone/holystone.go b/platforms/holystone/holystone.go similarity index 100% rename from v2/platforms/holystone/holystone.go rename to platforms/holystone/holystone.go diff --git a/v2/platforms/holystone/hs200/README.md b/platforms/holystone/hs200/README.md similarity index 100% rename from v2/platforms/holystone/hs200/README.md rename to platforms/holystone/hs200/README.md diff --git a/v2/platforms/holystone/hs200/doc.go b/platforms/holystone/hs200/doc.go similarity index 100% rename from v2/platforms/holystone/hs200/doc.go rename to platforms/holystone/hs200/doc.go diff --git a/v2/platforms/holystone/hs200/hs200_driver.go b/platforms/holystone/hs200/hs200_driver.go similarity index 100% rename from v2/platforms/holystone/hs200/hs200_driver.go rename to platforms/holystone/hs200/hs200_driver.go diff --git a/v2/platforms/holystone/hs200/hs200_driver_test.go b/platforms/holystone/hs200/hs200_driver_test.go similarity index 100% rename from v2/platforms/holystone/hs200/hs200_driver_test.go rename to platforms/holystone/hs200/hs200_driver_test.go diff --git a/v2/platforms/intel-iot/LICENSE b/platforms/intel-iot/LICENSE similarity index 100% rename from v2/platforms/intel-iot/LICENSE rename to platforms/intel-iot/LICENSE diff --git a/v2/platforms/intel-iot/README.md b/platforms/intel-iot/README.md similarity index 100% rename from v2/platforms/intel-iot/README.md rename to platforms/intel-iot/README.md diff --git a/v2/platforms/intel-iot/curie/README.md b/platforms/intel-iot/curie/README.md similarity index 100% rename from v2/platforms/intel-iot/curie/README.md rename to platforms/intel-iot/curie/README.md diff --git a/v2/platforms/intel-iot/curie/doc.go b/platforms/intel-iot/curie/doc.go similarity index 100% rename from v2/platforms/intel-iot/curie/doc.go rename to platforms/intel-iot/curie/doc.go diff --git a/v2/platforms/intel-iot/curie/imu_driver.go b/platforms/intel-iot/curie/imu_driver.go similarity index 100% rename from v2/platforms/intel-iot/curie/imu_driver.go rename to platforms/intel-iot/curie/imu_driver.go diff --git a/v2/platforms/intel-iot/curie/imu_driver_test.go b/platforms/intel-iot/curie/imu_driver_test.go similarity index 100% rename from v2/platforms/intel-iot/curie/imu_driver_test.go rename to platforms/intel-iot/curie/imu_driver_test.go diff --git a/v2/platforms/intel-iot/edison/README.md b/platforms/intel-iot/edison/README.md similarity index 100% rename from v2/platforms/intel-iot/edison/README.md rename to platforms/intel-iot/edison/README.md diff --git a/v2/platforms/intel-iot/edison/arduino_pinmap.go b/platforms/intel-iot/edison/arduino_pinmap.go similarity index 100% rename from v2/platforms/intel-iot/edison/arduino_pinmap.go rename to platforms/intel-iot/edison/arduino_pinmap.go diff --git a/v2/platforms/intel-iot/edison/doc.go b/platforms/intel-iot/edison/doc.go similarity index 100% rename from v2/platforms/intel-iot/edison/doc.go rename to platforms/intel-iot/edison/doc.go diff --git a/v2/platforms/intel-iot/edison/edison_adaptor.go b/platforms/intel-iot/edison/edison_adaptor.go similarity index 100% rename from v2/platforms/intel-iot/edison/edison_adaptor.go rename to platforms/intel-iot/edison/edison_adaptor.go diff --git a/v2/platforms/intel-iot/edison/edison_adaptor_test.go b/platforms/intel-iot/edison/edison_adaptor_test.go similarity index 100% rename from v2/platforms/intel-iot/edison/edison_adaptor_test.go rename to platforms/intel-iot/edison/edison_adaptor_test.go diff --git a/v2/platforms/intel-iot/edison/miniboard_pinmap.go b/platforms/intel-iot/edison/miniboard_pinmap.go similarity index 100% rename from v2/platforms/intel-iot/edison/miniboard_pinmap.go rename to platforms/intel-iot/edison/miniboard_pinmap.go diff --git a/v2/platforms/intel-iot/edison/sparkfun_pinmap.go b/platforms/intel-iot/edison/sparkfun_pinmap.go similarity index 100% rename from v2/platforms/intel-iot/edison/sparkfun_pinmap.go rename to platforms/intel-iot/edison/sparkfun_pinmap.go diff --git a/v2/platforms/intel-iot/intel-iot.go b/platforms/intel-iot/intel-iot.go similarity index 100% rename from v2/platforms/intel-iot/intel-iot.go rename to platforms/intel-iot/intel-iot.go diff --git a/v2/platforms/intel-iot/joule/README.md b/platforms/intel-iot/joule/README.md similarity index 100% rename from v2/platforms/intel-iot/joule/README.md rename to platforms/intel-iot/joule/README.md diff --git a/v2/platforms/intel-iot/joule/doc.go b/platforms/intel-iot/joule/doc.go similarity index 100% rename from v2/platforms/intel-iot/joule/doc.go rename to platforms/intel-iot/joule/doc.go diff --git a/v2/platforms/intel-iot/joule/joule_adaptor.go b/platforms/intel-iot/joule/joule_adaptor.go similarity index 100% rename from v2/platforms/intel-iot/joule/joule_adaptor.go rename to platforms/intel-iot/joule/joule_adaptor.go diff --git a/v2/platforms/intel-iot/joule/joule_adaptor_test.go b/platforms/intel-iot/joule/joule_adaptor_test.go similarity index 100% rename from v2/platforms/intel-iot/joule/joule_adaptor_test.go rename to platforms/intel-iot/joule/joule_adaptor_test.go diff --git a/v2/platforms/intel-iot/joule/tuchuck_pinmap.go b/platforms/intel-iot/joule/tuchuck_pinmap.go similarity index 100% rename from v2/platforms/intel-iot/joule/tuchuck_pinmap.go rename to platforms/intel-iot/joule/tuchuck_pinmap.go diff --git a/v2/platforms/jetson/README.md b/platforms/jetson/README.md similarity index 100% rename from v2/platforms/jetson/README.md rename to platforms/jetson/README.md diff --git a/v2/platforms/jetson/doc.go b/platforms/jetson/doc.go similarity index 100% rename from v2/platforms/jetson/doc.go rename to platforms/jetson/doc.go diff --git a/v2/platforms/jetson/jetson_adaptor.go b/platforms/jetson/jetson_adaptor.go similarity index 100% rename from v2/platforms/jetson/jetson_adaptor.go rename to platforms/jetson/jetson_adaptor.go diff --git a/v2/platforms/jetson/jetson_adaptor_test.go b/platforms/jetson/jetson_adaptor_test.go similarity index 100% rename from v2/platforms/jetson/jetson_adaptor_test.go rename to platforms/jetson/jetson_adaptor_test.go diff --git a/v2/platforms/jetson/jetson_pin_map.go b/platforms/jetson/jetson_pin_map.go similarity index 100% rename from v2/platforms/jetson/jetson_pin_map.go rename to platforms/jetson/jetson_pin_map.go diff --git a/v2/platforms/jetson/pwm_pin.go b/platforms/jetson/pwm_pin.go similarity index 100% rename from v2/platforms/jetson/pwm_pin.go rename to platforms/jetson/pwm_pin.go diff --git a/v2/platforms/jetson/pwm_pin_test.go b/platforms/jetson/pwm_pin_test.go similarity index 100% rename from v2/platforms/jetson/pwm_pin_test.go rename to platforms/jetson/pwm_pin_test.go diff --git a/v2/platforms/joystick/LICENSE b/platforms/joystick/LICENSE similarity index 100% rename from v2/platforms/joystick/LICENSE rename to platforms/joystick/LICENSE diff --git a/v2/platforms/joystick/README.md b/platforms/joystick/README.md similarity index 100% rename from v2/platforms/joystick/README.md rename to platforms/joystick/README.md diff --git a/v2/platforms/joystick/bin/scanner.go b/platforms/joystick/bin/scanner.go similarity index 100% rename from v2/platforms/joystick/bin/scanner.go rename to platforms/joystick/bin/scanner.go diff --git a/v2/platforms/joystick/configs/dualsense.json b/platforms/joystick/configs/dualsense.json similarity index 100% rename from v2/platforms/joystick/configs/dualsense.json rename to platforms/joystick/configs/dualsense.json diff --git a/v2/platforms/joystick/configs/dualshock3.json b/platforms/joystick/configs/dualshock3.json similarity index 100% rename from v2/platforms/joystick/configs/dualshock3.json rename to platforms/joystick/configs/dualshock3.json diff --git a/v2/platforms/joystick/configs/dualshock4.json b/platforms/joystick/configs/dualshock4.json similarity index 100% rename from v2/platforms/joystick/configs/dualshock4.json rename to platforms/joystick/configs/dualshock4.json diff --git a/v2/platforms/joystick/configs/magicseer1.json b/platforms/joystick/configs/magicseer1.json similarity index 100% rename from v2/platforms/joystick/configs/magicseer1.json rename to platforms/joystick/configs/magicseer1.json diff --git a/v2/platforms/joystick/configs/shield.json b/platforms/joystick/configs/shield.json similarity index 100% rename from v2/platforms/joystick/configs/shield.json rename to platforms/joystick/configs/shield.json diff --git a/v2/platforms/joystick/configs/xbox360_power_a_mini_proex.json b/platforms/joystick/configs/xbox360_power_a_mini_proex.json similarity index 100% rename from v2/platforms/joystick/configs/xbox360_power_a_mini_proex.json rename to platforms/joystick/configs/xbox360_power_a_mini_proex.json diff --git a/v2/platforms/joystick/doc.go b/platforms/joystick/doc.go similarity index 100% rename from v2/platforms/joystick/doc.go rename to platforms/joystick/doc.go diff --git a/v2/platforms/joystick/events.go b/platforms/joystick/events.go similarity index 100% rename from v2/platforms/joystick/events.go rename to platforms/joystick/events.go diff --git a/v2/platforms/joystick/joystick_adaptor.go b/platforms/joystick/joystick_adaptor.go similarity index 100% rename from v2/platforms/joystick/joystick_adaptor.go rename to platforms/joystick/joystick_adaptor.go diff --git a/v2/platforms/joystick/joystick_adaptor_test.go b/platforms/joystick/joystick_adaptor_test.go similarity index 100% rename from v2/platforms/joystick/joystick_adaptor_test.go rename to platforms/joystick/joystick_adaptor_test.go diff --git a/v2/platforms/joystick/joystick_driver.go b/platforms/joystick/joystick_driver.go similarity index 100% rename from v2/platforms/joystick/joystick_driver.go rename to platforms/joystick/joystick_driver.go diff --git a/v2/platforms/joystick/joystick_driver_test.go b/platforms/joystick/joystick_driver_test.go similarity index 100% rename from v2/platforms/joystick/joystick_driver_test.go rename to platforms/joystick/joystick_driver_test.go diff --git a/v2/platforms/joystick/joystick_dualsense.go b/platforms/joystick/joystick_dualsense.go similarity index 100% rename from v2/platforms/joystick/joystick_dualsense.go rename to platforms/joystick/joystick_dualsense.go diff --git a/v2/platforms/joystick/joystick_dualshock3.go b/platforms/joystick/joystick_dualshock3.go similarity index 100% rename from v2/platforms/joystick/joystick_dualshock3.go rename to platforms/joystick/joystick_dualshock3.go diff --git a/v2/platforms/joystick/joystick_dualshock4.go b/platforms/joystick/joystick_dualshock4.go similarity index 100% rename from v2/platforms/joystick/joystick_dualshock4.go rename to platforms/joystick/joystick_dualshock4.go diff --git a/v2/platforms/joystick/joystick_nintendo_joycon.go b/platforms/joystick/joystick_nintendo_joycon.go similarity index 100% rename from v2/platforms/joystick/joystick_nintendo_joycon.go rename to platforms/joystick/joystick_nintendo_joycon.go diff --git a/v2/platforms/joystick/joystick_shield.go b/platforms/joystick/joystick_shield.go similarity index 100% rename from v2/platforms/joystick/joystick_shield.go rename to platforms/joystick/joystick_shield.go diff --git a/v2/platforms/joystick/joystick_tflight_hotas_x.go b/platforms/joystick/joystick_tflight_hotas_x.go similarity index 100% rename from v2/platforms/joystick/joystick_tflight_hotas_x.go rename to platforms/joystick/joystick_tflight_hotas_x.go diff --git a/v2/platforms/joystick/joystick_xbox360.go b/platforms/joystick/joystick_xbox360.go similarity index 100% rename from v2/platforms/joystick/joystick_xbox360.go rename to platforms/joystick/joystick_xbox360.go diff --git a/v2/platforms/joystick/joystick_xbox360_rock_band_drums.go b/platforms/joystick/joystick_xbox360_rock_band_drums.go similarity index 100% rename from v2/platforms/joystick/joystick_xbox360_rock_band_drums.go rename to platforms/joystick/joystick_xbox360_rock_band_drums.go diff --git a/v2/platforms/joystick/joystick_xboxone.go b/platforms/joystick/joystick_xboxone.go similarity index 100% rename from v2/platforms/joystick/joystick_xboxone.go rename to platforms/joystick/joystick_xboxone.go diff --git a/v2/platforms/joystick/test_helper.go b/platforms/joystick/test_helper.go similarity index 100% rename from v2/platforms/joystick/test_helper.go rename to platforms/joystick/test_helper.go diff --git a/v2/platforms/keyboard/LICENSE b/platforms/keyboard/LICENSE similarity index 100% rename from v2/platforms/keyboard/LICENSE rename to platforms/keyboard/LICENSE diff --git a/v2/platforms/keyboard/README.md b/platforms/keyboard/README.md similarity index 100% rename from v2/platforms/keyboard/README.md rename to platforms/keyboard/README.md diff --git a/v2/platforms/keyboard/doc.go b/platforms/keyboard/doc.go similarity index 100% rename from v2/platforms/keyboard/doc.go rename to platforms/keyboard/doc.go diff --git a/v2/platforms/keyboard/keyboard.go b/platforms/keyboard/keyboard.go similarity index 100% rename from v2/platforms/keyboard/keyboard.go rename to platforms/keyboard/keyboard.go diff --git a/v2/platforms/keyboard/keyboard_driver.go b/platforms/keyboard/keyboard_driver.go similarity index 100% rename from v2/platforms/keyboard/keyboard_driver.go rename to platforms/keyboard/keyboard_driver.go diff --git a/v2/platforms/keyboard/keyboard_driver_test.go b/platforms/keyboard/keyboard_driver_test.go similarity index 100% rename from v2/platforms/keyboard/keyboard_driver_test.go rename to platforms/keyboard/keyboard_driver_test.go diff --git a/v2/platforms/keyboard/keyboard_test.go b/platforms/keyboard/keyboard_test.go similarity index 100% rename from v2/platforms/keyboard/keyboard_test.go rename to platforms/keyboard/keyboard_test.go diff --git a/v2/platforms/leap/LICENSE b/platforms/leap/LICENSE similarity index 100% rename from v2/platforms/leap/LICENSE rename to platforms/leap/LICENSE diff --git a/v2/platforms/leap/README.md b/platforms/leap/README.md similarity index 100% rename from v2/platforms/leap/README.md rename to platforms/leap/README.md diff --git a/v2/platforms/leap/doc.go b/platforms/leap/doc.go similarity index 100% rename from v2/platforms/leap/doc.go rename to platforms/leap/doc.go diff --git a/v2/platforms/leap/leap_motion_adaptor.go b/platforms/leap/leap_motion_adaptor.go similarity index 100% rename from v2/platforms/leap/leap_motion_adaptor.go rename to platforms/leap/leap_motion_adaptor.go diff --git a/v2/platforms/leap/leap_motion_adaptor_test.go b/platforms/leap/leap_motion_adaptor_test.go similarity index 100% rename from v2/platforms/leap/leap_motion_adaptor_test.go rename to platforms/leap/leap_motion_adaptor_test.go diff --git a/v2/platforms/leap/leap_motion_driver.go b/platforms/leap/leap_motion_driver.go similarity index 100% rename from v2/platforms/leap/leap_motion_driver.go rename to platforms/leap/leap_motion_driver.go diff --git a/v2/platforms/leap/leap_motion_driver_test.go b/platforms/leap/leap_motion_driver_test.go similarity index 100% rename from v2/platforms/leap/leap_motion_driver_test.go rename to platforms/leap/leap_motion_driver_test.go diff --git a/v2/platforms/leap/parser.go b/platforms/leap/parser.go similarity index 100% rename from v2/platforms/leap/parser.go rename to platforms/leap/parser.go diff --git a/v2/platforms/leap/test/support/example_frame.json b/platforms/leap/test/support/example_frame.json similarity index 100% rename from v2/platforms/leap/test/support/example_frame.json rename to platforms/leap/test/support/example_frame.json diff --git a/v2/platforms/mavlink/LICENSE b/platforms/mavlink/LICENSE similarity index 100% rename from v2/platforms/mavlink/LICENSE rename to platforms/mavlink/LICENSE diff --git a/v2/platforms/mavlink/README.md b/platforms/mavlink/README.md similarity index 100% rename from v2/platforms/mavlink/README.md rename to platforms/mavlink/README.md diff --git a/v2/platforms/mavlink/common/common.go b/platforms/mavlink/common/common.go similarity index 100% rename from v2/platforms/mavlink/common/common.go rename to platforms/mavlink/common/common.go diff --git a/v2/platforms/mavlink/common/mavlink.go b/platforms/mavlink/common/mavlink.go similarity index 100% rename from v2/platforms/mavlink/common/mavlink.go rename to platforms/mavlink/common/mavlink.go diff --git a/v2/platforms/mavlink/common/version.go b/platforms/mavlink/common/version.go similarity index 100% rename from v2/platforms/mavlink/common/version.go rename to platforms/mavlink/common/version.go diff --git a/v2/platforms/mavlink/doc.go b/platforms/mavlink/doc.go similarity index 100% rename from v2/platforms/mavlink/doc.go rename to platforms/mavlink/doc.go diff --git a/v2/platforms/mavlink/mavlink_adaptor.go b/platforms/mavlink/mavlink_adaptor.go similarity index 100% rename from v2/platforms/mavlink/mavlink_adaptor.go rename to platforms/mavlink/mavlink_adaptor.go diff --git a/v2/platforms/mavlink/mavlink_adaptor_test.go b/platforms/mavlink/mavlink_adaptor_test.go similarity index 100% rename from v2/platforms/mavlink/mavlink_adaptor_test.go rename to platforms/mavlink/mavlink_adaptor_test.go diff --git a/v2/platforms/mavlink/mavlink_driver.go b/platforms/mavlink/mavlink_driver.go similarity index 100% rename from v2/platforms/mavlink/mavlink_driver.go rename to platforms/mavlink/mavlink_driver.go diff --git a/v2/platforms/mavlink/mavlink_driver_test.go b/platforms/mavlink/mavlink_driver_test.go similarity index 100% rename from v2/platforms/mavlink/mavlink_driver_test.go rename to platforms/mavlink/mavlink_driver_test.go diff --git a/v2/platforms/mavlink/mavlink_udp_adaptor.go b/platforms/mavlink/mavlink_udp_adaptor.go similarity index 100% rename from v2/platforms/mavlink/mavlink_udp_adaptor.go rename to platforms/mavlink/mavlink_udp_adaptor.go diff --git a/v2/platforms/mavlink/mavlink_udp_adaptor_test.go b/platforms/mavlink/mavlink_udp_adaptor_test.go similarity index 100% rename from v2/platforms/mavlink/mavlink_udp_adaptor_test.go rename to platforms/mavlink/mavlink_udp_adaptor_test.go diff --git a/v2/platforms/megapi/README.md b/platforms/megapi/README.md similarity index 100% rename from v2/platforms/megapi/README.md rename to platforms/megapi/README.md diff --git a/v2/platforms/megapi/doc.go b/platforms/megapi/doc.go similarity index 100% rename from v2/platforms/megapi/doc.go rename to platforms/megapi/doc.go diff --git a/v2/platforms/megapi/megapi_adaptor.go b/platforms/megapi/megapi_adaptor.go similarity index 100% rename from v2/platforms/megapi/megapi_adaptor.go rename to platforms/megapi/megapi_adaptor.go diff --git a/v2/platforms/megapi/motor_driver.go b/platforms/megapi/motor_driver.go similarity index 100% rename from v2/platforms/megapi/motor_driver.go rename to platforms/megapi/motor_driver.go diff --git a/v2/platforms/microbit/LICENSE b/platforms/microbit/LICENSE similarity index 100% rename from v2/platforms/microbit/LICENSE rename to platforms/microbit/LICENSE diff --git a/v2/platforms/microbit/README.md b/platforms/microbit/README.md similarity index 100% rename from v2/platforms/microbit/README.md rename to platforms/microbit/README.md diff --git a/v2/platforms/microbit/accelerometer_driver.go b/platforms/microbit/accelerometer_driver.go similarity index 100% rename from v2/platforms/microbit/accelerometer_driver.go rename to platforms/microbit/accelerometer_driver.go diff --git a/v2/platforms/microbit/accelerometer_driver_test.go b/platforms/microbit/accelerometer_driver_test.go similarity index 100% rename from v2/platforms/microbit/accelerometer_driver_test.go rename to platforms/microbit/accelerometer_driver_test.go diff --git a/v2/platforms/microbit/button_driver.go b/platforms/microbit/button_driver.go similarity index 100% rename from v2/platforms/microbit/button_driver.go rename to platforms/microbit/button_driver.go diff --git a/v2/platforms/microbit/button_driver_test.go b/platforms/microbit/button_driver_test.go similarity index 100% rename from v2/platforms/microbit/button_driver_test.go rename to platforms/microbit/button_driver_test.go diff --git a/v2/platforms/microbit/doc.go b/platforms/microbit/doc.go similarity index 100% rename from v2/platforms/microbit/doc.go rename to platforms/microbit/doc.go diff --git a/v2/platforms/microbit/helpers_test.go b/platforms/microbit/helpers_test.go similarity index 100% rename from v2/platforms/microbit/helpers_test.go rename to platforms/microbit/helpers_test.go diff --git a/v2/platforms/microbit/io_pin_driver.go b/platforms/microbit/io_pin_driver.go similarity index 100% rename from v2/platforms/microbit/io_pin_driver.go rename to platforms/microbit/io_pin_driver.go diff --git a/v2/platforms/microbit/io_pin_driver_test.go b/platforms/microbit/io_pin_driver_test.go similarity index 100% rename from v2/platforms/microbit/io_pin_driver_test.go rename to platforms/microbit/io_pin_driver_test.go diff --git a/v2/platforms/microbit/led_driver.go b/platforms/microbit/led_driver.go similarity index 100% rename from v2/platforms/microbit/led_driver.go rename to platforms/microbit/led_driver.go diff --git a/v2/platforms/microbit/led_driver_test.go b/platforms/microbit/led_driver_test.go similarity index 100% rename from v2/platforms/microbit/led_driver_test.go rename to platforms/microbit/led_driver_test.go diff --git a/v2/platforms/microbit/magnetometer_driver.go b/platforms/microbit/magnetometer_driver.go similarity index 100% rename from v2/platforms/microbit/magnetometer_driver.go rename to platforms/microbit/magnetometer_driver.go diff --git a/v2/platforms/microbit/magnetometer_driver_test.go b/platforms/microbit/magnetometer_driver_test.go similarity index 100% rename from v2/platforms/microbit/magnetometer_driver_test.go rename to platforms/microbit/magnetometer_driver_test.go diff --git a/v2/platforms/microbit/temperature_driver.go b/platforms/microbit/temperature_driver.go similarity index 100% rename from v2/platforms/microbit/temperature_driver.go rename to platforms/microbit/temperature_driver.go diff --git a/v2/platforms/microbit/temperature_driver_test.go b/platforms/microbit/temperature_driver_test.go similarity index 100% rename from v2/platforms/microbit/temperature_driver_test.go rename to platforms/microbit/temperature_driver_test.go diff --git a/v2/platforms/mqtt/LICENSE b/platforms/mqtt/LICENSE similarity index 100% rename from v2/platforms/mqtt/LICENSE rename to platforms/mqtt/LICENSE diff --git a/v2/platforms/mqtt/README.md b/platforms/mqtt/README.md similarity index 100% rename from v2/platforms/mqtt/README.md rename to platforms/mqtt/README.md diff --git a/v2/platforms/mqtt/doc.go b/platforms/mqtt/doc.go similarity index 100% rename from v2/platforms/mqtt/doc.go rename to platforms/mqtt/doc.go diff --git a/v2/platforms/mqtt/mqtt_adaptor.go b/platforms/mqtt/mqtt_adaptor.go similarity index 100% rename from v2/platforms/mqtt/mqtt_adaptor.go rename to platforms/mqtt/mqtt_adaptor.go diff --git a/v2/platforms/mqtt/mqtt_adaptor_test.go b/platforms/mqtt/mqtt_adaptor_test.go similarity index 100% rename from v2/platforms/mqtt/mqtt_adaptor_test.go rename to platforms/mqtt/mqtt_adaptor_test.go diff --git a/v2/platforms/mqtt/mqtt_driver.go b/platforms/mqtt/mqtt_driver.go similarity index 100% rename from v2/platforms/mqtt/mqtt_driver.go rename to platforms/mqtt/mqtt_driver.go diff --git a/v2/platforms/mqtt/mqtt_driver_test.go b/platforms/mqtt/mqtt_driver_test.go similarity index 100% rename from v2/platforms/mqtt/mqtt_driver_test.go rename to platforms/mqtt/mqtt_driver_test.go diff --git a/v2/platforms/nanopi/LICENSE b/platforms/nanopi/LICENSE similarity index 100% rename from v2/platforms/nanopi/LICENSE rename to platforms/nanopi/LICENSE diff --git a/v2/platforms/nanopi/README.md b/platforms/nanopi/README.md similarity index 100% rename from v2/platforms/nanopi/README.md rename to platforms/nanopi/README.md diff --git a/v2/platforms/nanopi/doc.go b/platforms/nanopi/doc.go similarity index 100% rename from v2/platforms/nanopi/doc.go rename to platforms/nanopi/doc.go diff --git a/v2/platforms/nanopi/nanopi_adaptor.go b/platforms/nanopi/nanopi_adaptor.go similarity index 100% rename from v2/platforms/nanopi/nanopi_adaptor.go rename to platforms/nanopi/nanopi_adaptor.go diff --git a/v2/platforms/nanopi/nanopi_adaptor_test.go b/platforms/nanopi/nanopi_adaptor_test.go similarity index 100% rename from v2/platforms/nanopi/nanopi_adaptor_test.go rename to platforms/nanopi/nanopi_adaptor_test.go diff --git a/v2/platforms/nanopi/nanopineo_pin_map.go b/platforms/nanopi/nanopineo_pin_map.go similarity index 100% rename from v2/platforms/nanopi/nanopineo_pin_map.go rename to platforms/nanopi/nanopineo_pin_map.go diff --git a/v2/platforms/nats/README.md b/platforms/nats/README.md similarity index 100% rename from v2/platforms/nats/README.md rename to platforms/nats/README.md diff --git a/v2/platforms/nats/doc.go b/platforms/nats/doc.go similarity index 100% rename from v2/platforms/nats/doc.go rename to platforms/nats/doc.go diff --git a/v2/platforms/nats/nats_adaptor.go b/platforms/nats/nats_adaptor.go similarity index 100% rename from v2/platforms/nats/nats_adaptor.go rename to platforms/nats/nats_adaptor.go diff --git a/v2/platforms/nats/nats_adaptor_test.go b/platforms/nats/nats_adaptor_test.go similarity index 100% rename from v2/platforms/nats/nats_adaptor_test.go rename to platforms/nats/nats_adaptor_test.go diff --git a/v2/platforms/nats/nats_driver.go b/platforms/nats/nats_driver.go similarity index 100% rename from v2/platforms/nats/nats_driver.go rename to platforms/nats/nats_driver.go diff --git a/v2/platforms/nats/nats_driver_test.go b/platforms/nats/nats_driver_test.go similarity index 100% rename from v2/platforms/nats/nats_driver_test.go rename to platforms/nats/nats_driver_test.go diff --git a/v2/platforms/nats/test_certs/catest-key.pem b/platforms/nats/test_certs/catest-key.pem similarity index 100% rename from v2/platforms/nats/test_certs/catest-key.pem rename to platforms/nats/test_certs/catest-key.pem diff --git a/v2/platforms/nats/test_certs/catest.pem b/platforms/nats/test_certs/catest.pem similarity index 100% rename from v2/platforms/nats/test_certs/catest.pem rename to platforms/nats/test_certs/catest.pem diff --git a/v2/platforms/nats/test_certs/client-cert.pem b/platforms/nats/test_certs/client-cert.pem similarity index 100% rename from v2/platforms/nats/test_certs/client-cert.pem rename to platforms/nats/test_certs/client-cert.pem diff --git a/v2/platforms/nats/test_certs/client-key.pem b/platforms/nats/test_certs/client-key.pem similarity index 100% rename from v2/platforms/nats/test_certs/client-key.pem rename to platforms/nats/test_certs/client-key.pem diff --git a/v2/platforms/nats/test_certs/server-cert.pem b/platforms/nats/test_certs/server-cert.pem similarity index 100% rename from v2/platforms/nats/test_certs/server-cert.pem rename to platforms/nats/test_certs/server-cert.pem diff --git a/v2/platforms/nats/test_certs/server-key.pem b/platforms/nats/test_certs/server-key.pem similarity index 100% rename from v2/platforms/nats/test_certs/server-key.pem rename to platforms/nats/test_certs/server-key.pem diff --git a/v2/platforms/neurosky/LICENSE b/platforms/neurosky/LICENSE similarity index 100% rename from v2/platforms/neurosky/LICENSE rename to platforms/neurosky/LICENSE diff --git a/v2/platforms/neurosky/README.md b/platforms/neurosky/README.md similarity index 100% rename from v2/platforms/neurosky/README.md rename to platforms/neurosky/README.md diff --git a/v2/platforms/neurosky/doc.go b/platforms/neurosky/doc.go similarity index 100% rename from v2/platforms/neurosky/doc.go rename to platforms/neurosky/doc.go diff --git a/v2/platforms/neurosky/neurosky_adaptor.go b/platforms/neurosky/neurosky_adaptor.go similarity index 100% rename from v2/platforms/neurosky/neurosky_adaptor.go rename to platforms/neurosky/neurosky_adaptor.go diff --git a/v2/platforms/neurosky/neurosky_adaptor_test.go b/platforms/neurosky/neurosky_adaptor_test.go similarity index 100% rename from v2/platforms/neurosky/neurosky_adaptor_test.go rename to platforms/neurosky/neurosky_adaptor_test.go diff --git a/v2/platforms/neurosky/neurosky_driver.go b/platforms/neurosky/neurosky_driver.go similarity index 100% rename from v2/platforms/neurosky/neurosky_driver.go rename to platforms/neurosky/neurosky_driver.go diff --git a/v2/platforms/neurosky/neurosky_driver_test.go b/platforms/neurosky/neurosky_driver_test.go similarity index 100% rename from v2/platforms/neurosky/neurosky_driver_test.go rename to platforms/neurosky/neurosky_driver_test.go diff --git a/v2/platforms/opencv/LICENSE b/platforms/opencv/LICENSE similarity index 100% rename from v2/platforms/opencv/LICENSE rename to platforms/opencv/LICENSE diff --git a/v2/platforms/opencv/README.md b/platforms/opencv/README.md similarity index 100% rename from v2/platforms/opencv/README.md rename to platforms/opencv/README.md diff --git a/v2/platforms/opencv/camera_driver.go b/platforms/opencv/camera_driver.go similarity index 100% rename from v2/platforms/opencv/camera_driver.go rename to platforms/opencv/camera_driver.go diff --git a/v2/platforms/opencv/camera_driver_test.go b/platforms/opencv/camera_driver_test.go similarity index 100% rename from v2/platforms/opencv/camera_driver_test.go rename to platforms/opencv/camera_driver_test.go diff --git a/v2/platforms/opencv/doc.go b/platforms/opencv/doc.go similarity index 100% rename from v2/platforms/opencv/doc.go rename to platforms/opencv/doc.go diff --git a/v2/platforms/opencv/haarcascade_frontalface_alt.xml b/platforms/opencv/haarcascade_frontalface_alt.xml similarity index 100% rename from v2/platforms/opencv/haarcascade_frontalface_alt.xml rename to platforms/opencv/haarcascade_frontalface_alt.xml diff --git a/v2/platforms/opencv/helpers_test.go b/platforms/opencv/helpers_test.go similarity index 100% rename from v2/platforms/opencv/helpers_test.go rename to platforms/opencv/helpers_test.go diff --git a/v2/platforms/opencv/lena-256x256.jpg b/platforms/opencv/lena-256x256.jpg similarity index 100% rename from v2/platforms/opencv/lena-256x256.jpg rename to platforms/opencv/lena-256x256.jpg diff --git a/v2/platforms/opencv/utils.go b/platforms/opencv/utils.go similarity index 100% rename from v2/platforms/opencv/utils.go rename to platforms/opencv/utils.go diff --git a/v2/platforms/opencv/utils_test.go b/platforms/opencv/utils_test.go similarity index 100% rename from v2/platforms/opencv/utils_test.go rename to platforms/opencv/utils_test.go diff --git a/v2/platforms/opencv/window_driver.go b/platforms/opencv/window_driver.go similarity index 100% rename from v2/platforms/opencv/window_driver.go rename to platforms/opencv/window_driver.go diff --git a/v2/platforms/opencv/window_driver_test.go b/platforms/opencv/window_driver_test.go similarity index 100% rename from v2/platforms/opencv/window_driver_test.go rename to platforms/opencv/window_driver_test.go diff --git a/v2/platforms/parrot/LICENSE b/platforms/parrot/LICENSE similarity index 100% rename from v2/platforms/parrot/LICENSE rename to platforms/parrot/LICENSE diff --git a/v2/platforms/parrot/README.md b/platforms/parrot/README.md similarity index 100% rename from v2/platforms/parrot/README.md rename to platforms/parrot/README.md diff --git a/v2/platforms/parrot/ardrone/LICENSE b/platforms/parrot/ardrone/LICENSE similarity index 100% rename from v2/platforms/parrot/ardrone/LICENSE rename to platforms/parrot/ardrone/LICENSE diff --git a/v2/platforms/parrot/ardrone/README.md b/platforms/parrot/ardrone/README.md similarity index 100% rename from v2/platforms/parrot/ardrone/README.md rename to platforms/parrot/ardrone/README.md diff --git a/v2/platforms/parrot/ardrone/ardrone_adaptor.go b/platforms/parrot/ardrone/ardrone_adaptor.go similarity index 100% rename from v2/platforms/parrot/ardrone/ardrone_adaptor.go rename to platforms/parrot/ardrone/ardrone_adaptor.go diff --git a/v2/platforms/parrot/ardrone/ardrone_adaptor_test.go b/platforms/parrot/ardrone/ardrone_adaptor_test.go similarity index 100% rename from v2/platforms/parrot/ardrone/ardrone_adaptor_test.go rename to platforms/parrot/ardrone/ardrone_adaptor_test.go diff --git a/v2/platforms/parrot/ardrone/ardrone_driver.go b/platforms/parrot/ardrone/ardrone_driver.go similarity index 100% rename from v2/platforms/parrot/ardrone/ardrone_driver.go rename to platforms/parrot/ardrone/ardrone_driver.go diff --git a/v2/platforms/parrot/ardrone/ardrone_driver_test.go b/platforms/parrot/ardrone/ardrone_driver_test.go similarity index 100% rename from v2/platforms/parrot/ardrone/ardrone_driver_test.go rename to platforms/parrot/ardrone/ardrone_driver_test.go diff --git a/v2/platforms/parrot/ardrone/doc.go b/platforms/parrot/ardrone/doc.go similarity index 100% rename from v2/platforms/parrot/ardrone/doc.go rename to platforms/parrot/ardrone/doc.go diff --git a/v2/platforms/parrot/ardrone/pitch.go b/platforms/parrot/ardrone/pitch.go similarity index 100% rename from v2/platforms/parrot/ardrone/pitch.go rename to platforms/parrot/ardrone/pitch.go diff --git a/v2/platforms/parrot/ardrone/pitch_test.go b/platforms/parrot/ardrone/pitch_test.go similarity index 100% rename from v2/platforms/parrot/ardrone/pitch_test.go rename to platforms/parrot/ardrone/pitch_test.go diff --git a/v2/platforms/parrot/ardrone/test_helper.go b/platforms/parrot/ardrone/test_helper.go similarity index 100% rename from v2/platforms/parrot/ardrone/test_helper.go rename to platforms/parrot/ardrone/test_helper.go diff --git a/v2/platforms/parrot/bebop/LICENSE b/platforms/parrot/bebop/LICENSE similarity index 100% rename from v2/platforms/parrot/bebop/LICENSE rename to platforms/parrot/bebop/LICENSE diff --git a/v2/platforms/parrot/bebop/README.md b/platforms/parrot/bebop/README.md similarity index 100% rename from v2/platforms/parrot/bebop/README.md rename to platforms/parrot/bebop/README.md diff --git a/v2/platforms/parrot/bebop/bebop_adaptor.go b/platforms/parrot/bebop/bebop_adaptor.go similarity index 100% rename from v2/platforms/parrot/bebop/bebop_adaptor.go rename to platforms/parrot/bebop/bebop_adaptor.go diff --git a/v2/platforms/parrot/bebop/bebop_adaptor_test.go b/platforms/parrot/bebop/bebop_adaptor_test.go similarity index 100% rename from v2/platforms/parrot/bebop/bebop_adaptor_test.go rename to platforms/parrot/bebop/bebop_adaptor_test.go diff --git a/v2/platforms/parrot/bebop/bebop_driver.go b/platforms/parrot/bebop/bebop_driver.go similarity index 100% rename from v2/platforms/parrot/bebop/bebop_driver.go rename to platforms/parrot/bebop/bebop_driver.go diff --git a/v2/platforms/parrot/bebop/bebop_driver_test.go b/platforms/parrot/bebop/bebop_driver_test.go similarity index 100% rename from v2/platforms/parrot/bebop/bebop_driver_test.go rename to platforms/parrot/bebop/bebop_driver_test.go diff --git a/v2/platforms/parrot/bebop/client/client.go b/platforms/parrot/bebop/client/client.go similarity index 100% rename from v2/platforms/parrot/bebop/client/client.go rename to platforms/parrot/bebop/client/client.go diff --git a/v2/platforms/parrot/bebop/client/constants.go b/platforms/parrot/bebop/client/constants.go similarity index 100% rename from v2/platforms/parrot/bebop/client/constants.go rename to platforms/parrot/bebop/client/constants.go diff --git a/v2/platforms/parrot/bebop/client/examples/ff.conf b/platforms/parrot/bebop/client/examples/ff.conf similarity index 100% rename from v2/platforms/parrot/bebop/client/examples/ff.conf rename to platforms/parrot/bebop/client/examples/ff.conf diff --git a/v2/platforms/parrot/bebop/client/examples/takeoff.go b/platforms/parrot/bebop/client/examples/takeoff.go similarity index 100% rename from v2/platforms/parrot/bebop/client/examples/takeoff.go rename to platforms/parrot/bebop/client/examples/takeoff.go diff --git a/v2/platforms/parrot/bebop/client/examples/video.go b/platforms/parrot/bebop/client/examples/video.go similarity index 100% rename from v2/platforms/parrot/bebop/client/examples/video.go rename to platforms/parrot/bebop/client/examples/video.go diff --git a/v2/platforms/parrot/bebop/doc.go b/platforms/parrot/bebop/doc.go similarity index 100% rename from v2/platforms/parrot/bebop/doc.go rename to platforms/parrot/bebop/doc.go diff --git a/v2/platforms/parrot/bebop/pitch.go b/platforms/parrot/bebop/pitch.go similarity index 100% rename from v2/platforms/parrot/bebop/pitch.go rename to platforms/parrot/bebop/pitch.go diff --git a/v2/platforms/parrot/bebop/pitch_test.go b/platforms/parrot/bebop/pitch_test.go similarity index 100% rename from v2/platforms/parrot/bebop/pitch_test.go rename to platforms/parrot/bebop/pitch_test.go diff --git a/v2/platforms/parrot/bebop/test_helper.go b/platforms/parrot/bebop/test_helper.go similarity index 100% rename from v2/platforms/parrot/bebop/test_helper.go rename to platforms/parrot/bebop/test_helper.go diff --git a/v2/platforms/parrot/minidrone/LICENSE b/platforms/parrot/minidrone/LICENSE similarity index 100% rename from v2/platforms/parrot/minidrone/LICENSE rename to platforms/parrot/minidrone/LICENSE diff --git a/v2/platforms/parrot/minidrone/README.md b/platforms/parrot/minidrone/README.md similarity index 100% rename from v2/platforms/parrot/minidrone/README.md rename to platforms/parrot/minidrone/README.md diff --git a/v2/platforms/parrot/minidrone/doc.go b/platforms/parrot/minidrone/doc.go similarity index 100% rename from v2/platforms/parrot/minidrone/doc.go rename to platforms/parrot/minidrone/doc.go diff --git a/v2/platforms/parrot/minidrone/helpers_test.go b/platforms/parrot/minidrone/helpers_test.go similarity index 100% rename from v2/platforms/parrot/minidrone/helpers_test.go rename to platforms/parrot/minidrone/helpers_test.go diff --git a/v2/platforms/parrot/minidrone/minidrone_driver.go b/platforms/parrot/minidrone/minidrone_driver.go similarity index 100% rename from v2/platforms/parrot/minidrone/minidrone_driver.go rename to platforms/parrot/minidrone/minidrone_driver.go diff --git a/v2/platforms/parrot/minidrone/minidrone_driver_test.go b/platforms/parrot/minidrone/minidrone_driver_test.go similarity index 100% rename from v2/platforms/parrot/minidrone/minidrone_driver_test.go rename to platforms/parrot/minidrone/minidrone_driver_test.go diff --git a/v2/platforms/parrot/minidrone/pitch.go b/platforms/parrot/minidrone/pitch.go similarity index 100% rename from v2/platforms/parrot/minidrone/pitch.go rename to platforms/parrot/minidrone/pitch.go diff --git a/v2/platforms/parrot/minidrone/pitch_test.go b/platforms/parrot/minidrone/pitch_test.go similarity index 100% rename from v2/platforms/parrot/minidrone/pitch_test.go rename to platforms/parrot/minidrone/pitch_test.go diff --git a/v2/platforms/parrot/parrot.go b/platforms/parrot/parrot.go similarity index 100% rename from v2/platforms/parrot/parrot.go rename to platforms/parrot/parrot.go diff --git a/v2/platforms/particle/LICENSE b/platforms/particle/LICENSE similarity index 100% rename from v2/platforms/particle/LICENSE rename to platforms/particle/LICENSE diff --git a/v2/platforms/particle/README.md b/platforms/particle/README.md similarity index 100% rename from v2/platforms/particle/README.md rename to platforms/particle/README.md diff --git a/v2/platforms/particle/adaptor.go b/platforms/particle/adaptor.go similarity index 100% rename from v2/platforms/particle/adaptor.go rename to platforms/particle/adaptor.go diff --git a/v2/platforms/particle/adaptor_test.go b/platforms/particle/adaptor_test.go similarity index 100% rename from v2/platforms/particle/adaptor_test.go rename to platforms/particle/adaptor_test.go diff --git a/v2/platforms/particle/doc.go b/platforms/particle/doc.go similarity index 100% rename from v2/platforms/particle/doc.go rename to platforms/particle/doc.go diff --git a/v2/platforms/pebble/README.md b/platforms/pebble/README.md similarity index 100% rename from v2/platforms/pebble/README.md rename to platforms/pebble/README.md diff --git a/v2/platforms/pebble/doc.go b/platforms/pebble/doc.go similarity index 100% rename from v2/platforms/pebble/doc.go rename to platforms/pebble/doc.go diff --git a/v2/platforms/pebble/pebble_adaptor.go b/platforms/pebble/pebble_adaptor.go similarity index 100% rename from v2/platforms/pebble/pebble_adaptor.go rename to platforms/pebble/pebble_adaptor.go diff --git a/v2/platforms/pebble/pebble_adaptor_test.go b/platforms/pebble/pebble_adaptor_test.go similarity index 100% rename from v2/platforms/pebble/pebble_adaptor_test.go rename to platforms/pebble/pebble_adaptor_test.go diff --git a/v2/platforms/pebble/pebble_driver.go b/platforms/pebble/pebble_driver.go similarity index 100% rename from v2/platforms/pebble/pebble_driver.go rename to platforms/pebble/pebble_driver.go diff --git a/v2/platforms/pebble/pebble_driver_test.go b/platforms/pebble/pebble_driver_test.go similarity index 100% rename from v2/platforms/pebble/pebble_driver_test.go rename to platforms/pebble/pebble_driver_test.go diff --git a/v2/platforms/raspi/LICENSE b/platforms/raspi/LICENSE similarity index 100% rename from v2/platforms/raspi/LICENSE rename to platforms/raspi/LICENSE diff --git a/v2/platforms/raspi/README.md b/platforms/raspi/README.md similarity index 100% rename from v2/platforms/raspi/README.md rename to platforms/raspi/README.md diff --git a/v2/platforms/raspi/doc.go b/platforms/raspi/doc.go similarity index 100% rename from v2/platforms/raspi/doc.go rename to platforms/raspi/doc.go diff --git a/v2/platforms/raspi/pwm_pin.go b/platforms/raspi/pwm_pin.go similarity index 100% rename from v2/platforms/raspi/pwm_pin.go rename to platforms/raspi/pwm_pin.go diff --git a/v2/platforms/raspi/pwm_pin_test.go b/platforms/raspi/pwm_pin_test.go similarity index 100% rename from v2/platforms/raspi/pwm_pin_test.go rename to platforms/raspi/pwm_pin_test.go diff --git a/v2/platforms/raspi/raspi_adaptor.go b/platforms/raspi/raspi_adaptor.go similarity index 100% rename from v2/platforms/raspi/raspi_adaptor.go rename to platforms/raspi/raspi_adaptor.go diff --git a/v2/platforms/raspi/raspi_adaptor_test.go b/platforms/raspi/raspi_adaptor_test.go similarity index 100% rename from v2/platforms/raspi/raspi_adaptor_test.go rename to platforms/raspi/raspi_adaptor_test.go diff --git a/v2/platforms/raspi/raspi_pin_map.go b/platforms/raspi/raspi_pin_map.go similarity index 100% rename from v2/platforms/raspi/raspi_pin_map.go rename to platforms/raspi/raspi_pin_map.go diff --git a/v2/platforms/rockpi/LICENSE b/platforms/rockpi/LICENSE similarity index 100% rename from v2/platforms/rockpi/LICENSE rename to platforms/rockpi/LICENSE diff --git a/v2/platforms/rockpi/README.md b/platforms/rockpi/README.md similarity index 100% rename from v2/platforms/rockpi/README.md rename to platforms/rockpi/README.md diff --git a/v2/platforms/rockpi/doc.go b/platforms/rockpi/doc.go similarity index 100% rename from v2/platforms/rockpi/doc.go rename to platforms/rockpi/doc.go diff --git a/v2/platforms/rockpi/rockpi_adaptor.go b/platforms/rockpi/rockpi_adaptor.go similarity index 100% rename from v2/platforms/rockpi/rockpi_adaptor.go rename to platforms/rockpi/rockpi_adaptor.go diff --git a/v2/platforms/rockpi/rockpi_adaptor_test.go b/platforms/rockpi/rockpi_adaptor_test.go similarity index 100% rename from v2/platforms/rockpi/rockpi_adaptor_test.go rename to platforms/rockpi/rockpi_adaptor_test.go diff --git a/v2/platforms/rockpi/rockpi_pin_map.go b/platforms/rockpi/rockpi_pin_map.go similarity index 100% rename from v2/platforms/rockpi/rockpi_pin_map.go rename to platforms/rockpi/rockpi_pin_map.go diff --git a/v2/platforms/sphero/LICENSE b/platforms/sphero/LICENSE similarity index 100% rename from v2/platforms/sphero/LICENSE rename to platforms/sphero/LICENSE diff --git a/v2/platforms/sphero/README.md b/platforms/sphero/README.md similarity index 100% rename from v2/platforms/sphero/README.md rename to platforms/sphero/README.md diff --git a/v2/platforms/sphero/bb8/LICENSE b/platforms/sphero/bb8/LICENSE similarity index 100% rename from v2/platforms/sphero/bb8/LICENSE rename to platforms/sphero/bb8/LICENSE diff --git a/v2/platforms/sphero/bb8/README.md b/platforms/sphero/bb8/README.md similarity index 100% rename from v2/platforms/sphero/bb8/README.md rename to platforms/sphero/bb8/README.md diff --git a/v2/platforms/sphero/bb8/bb8_driver.go b/platforms/sphero/bb8/bb8_driver.go similarity index 100% rename from v2/platforms/sphero/bb8/bb8_driver.go rename to platforms/sphero/bb8/bb8_driver.go diff --git a/v2/platforms/sphero/bb8/bb8_driver_test.go b/platforms/sphero/bb8/bb8_driver_test.go similarity index 100% rename from v2/platforms/sphero/bb8/bb8_driver_test.go rename to platforms/sphero/bb8/bb8_driver_test.go diff --git a/v2/platforms/sphero/bb8/bb8_packets.go b/platforms/sphero/bb8/bb8_packets.go similarity index 100% rename from v2/platforms/sphero/bb8/bb8_packets.go rename to platforms/sphero/bb8/bb8_packets.go diff --git a/v2/platforms/sphero/bb8/doc.go b/platforms/sphero/bb8/doc.go similarity index 100% rename from v2/platforms/sphero/bb8/doc.go rename to platforms/sphero/bb8/doc.go diff --git a/v2/platforms/sphero/bb8/helpers_test.go b/platforms/sphero/bb8/helpers_test.go similarity index 100% rename from v2/platforms/sphero/bb8/helpers_test.go rename to platforms/sphero/bb8/helpers_test.go diff --git a/v2/platforms/sphero/doc.go b/platforms/sphero/doc.go similarity index 100% rename from v2/platforms/sphero/doc.go rename to platforms/sphero/doc.go diff --git a/v2/platforms/sphero/ollie/LICENSE b/platforms/sphero/ollie/LICENSE similarity index 100% rename from v2/platforms/sphero/ollie/LICENSE rename to platforms/sphero/ollie/LICENSE diff --git a/v2/platforms/sphero/ollie/README.md b/platforms/sphero/ollie/README.md similarity index 100% rename from v2/platforms/sphero/ollie/README.md rename to platforms/sphero/ollie/README.md diff --git a/v2/platforms/sphero/ollie/doc.go b/platforms/sphero/ollie/doc.go similarity index 100% rename from v2/platforms/sphero/ollie/doc.go rename to platforms/sphero/ollie/doc.go diff --git a/v2/platforms/sphero/ollie/helpers_test.go b/platforms/sphero/ollie/helpers_test.go similarity index 100% rename from v2/platforms/sphero/ollie/helpers_test.go rename to platforms/sphero/ollie/helpers_test.go diff --git a/v2/platforms/sphero/ollie/ollie_driver.go b/platforms/sphero/ollie/ollie_driver.go similarity index 100% rename from v2/platforms/sphero/ollie/ollie_driver.go rename to platforms/sphero/ollie/ollie_driver.go diff --git a/v2/platforms/sphero/ollie/ollie_driver_test.go b/platforms/sphero/ollie/ollie_driver_test.go similarity index 100% rename from v2/platforms/sphero/ollie/ollie_driver_test.go rename to platforms/sphero/ollie/ollie_driver_test.go diff --git a/v2/platforms/sphero/ollie/ollie_packets.go b/platforms/sphero/ollie/ollie_packets.go similarity index 100% rename from v2/platforms/sphero/ollie/ollie_packets.go rename to platforms/sphero/ollie/ollie_packets.go diff --git a/v2/platforms/sphero/sphero_adaptor.go b/platforms/sphero/sphero_adaptor.go similarity index 100% rename from v2/platforms/sphero/sphero_adaptor.go rename to platforms/sphero/sphero_adaptor.go diff --git a/v2/platforms/sphero/sphero_adaptor_test.go b/platforms/sphero/sphero_adaptor_test.go similarity index 100% rename from v2/platforms/sphero/sphero_adaptor_test.go rename to platforms/sphero/sphero_adaptor_test.go diff --git a/v2/platforms/sphero/sphero_driver.go b/platforms/sphero/sphero_driver.go similarity index 100% rename from v2/platforms/sphero/sphero_driver.go rename to platforms/sphero/sphero_driver.go diff --git a/v2/platforms/sphero/sphero_driver_test.go b/platforms/sphero/sphero_driver_test.go similarity index 100% rename from v2/platforms/sphero/sphero_driver_test.go rename to platforms/sphero/sphero_driver_test.go diff --git a/v2/platforms/sphero/sphero_packets.go b/platforms/sphero/sphero_packets.go similarity index 100% rename from v2/platforms/sphero/sphero_packets.go rename to platforms/sphero/sphero_packets.go diff --git a/v2/platforms/sphero/sprkplus/LICENSE b/platforms/sphero/sprkplus/LICENSE similarity index 100% rename from v2/platforms/sphero/sprkplus/LICENSE rename to platforms/sphero/sprkplus/LICENSE diff --git a/v2/platforms/sphero/sprkplus/README.md b/platforms/sphero/sprkplus/README.md similarity index 100% rename from v2/platforms/sphero/sprkplus/README.md rename to platforms/sphero/sprkplus/README.md diff --git a/v2/platforms/sphero/sprkplus/doc.go b/platforms/sphero/sprkplus/doc.go similarity index 100% rename from v2/platforms/sphero/sprkplus/doc.go rename to platforms/sphero/sprkplus/doc.go diff --git a/v2/platforms/sphero/sprkplus/helpers_test.go b/platforms/sphero/sprkplus/helpers_test.go similarity index 100% rename from v2/platforms/sphero/sprkplus/helpers_test.go rename to platforms/sphero/sprkplus/helpers_test.go diff --git a/v2/platforms/sphero/sprkplus/sprkplus_driver.go b/platforms/sphero/sprkplus/sprkplus_driver.go similarity index 100% rename from v2/platforms/sphero/sprkplus/sprkplus_driver.go rename to platforms/sphero/sprkplus/sprkplus_driver.go diff --git a/v2/platforms/sphero/sprkplus/sprkplus_driver_test.go b/platforms/sphero/sprkplus/sprkplus_driver_test.go similarity index 100% rename from v2/platforms/sphero/sprkplus/sprkplus_driver_test.go rename to platforms/sphero/sprkplus/sprkplus_driver_test.go diff --git a/v2/platforms/sphero/sprkplus/sprkplus_packets.go b/platforms/sphero/sprkplus/sprkplus_packets.go similarity index 100% rename from v2/platforms/sphero/sprkplus/sprkplus_packets.go rename to platforms/sphero/sprkplus/sprkplus_packets.go diff --git a/v2/platforms/tinkerboard/LICENSE b/platforms/tinkerboard/LICENSE similarity index 100% rename from v2/platforms/tinkerboard/LICENSE rename to platforms/tinkerboard/LICENSE diff --git a/v2/platforms/tinkerboard/README.md b/platforms/tinkerboard/README.md similarity index 100% rename from v2/platforms/tinkerboard/README.md rename to platforms/tinkerboard/README.md diff --git a/v2/platforms/tinkerboard/adaptor.go b/platforms/tinkerboard/adaptor.go similarity index 100% rename from v2/platforms/tinkerboard/adaptor.go rename to platforms/tinkerboard/adaptor.go diff --git a/v2/platforms/tinkerboard/adaptor_test.go b/platforms/tinkerboard/adaptor_test.go similarity index 100% rename from v2/platforms/tinkerboard/adaptor_test.go rename to platforms/tinkerboard/adaptor_test.go diff --git a/v2/platforms/tinkerboard/doc.go b/platforms/tinkerboard/doc.go similarity index 100% rename from v2/platforms/tinkerboard/doc.go rename to platforms/tinkerboard/doc.go diff --git a/v2/platforms/tinkerboard/pin_map.go b/platforms/tinkerboard/pin_map.go similarity index 100% rename from v2/platforms/tinkerboard/pin_map.go rename to platforms/tinkerboard/pin_map.go diff --git a/v2/platforms/upboard/README.md b/platforms/upboard/README.md similarity index 100% rename from v2/platforms/upboard/README.md rename to platforms/upboard/README.md diff --git a/v2/platforms/upboard/up2/LICENSE b/platforms/upboard/up2/LICENSE similarity index 100% rename from v2/platforms/upboard/up2/LICENSE rename to platforms/upboard/up2/LICENSE diff --git a/v2/platforms/upboard/up2/README.md b/platforms/upboard/up2/README.md similarity index 100% rename from v2/platforms/upboard/up2/README.md rename to platforms/upboard/up2/README.md diff --git a/v2/platforms/upboard/up2/adaptor.go b/platforms/upboard/up2/adaptor.go similarity index 100% rename from v2/platforms/upboard/up2/adaptor.go rename to platforms/upboard/up2/adaptor.go diff --git a/v2/platforms/upboard/up2/adaptor_test.go b/platforms/upboard/up2/adaptor_test.go similarity index 100% rename from v2/platforms/upboard/up2/adaptor_test.go rename to platforms/upboard/up2/adaptor_test.go diff --git a/v2/platforms/upboard/up2/doc.go b/platforms/upboard/up2/doc.go similarity index 100% rename from v2/platforms/upboard/up2/doc.go rename to platforms/upboard/up2/doc.go diff --git a/v2/platforms/upboard/up2/pin_map.go b/platforms/upboard/up2/pin_map.go similarity index 100% rename from v2/platforms/upboard/up2/pin_map.go rename to platforms/upboard/up2/pin_map.go diff --git a/v2/platforms/upboard/upboard.go b/platforms/upboard/upboard.go similarity index 100% rename from v2/platforms/upboard/upboard.go rename to platforms/upboard/upboard.go diff --git a/v2/robot.go b/robot.go similarity index 100% rename from v2/robot.go rename to robot.go diff --git a/v2/robot_test.go b/robot_test.go similarity index 100% rename from v2/robot_test.go rename to robot_test.go diff --git a/v2/robot_work.go b/robot_work.go similarity index 100% rename from v2/robot_work.go rename to robot_work.go diff --git a/v2/robot_work_test.go b/robot_work_test.go similarity index 100% rename from v2/robot_work_test.go rename to robot_work_test.go diff --git a/v2/snapcraft.yaml b/snapcraft.yaml similarity index 100% rename from v2/snapcraft.yaml rename to snapcraft.yaml diff --git a/v2/system/GPIO.md b/system/GPIO.md similarity index 100% rename from v2/system/GPIO.md rename to system/GPIO.md diff --git a/v2/system/I2C.md b/system/I2C.md similarity index 100% rename from v2/system/I2C.md rename to system/I2C.md diff --git a/v2/system/PWM.md b/system/PWM.md similarity index 100% rename from v2/system/PWM.md rename to system/PWM.md diff --git a/v2/system/README.md b/system/README.md similarity index 100% rename from v2/system/README.md rename to system/README.md diff --git a/v2/system/digitalpin_access.go b/system/digitalpin_access.go similarity index 100% rename from v2/system/digitalpin_access.go rename to system/digitalpin_access.go diff --git a/v2/system/digitalpin_access_test.go b/system/digitalpin_access_test.go similarity index 100% rename from v2/system/digitalpin_access_test.go rename to system/digitalpin_access_test.go diff --git a/v2/system/digitalpin_bench_test.go b/system/digitalpin_bench_test.go similarity index 100% rename from v2/system/digitalpin_bench_test.go rename to system/digitalpin_bench_test.go diff --git a/v2/system/digitalpin_config.go b/system/digitalpin_config.go similarity index 100% rename from v2/system/digitalpin_config.go rename to system/digitalpin_config.go diff --git a/v2/system/digitalpin_config_test.go b/system/digitalpin_config_test.go similarity index 100% rename from v2/system/digitalpin_config_test.go rename to system/digitalpin_config_test.go diff --git a/v2/system/digitalpin_gpiod.go b/system/digitalpin_gpiod.go similarity index 100% rename from v2/system/digitalpin_gpiod.go rename to system/digitalpin_gpiod.go diff --git a/v2/system/digitalpin_gpiod_test.go b/system/digitalpin_gpiod_test.go similarity index 100% rename from v2/system/digitalpin_gpiod_test.go rename to system/digitalpin_gpiod_test.go diff --git a/v2/system/digitalpin_mock.go b/system/digitalpin_mock.go similarity index 100% rename from v2/system/digitalpin_mock.go rename to system/digitalpin_mock.go diff --git a/v2/system/digitalpin_sysfs.go b/system/digitalpin_sysfs.go similarity index 100% rename from v2/system/digitalpin_sysfs.go rename to system/digitalpin_sysfs.go diff --git a/v2/system/digitalpin_sysfs_test.go b/system/digitalpin_sysfs_test.go similarity index 100% rename from v2/system/digitalpin_sysfs_test.go rename to system/digitalpin_sysfs_test.go diff --git a/v2/system/doc.go b/system/doc.go similarity index 100% rename from v2/system/doc.go rename to system/doc.go diff --git a/v2/system/fs.go b/system/fs.go similarity index 100% rename from v2/system/fs.go rename to system/fs.go diff --git a/v2/system/fs_mock.go b/system/fs_mock.go similarity index 100% rename from v2/system/fs_mock.go rename to system/fs_mock.go diff --git a/v2/system/fs_mock_test.go b/system/fs_mock_test.go similarity index 100% rename from v2/system/fs_mock_test.go rename to system/fs_mock_test.go diff --git a/v2/system/fs_test.go b/system/fs_test.go similarity index 100% rename from v2/system/fs_test.go rename to system/fs_test.go diff --git a/v2/system/i2c_device.go b/system/i2c_device.go similarity index 100% rename from v2/system/i2c_device.go rename to system/i2c_device.go diff --git a/v2/system/i2c_device_test.go b/system/i2c_device_test.go similarity index 100% rename from v2/system/i2c_device_test.go rename to system/i2c_device_test.go diff --git a/v2/system/pwmpin_sysfs.go b/system/pwmpin_sysfs.go similarity index 100% rename from v2/system/pwmpin_sysfs.go rename to system/pwmpin_sysfs.go diff --git a/v2/system/pwmpin_sysfs_test.go b/system/pwmpin_sysfs_test.go similarity index 100% rename from v2/system/pwmpin_sysfs_test.go rename to system/pwmpin_sysfs_test.go diff --git a/v2/system/spi_access.go b/system/spi_access.go similarity index 100% rename from v2/system/spi_access.go rename to system/spi_access.go diff --git a/v2/system/spi_access_test.go b/system/spi_access_test.go similarity index 100% rename from v2/system/spi_access_test.go rename to system/spi_access_test.go diff --git a/v2/system/spi_gpio.go b/system/spi_gpio.go similarity index 100% rename from v2/system/spi_gpio.go rename to system/spi_gpio.go diff --git a/v2/system/spi_mock.go b/system/spi_mock.go similarity index 100% rename from v2/system/spi_mock.go rename to system/spi_mock.go diff --git a/v2/system/spi_periphio.go b/system/spi_periphio.go similarity index 100% rename from v2/system/spi_periphio.go rename to system/spi_periphio.go diff --git a/v2/system/syscall.go b/system/syscall.go similarity index 100% rename from v2/system/syscall.go rename to system/syscall.go diff --git a/v2/system/syscall_mock.go b/system/syscall_mock.go similarity index 100% rename from v2/system/syscall_mock.go rename to system/syscall_mock.go diff --git a/v2/system/system.go b/system/system.go similarity index 100% rename from v2/system/system.go rename to system/system.go diff --git a/v2/system/system_options.go b/system/system_options.go similarity index 100% rename from v2/system/system_options.go rename to system/system_options.go diff --git a/v2/system/system_test.go b/system/system_test.go similarity index 100% rename from v2/system/system_test.go rename to system/system_test.go diff --git a/v2/utils.go b/utils.go similarity index 100% rename from v2/utils.go rename to utils.go diff --git a/v2/utils_test.go b/utils_test.go similarity index 100% rename from v2/utils_test.go rename to utils_test.go diff --git a/v2/Makefile b/v2/Makefile deleted file mode 100644 index 5ba96901e..000000000 --- a/v2/Makefile +++ /dev/null @@ -1,76 +0,0 @@ -# include also examples in other than ./examples folder -ALL_EXAMPLES := $(shell grep -l -r --include "*.go" 'build example' ./) -# prevent examples with gocv (opencv) dependencies -EXAMPLES_NO_GOCV := $(shell grep -L 'gocv' $(ALL_EXAMPLES)) -# prevent examples with joystick (sdl2) dependencies -EXAMPLES_NO_JOYSTICK := $(shell grep -L 'joystick' $(ALL_EXAMPLES)) -# prevent examples with joystick (sdl2) and gocv (opencv) dependencies -EXAMPLES_NO_GOCV_JOYSTICK := $(shell grep -L 'joystick' $$(grep -L 'gocv' $(EXAMPLES_NO_GOCV))) -# used examples -EXAMPLES := $(EXAMPLES_NO_GOCV_JOYSTICK) - -.PHONY: test test_race test_cover robeaux version_check fmt_check fmt_fix examples examples_check $(EXAMPLES) - -# opencv platform currently skipped to prevent install of preconditions -including_except := $(shell go list ./... | grep -v platforms/opencv) - -# Run tests on nearly all directories without test cache -test: - go test -count=1 -v $(including_except) - -# Run tests with race detection -test_race: - go test -race $(including_except) - -# Test, generate and show coverage in browser -test_cover: - go test -v $(including_except) -coverprofile=coverage.txt ; \ - go tool cover -html=coverage.txt ; \ - -robeaux: -ifeq (,$(shell which go-bindata)) - $(error robeaux not built! https://github.com/jteeuwen/go-bindata is required to build robeaux assets ) -endif - cd api ; \ - npm install robeaux ; \ - cp -r node_modules/robeaux robeaux-tmp ; \ - cd robeaux-tmp ; \ - rm Makefile package.json README.markdown ; \ - touch css/fonts.css ; \ - echo "Updating robeaux..." ; \ - go-bindata -pkg="robeaux" -o robeaux.go -ignore=\\.git ./... ; \ - mv robeaux.go ../robeaux ; \ - cd .. ; \ - rm -rf robeaux-tmp/ ; \ - rm -rf node_modules/ ; \ - go fmt ./robeaux/robeaux.go ; \ - -# Check for installed and module version match. Will exit with code 50 if not match. -# There is nothing bad in general, if you program with a higher version. -# At least the recipe "fmt_fix" will not work in that case. -version_check: - @gv=$$(echo $$(go version) | sed "s/^.* go\([0-9].[0-9]*\).*/\1/") ; \ - mv=$$(grep -m 1 'go 1.' ./go.mod | sed "s/^go \([0-9].[0-9]*\).*/\1/") ; \ - echo "go: $${gv}.*, go.mod: $${mv}" ; \ - if [ "$${gv}" != "$${mv}" ]; then exit 50; fi ; \ - -# Check for bad code style and other issues -fmt_check: - gofmt -l ./ - golangci-lint run -v - -# Fix bad code style (will only be executed, on version match) -fmt_fix: version_check - go fmt ./... - -examples: $(EXAMPLES) - -examples_check: - $(MAKE) CHECK=ON examples - -$(EXAMPLES): -ifeq ($(CHECK),ON) - go vet ./$@ -else - go build -o /tmp/gobot_examples/$@ ./$@ -endif diff --git a/v2/version.go b/version.go similarity index 100% rename from v2/version.go rename to version.go