Migrate to devices/v3

Ran:
  git ls-files -z -- . | xargs -0 -L 1 sed -i 's#periph\.io/x/conn#periph.io/x/conn/v3#g'
  git ls-files -z -- . | xargs -0 -L 1 sed -i 's#periph\.io/x/host#periph.io/x/host/v3#g'
  git ls-files -z -- . | xargs -0 -L 1 sed -i 's#periph\.io/x/devices#periph.io/x/devices/v3#g'
  go test ./...
  go mod tidy
pull/1/head
Marc-Antoine Ruel 5 years ago
parent 50dea9a963
commit 402bbcc930

@ -4,7 +4,7 @@
Documentation is at https://periph.io Documentation is at https://periph.io
[![PkgGoDev](https://pkg.go.dev/badge/periph.io/x/devices)](https://pkg.go.dev/periph.io/x/devices) [![PkgGoDev](https://pkg.go.dev/badge/periph.io/x/devices/v3)](https://pkg.go.dev/periph.io/x/devices/v3)
[![Coverage [![Coverage
Status](https://codecov.io/gh/periph/devices/graph/badge.svg)](https://codecov.io/gh/periph/devices) Status](https://codecov.io/gh/periph/devices/graph/badge.svg)](https://codecov.io/gh/periph/devices)
@ -22,9 +22,9 @@ package main
import ( import (
"time" "time"
"periph.io/x/conn/gpio" "periph.io/x/conn/v3/gpio"
"periph.io/x/host" "periph.io/x/host/v3"
"periph.io/x/host/rpi" "periph.io/x/host/v3/rpi"
) )
func main() { func main() {

@ -12,10 +12,10 @@ import (
"sync" "sync"
"time" "time"
"periph.io/x/conn/analog" "periph.io/x/conn/v3/analog"
"periph.io/x/conn/i2c" "periph.io/x/conn/v3/i2c"
"periph.io/x/conn/physic" "periph.io/x/conn/v3/physic"
"periph.io/x/conn/pin" "periph.io/x/conn/v3/pin"
) )
// I2CAddr is the default I2C address for the ADS1x15 components. // I2CAddr is the default I2C address for the ADS1x15 components.

@ -8,10 +8,10 @@ import (
"reflect" "reflect"
"testing" "testing"
"periph.io/x/conn/analog" "periph.io/x/conn/v3/analog"
"periph.io/x/conn/i2c/i2ctest" "periph.io/x/conn/v3/i2c/i2ctest"
"periph.io/x/conn/physic" "periph.io/x/conn/v3/physic"
"periph.io/x/conn/pin" "periph.io/x/conn/v3/pin"
) )
func TestChannel_String(t *testing.T) { func TestChannel_String(t *testing.T) {

@ -8,10 +8,10 @@ import (
"fmt" "fmt"
"log" "log"
"periph.io/x/conn/i2c/i2creg" "periph.io/x/conn/v3/i2c/i2creg"
"periph.io/x/conn/physic" "periph.io/x/conn/v3/physic"
"periph.io/x/devices/ads1x15" "periph.io/x/devices/v3/ads1x15"
"periph.io/x/host" "periph.io/x/host/v3"
) )
func Example() { func Example() {

@ -11,9 +11,9 @@ import (
"image/color" "image/color"
"image/draw" "image/draw"
"periph.io/x/conn/display" "periph.io/x/conn/v3/display"
"periph.io/x/conn/physic" "periph.io/x/conn/v3/physic"
"periph.io/x/conn/spi" "periph.io/x/conn/v3/spi"
) )
// ToRGB converts a slice of color.NRGBA to a byte stream of RGB pixels. // ToRGB converts a slice of color.NRGBA to a byte stream of RGB pixels.

@ -14,10 +14,10 @@ import (
"io/ioutil" "io/ioutil"
"testing" "testing"
"periph.io/x/conn/conntest" "periph.io/x/conn/v3/conntest"
"periph.io/x/conn/physic" "periph.io/x/conn/v3/physic"
"periph.io/x/conn/spi" "periph.io/x/conn/v3/spi"
"periph.io/x/conn/spi/spitest" "periph.io/x/conn/v3/spi/spitest"
) )
func TestRamp(t *testing.T) { func TestRamp(t *testing.T) {

@ -9,9 +9,9 @@ import (
"image/color" "image/color"
"log" "log"
"periph.io/x/conn/spi/spireg" "periph.io/x/conn/v3/spi/spireg"
"periph.io/x/devices/apa102" "periph.io/x/devices/v3/apa102"
"periph.io/x/host" "periph.io/x/host/v3"
) )
func Example() { func Example() {

@ -13,10 +13,10 @@ import (
"sync" "sync"
"time" "time"
"periph.io/x/conn" "periph.io/x/conn/v3"
"periph.io/x/conn/gpio" "periph.io/x/conn/v3/gpio"
"periph.io/x/conn/i2c" "periph.io/x/conn/v3/i2c"
"periph.io/x/conn/physic" "periph.io/x/conn/v3/physic"
) )
// Opts holds the configuration options. // Opts holds the configuration options.

@ -10,11 +10,11 @@ import (
"testing" "testing"
"time" "time"
"periph.io/x/conn/gpio" "periph.io/x/conn/v3/gpio"
"periph.io/x/conn/gpio/gpiotest" "periph.io/x/conn/v3/gpio/gpiotest"
"periph.io/x/conn/i2c" "periph.io/x/conn/v3/i2c"
"periph.io/x/conn/i2c/i2ctest" "periph.io/x/conn/v3/i2c/i2ctest"
"periph.io/x/conn/physic" "periph.io/x/conn/v3/physic"
) )
var defaultSensorTimeOut = time.Millisecond * 200 var defaultSensorTimeOut = time.Millisecond * 200

@ -9,11 +9,11 @@ import (
"log" "log"
"time" "time"
"periph.io/x/conn/physic" "periph.io/x/conn/v3/physic"
"periph.io/x/conn/i2c/i2creg" "periph.io/x/conn/v3/i2c/i2creg"
"periph.io/x/devices/as7262" "periph.io/x/devices/v3/as7262"
"periph.io/x/host" "periph.io/x/host/v3"
) )
func Example() { func Example() {

@ -7,8 +7,8 @@ package as7262
import ( import (
"time" "time"
"periph.io/x/conn/i2c/i2ctest" "periph.io/x/conn/v3/i2c/i2ctest"
"periph.io/x/conn/physic" "periph.io/x/conn/v3/physic"
) )
// Expected response from sensorTestCaseValidRead or // Expected response from sensorTestCaseValidRead or

@ -8,8 +8,8 @@ import (
"encoding/binary" "encoding/binary"
"time" "time"
"periph.io/x/conn/i2c" "periph.io/x/conn/v3/i2c"
"periph.io/x/conn/physic" "periph.io/x/conn/v3/physic"
) )
// I2CAddr i2c default address. // I2CAddr i2c default address.

@ -8,9 +8,9 @@ import (
"fmt" "fmt"
"log" "log"
"periph.io/x/conn/i2c/i2creg" "periph.io/x/conn/v3/i2c/i2creg"
"periph.io/x/devices/bh1750" "periph.io/x/devices/v3/bh1750"
"periph.io/x/host" "periph.io/x/host/v3"
) )
func Example() { func Example() {

@ -15,10 +15,10 @@ import (
"sync" "sync"
"time" "time"
"periph.io/x/conn/gpio" "periph.io/x/conn/v3/gpio"
"periph.io/x/conn/i2c" "periph.io/x/conn/v3/i2c"
"periph.io/x/conn/physic" "periph.io/x/conn/v3/physic"
"periph.io/x/host/cpu" "periph.io/x/host/v3/cpu"
) )
// SkipAddr can be used to skip the address from being sent. // SkipAddr can be used to skip the address from being sent.

@ -17,11 +17,11 @@ import (
"sync" "sync"
"time" "time"
"periph.io/x/conn" "periph.io/x/conn/v3"
"periph.io/x/conn/gpio" "periph.io/x/conn/v3/gpio"
"periph.io/x/conn/physic" "periph.io/x/conn/v3/physic"
"periph.io/x/conn/spi" "periph.io/x/conn/v3/spi"
"periph.io/x/host/cpu" "periph.io/x/host/v3/cpu"
) )
// NewSPI returns an spi.PortCloser that communicates SPI over 3 or 4 pins. // NewSPI returns an spi.PortCloser that communicates SPI over 3 or 4 pins.

@ -8,7 +8,7 @@ import (
"encoding/binary" "encoding/binary"
"time" "time"
"periph.io/x/conn/physic" "periph.io/x/conn/v3/physic"
) )
// sense180 reads the device's registers for bmp180. // sense180 reads the device's registers for bmp180.

@ -8,8 +8,8 @@ import (
"testing" "testing"
"time" "time"
"periph.io/x/conn/i2c/i2ctest" "periph.io/x/conn/v3/i2c/i2ctest"
"periph.io/x/conn/physic" "periph.io/x/conn/v3/physic"
) )
var opts180 = &Opts{Temperature: O1x, Pressure: O1x} var opts180 = &Opts{Temperature: O1x, Pressure: O1x}

@ -7,7 +7,7 @@ package bmxx80
import ( import (
"time" "time"
"periph.io/x/conn/physic" "periph.io/x/conn/v3/physic"
) )
// sense280 reads the device's registers for bme280/bmp280. // sense280 reads the device's registers for bme280/bmp280.

@ -13,11 +13,11 @@ import (
"testing" "testing"
"time" "time"
"periph.io/x/conn/conntest" "periph.io/x/conn/v3/conntest"
"periph.io/x/conn/i2c/i2ctest" "periph.io/x/conn/v3/i2c/i2ctest"
"periph.io/x/conn/physic" "periph.io/x/conn/v3/physic"
"periph.io/x/conn/spi" "periph.io/x/conn/v3/spi"
"periph.io/x/conn/spi/spitest" "periph.io/x/conn/v3/spi/spitest"
) )
// Real data extracted from a device. // Real data extracted from a device.

@ -12,14 +12,14 @@ import (
"flag" "flag"
"fmt" "fmt"
"periph.io/x/conn/i2c" "periph.io/x/conn/v3/i2c"
"periph.io/x/conn/i2c/i2creg" "periph.io/x/conn/v3/i2c/i2creg"
"periph.io/x/conn/i2c/i2ctest" "periph.io/x/conn/v3/i2c/i2ctest"
"periph.io/x/conn/physic" "periph.io/x/conn/v3/physic"
"periph.io/x/conn/spi" "periph.io/x/conn/v3/spi"
"periph.io/x/conn/spi/spireg" "periph.io/x/conn/v3/spi/spireg"
"periph.io/x/conn/spi/spitest" "periph.io/x/conn/v3/spi/spitest"
"periph.io/x/devices/bmxx80" "periph.io/x/devices/v3/bmxx80"
) )
// SmokeTest is imported by periph-smoketest. // SmokeTest is imported by periph-smoketest.

@ -13,11 +13,11 @@ import (
"sync" "sync"
"time" "time"
"periph.io/x/conn" "periph.io/x/conn/v3"
"periph.io/x/conn/i2c" "periph.io/x/conn/v3/i2c"
"periph.io/x/conn/mmr" "periph.io/x/conn/v3/mmr"
"periph.io/x/conn/physic" "periph.io/x/conn/v3/physic"
"periph.io/x/conn/spi" "periph.io/x/conn/v3/spi"
) )
// Oversampling affects how much time is taken to measure each of temperature, // Oversampling affects how much time is taken to measure each of temperature,

@ -8,10 +8,10 @@ import (
"fmt" "fmt"
"log" "log"
"periph.io/x/conn/i2c/i2creg" "periph.io/x/conn/v3/i2c/i2creg"
"periph.io/x/conn/physic" "periph.io/x/conn/v3/physic"
"periph.io/x/devices/bmxx80" "periph.io/x/devices/v3/bmxx80"
"periph.io/x/host" "periph.io/x/host/v3"
) )
func Example() { func Example() {

@ -41,10 +41,10 @@ import (
"strconv" "strconv"
"time" "time"
"periph.io/x/conn" "periph.io/x/conn/v3"
"periph.io/x/conn/gpio" "periph.io/x/conn/v3/gpio"
"periph.io/x/conn/i2c" "periph.io/x/conn/v3/i2c"
"periph.io/x/conn/mmr" "periph.io/x/conn/v3/mmr"
) )
// TouchStatus is the status of an input sensor. // TouchStatus is the status of an input sensor.

@ -7,7 +7,7 @@ package cap1xxx
import ( import (
"errors" "errors"
"periph.io/x/conn/gpio" "periph.io/x/conn/v3/gpio"
) )
// SamplingTime determines the time to make a single sample. // SamplingTime determines the time to make a single sample.

@ -13,8 +13,8 @@ import (
"testing" "testing"
"time" "time"
"periph.io/x/conn/i2c" "periph.io/x/conn/v3/i2c"
"periph.io/x/conn/i2c/i2ctest" "periph.io/x/conn/v3/i2c/i2ctest"
) )
func TestNewI2C(t *testing.T) { func TestNewI2C(t *testing.T) {

@ -8,10 +8,10 @@ import (
"fmt" "fmt"
"log" "log"
"periph.io/x/conn/gpio" "periph.io/x/conn/v3/gpio"
"periph.io/x/conn/gpio/gpioreg" "periph.io/x/conn/v3/gpio/gpioreg"
"periph.io/x/conn/i2c/i2creg" "periph.io/x/conn/v3/i2c/i2creg"
"periph.io/x/devices/cap1xxx" "periph.io/x/devices/v3/cap1xxx"
) )
func Example() { func Example() {

@ -7,10 +7,10 @@ package ccs811
import ( import (
"fmt" "fmt"
"periph.io/x/conn/physic" "periph.io/x/conn/v3/physic"
"periph.io/x/conn" "periph.io/x/conn/v3"
"periph.io/x/conn/i2c" "periph.io/x/conn/v3/i2c"
) )
// MeasurementMode represents different ways how data is read // MeasurementMode represents different ways how data is read

@ -8,8 +8,8 @@ import (
"fmt" "fmt"
"testing" "testing"
"periph.io/x/conn/i2c/i2ctest" "periph.io/x/conn/v3/i2c/i2ctest"
"periph.io/x/conn/physic" "periph.io/x/conn/v3/physic"
) )
func TestBasicInitialisationAndDataRead(t *testing.T) { func TestBasicInitialisationAndDataRead(t *testing.T) {

@ -8,9 +8,9 @@ import (
"errors" "errors"
"time" "time"
"periph.io/x/conn" "periph.io/x/conn/v3"
"periph.io/x/conn/onewire" "periph.io/x/conn/v3/onewire"
"periph.io/x/conn/physic" "periph.io/x/conn/v3/physic"
) )
// ConvertAll performs a conversion on all DS18B20 devices on the bus. // ConvertAll performs a conversion on all DS18B20 devices on the bus.

@ -9,9 +9,9 @@ import (
"testing" "testing"
"time" "time"
"periph.io/x/conn/onewire" "periph.io/x/conn/v3/onewire"
"periph.io/x/conn/onewire/onewiretest" "periph.io/x/conn/v3/onewire/onewiretest"
"periph.io/x/conn/physic" "periph.io/x/conn/v3/physic"
) )
func TestNew_fail_resolution(t *testing.T) { func TestNew_fail_resolution(t *testing.T) {

@ -10,9 +10,9 @@ import (
"sync" "sync"
"time" "time"
"periph.io/x/conn" "periph.io/x/conn/v3"
"periph.io/x/conn/i2c" "periph.io/x/conn/v3/i2c"
"periph.io/x/conn/onewire" "periph.io/x/conn/v3/onewire"
) )
// PupOhm controls the strength of the passive pull-up resistor // PupOhm controls the strength of the passive pull-up resistor

@ -8,7 +8,7 @@ import (
"testing" "testing"
"time" "time"
"periph.io/x/conn/i2c/i2ctest" "periph.io/x/conn/v3/i2c/i2ctest"
) )
func TestNew(t *testing.T) { func TestNew(t *testing.T) {

@ -8,9 +8,9 @@ import (
"fmt" "fmt"
"log" "log"
"periph.io/x/conn/i2c/i2creg" "periph.io/x/conn/v3/i2c/i2creg"
"periph.io/x/devices/ds248x" "periph.io/x/devices/v3/ds248x"
"periph.io/x/host" "periph.io/x/host/v3"
) )
func Example() { func Example() {

@ -12,14 +12,14 @@ import (
"image/draw" "image/draw"
"time" "time"
"periph.io/x/host/rpi" "periph.io/x/host/v3/rpi"
"periph.io/x/conn" "periph.io/x/conn/v3"
"periph.io/x/conn/display" "periph.io/x/conn/v3/display"
"periph.io/x/conn/gpio" "periph.io/x/conn/v3/gpio"
"periph.io/x/conn/physic" "periph.io/x/conn/v3/physic"
"periph.io/x/conn/spi" "periph.io/x/conn/v3/spi"
"periph.io/x/devices/ssd1306/image1bit" "periph.io/x/devices/v3/ssd1306/image1bit"
) )
// EPD commands // EPD commands

@ -8,12 +8,12 @@ import (
"image" "image"
"log" "log"
"periph.io/x/devices/epd" "periph.io/x/devices/v3/epd"
"periph.io/x/conn/spi/spireg" "periph.io/x/conn/v3/spi/spireg"
"periph.io/x/devices/ssd1306/image1bit" "periph.io/x/devices/v3/ssd1306/image1bit"
"periph.io/x/host" "periph.io/x/host/v3"
) )
func Example() { func Example() {

@ -1,8 +1,12 @@
module periph.io/x/devices // Copyright 2020 The Periph Authors. All rights reserved.
// Use of this source code is governed under the Apache License, Version 2.0
// that can be found in the LICENSE file.
module periph.io/x/devices/v3
go 1.13 go 1.13
require ( require (
periph.io/x/conn v0.0.0-20201229155756-6ef5117d7267 periph.io/x/conn/v3 v3.0.0-20201230174115-729c1fe5c4ae
periph.io/x/host v0.0.0-20201229164216-fc8f19009953 periph.io/x/host/v3 v3.0.0-20201230195025-17c4f529ff59
) )

@ -1,4 +1,4 @@
periph.io/x/conn v0.0.0-20201229155756-6ef5117d7267 h1:hE3SnWytl/gaEF70qlWN5YREopMsvsJB4vLkWXZKZQg= periph.io/x/conn/v3 v3.0.0-20201230174115-729c1fe5c4ae h1:wTeZT1kBDn3ddkpa9+bE3SXOlkD5JH7u0Cm2lqwHdkk=
periph.io/x/conn v0.0.0-20201229155756-6ef5117d7267/go.mod h1:vZTobURVlmlSmjJ8DuzqbsJRp3uKBP7zNVLM1/4FsI0= periph.io/x/conn/v3 v3.0.0-20201230174115-729c1fe5c4ae/go.mod h1:3OD27w9YVa5DS97VsUxsPGzD9Qrm5Ny7cF5b6xMMIWg=
periph.io/x/host v0.0.0-20201229164216-fc8f19009953 h1:6vXqvRUA2JXu7GGyrvF2Dtxku9UtvP8T/plngenvTXM= periph.io/x/host/v3 v3.0.0-20201230195025-17c4f529ff59 h1:yxGQoWZR/xGEf9EwEehv1D01kQY6NlORxS/xPEGeTrM=
periph.io/x/host v0.0.0-20201229164216-fc8f19009953/go.mod h1:atYip78qSi22Ngxlq4zWCMYTXvA1uJEqRvCPKsTKeI8= periph.io/x/host/v3 v3.0.0-20201230195025-17c4f529ff59/go.mod h1:3L/rTbv/CkEFDP0SUtgqzYIJCWF7H0AjctUlYtbEm8g=

@ -13,8 +13,8 @@ import (
"fmt" "fmt"
"time" "time"
"periph.io/x/conn" "periph.io/x/conn/v3"
"periph.io/x/conn/gpio" "periph.io/x/conn/v3/gpio"
) )
// lineTwo offset for the second line in the LCD buffer. // lineTwo offset for the second line in the LCD buffer.

@ -5,7 +5,7 @@
package ht16k33 package ht16k33
import ( import (
"periph.io/x/conn/i2c" "periph.io/x/conn/v3/i2c"
) )
var digitValues = map[rune]uint16{ var digitValues = map[rune]uint16{

@ -8,9 +8,9 @@ import (
"log" "log"
"time" "time"
"periph.io/x/conn/i2c/i2creg" "periph.io/x/conn/v3/i2c/i2creg"
"periph.io/x/devices/ht16k33" "periph.io/x/devices/v3/ht16k33"
"periph.io/x/host" "periph.io/x/host/v3"
) )
func Example() { func Example() {

@ -7,7 +7,7 @@ package ht16k33
import ( import (
"errors" "errors"
"periph.io/x/conn/i2c" "periph.io/x/conn/v3/i2c"
) )
// I2CAddr i2c default address. // I2CAddr i2c default address.

@ -15,9 +15,9 @@ import (
"sync" "sync"
"time" "time"
"periph.io/x/conn/analog" "periph.io/x/conn/v3/analog"
"periph.io/x/conn/gpio" "periph.io/x/conn/v3/gpio"
"periph.io/x/conn/pin" "periph.io/x/conn/v3/pin"
) )
var ( var (

@ -10,10 +10,10 @@ import (
"testing" "testing"
"time" "time"
"periph.io/x/conn/analog" "periph.io/x/conn/v3/analog"
"periph.io/x/conn/gpio" "periph.io/x/conn/v3/gpio"
"periph.io/x/conn/gpio/gpiotest" "periph.io/x/conn/v3/gpio/gpiotest"
"periph.io/x/conn/pin" "periph.io/x/conn/v3/pin"
) )
func TestNew(t *testing.T) { func TestNew(t *testing.T) {

@ -8,9 +8,9 @@ import (
"fmt" "fmt"
"log" "log"
"periph.io/x/conn/i2c/i2creg" "periph.io/x/conn/v3/i2c/i2creg"
"periph.io/x/devices/ina219" "periph.io/x/devices/v3/ina219"
"periph.io/x/host" "periph.io/x/host/v3"
) )
func Example() { func Example() {

@ -10,9 +10,9 @@ import (
"fmt" "fmt"
"sync" "sync"
"periph.io/x/conn/i2c" "periph.io/x/conn/v3/i2c"
"periph.io/x/conn/mmr" "periph.io/x/conn/v3/mmr"
"periph.io/x/conn/physic" "periph.io/x/conn/v3/physic"
) )
// Opts holds the configuration options. // Opts holds the configuration options.

@ -10,10 +10,10 @@ import (
"strings" "strings"
"testing" "testing"
"periph.io/x/conn/i2c" "periph.io/x/conn/v3/i2c"
"periph.io/x/conn/i2c/i2ctest" "periph.io/x/conn/v3/i2c/i2ctest"
"periph.io/x/conn/mmr" "periph.io/x/conn/v3/mmr"
"periph.io/x/conn/physic" "periph.io/x/conn/v3/physic"
) )
func TestNew(t *testing.T) { func TestNew(t *testing.T) {

@ -10,10 +10,10 @@ import (
"flag" "flag"
"fmt" "fmt"
"periph.io/x/conn/i2c/i2creg" "periph.io/x/conn/v3/i2c/i2creg"
"periph.io/x/conn/physic" "periph.io/x/conn/v3/physic"
"periph.io/x/devices/ina219" "periph.io/x/devices/v3/ina219"
"periph.io/x/host" "periph.io/x/host/v3"
) )
// SmokeTest is imported by periph-smoketest. // SmokeTest is imported by periph-smoketest.

@ -11,10 +11,10 @@ import (
"log" "log"
"os" "os"
"periph.io/x/conn/gpio/gpioreg" "periph.io/x/conn/v3/gpio/gpioreg"
"periph.io/x/conn/spi/spireg" "periph.io/x/conn/v3/spi/spireg"
"periph.io/x/devices/inky" "periph.io/x/devices/v3/inky"
"periph.io/x/host" "periph.io/x/host/v3"
) )
func Example() { func Example() {

@ -11,11 +11,11 @@ import (
"image/color" "image/color"
"time" "time"
"periph.io/x/conn" "periph.io/x/conn/v3"
"periph.io/x/conn/display" "periph.io/x/conn/v3/display"
"periph.io/x/conn/gpio" "periph.io/x/conn/v3/gpio"
"periph.io/x/conn/physic" "periph.io/x/conn/v3/physic"
"periph.io/x/conn/spi" "periph.io/x/conn/v3/spi"
) )
// Color is used to define which model of inky is being used, and also for // Color is used to define which model of inky is being used, and also for

@ -17,11 +17,11 @@ import (
"sync" "sync"
"time" "time"
"periph.io/x/conn" "periph.io/x/conn/v3"
"periph.io/x/conn/i2c" "periph.io/x/conn/v3/i2c"
"periph.io/x/conn/mmr" "periph.io/x/conn/v3/mmr"
"periph.io/x/conn/physic" "periph.io/x/conn/v3/physic"
"periph.io/x/devices/lepton/internal" "periph.io/x/devices/v3/lepton/internal"
) )
// StatusBit is the status as returned by the FLIR Lepton. // StatusBit is the status as returned by the FLIR Lepton.

@ -8,11 +8,11 @@ import (
"testing" "testing"
"time" "time"
"periph.io/x/conn/i2c" "periph.io/x/conn/v3/i2c"
"periph.io/x/conn/i2c/i2ctest" "periph.io/x/conn/v3/i2c/i2ctest"
"periph.io/x/conn/mmr" "periph.io/x/conn/v3/mmr"
"periph.io/x/conn/physic" "periph.io/x/conn/v3/physic"
"periph.io/x/devices/lepton/internal" "periph.io/x/devices/v3/lepton/internal"
) )
func TestStatusBit(t *testing.T) { func TestStatusBit(t *testing.T) {

@ -9,7 +9,7 @@ import (
"encoding/binary" "encoding/binary"
"time" "time"
"periph.io/x/conn/physic" "periph.io/x/conn/v3/physic"
) )
// Flag is used in FFCMode. // Flag is used in FFCMode.

@ -9,7 +9,7 @@ import (
"testing" "testing"
"time" "time"
"periph.io/x/conn/physic" "periph.io/x/conn/v3/physic"
) )
func TestDuration(t *testing.T) { func TestDuration(t *testing.T) {

@ -13,13 +13,13 @@ import (
"sync" "sync"
"time" "time"
"periph.io/x/conn" "periph.io/x/conn/v3"
"periph.io/x/conn/i2c" "periph.io/x/conn/v3/i2c"
"periph.io/x/conn/physic" "periph.io/x/conn/v3/physic"
"periph.io/x/conn/spi" "periph.io/x/conn/v3/spi"
"periph.io/x/devices/lepton/cci" "periph.io/x/devices/v3/lepton/cci"
"periph.io/x/devices/lepton/image14bit" "periph.io/x/devices/v3/lepton/image14bit"
"periph.io/x/devices/lepton/internal" "periph.io/x/devices/v3/lepton/internal"
) )
// Metadata is constructed from telemetry data, which is sent with each frame. // Metadata is constructed from telemetry data, which is sent with each frame.

@ -11,14 +11,14 @@ import (
"image" "image"
"testing" "testing"
"periph.io/x/conn" "periph.io/x/conn/v3"
"periph.io/x/conn/conntest" "periph.io/x/conn/v3/conntest"
"periph.io/x/conn/i2c/i2ctest" "periph.io/x/conn/v3/i2c/i2ctest"
"periph.io/x/conn/physic" "periph.io/x/conn/v3/physic"
"periph.io/x/conn/spi" "periph.io/x/conn/v3/spi"
"periph.io/x/conn/spi/spitest" "periph.io/x/conn/v3/spi/spitest"
"periph.io/x/devices/lepton/image14bit" "periph.io/x/devices/v3/lepton/image14bit"
"periph.io/x/devices/lepton/internal" "periph.io/x/devices/v3/lepton/internal"
) )
func TestNew_cs(t *testing.T) { func TestNew_cs(t *testing.T) {

@ -14,9 +14,9 @@ import (
"strings" "strings"
"sync" "sync"
"periph.io/x/conn" "periph.io/x/conn/v3"
"periph.io/x/conn/gpio/gpioreg" "periph.io/x/conn/v3/gpio/gpioreg"
"periph.io/x/conn/ir" "periph.io/x/conn/v3/ir"
) )
// New returns a IR receiver / emitter handle. // New returns a IR receiver / emitter handle.

@ -8,10 +8,10 @@ import (
"fmt" "fmt"
"log" "log"
"periph.io/x/conn/gpio" "periph.io/x/conn/v3/gpio"
"periph.io/x/conn/i2c/i2creg" "periph.io/x/conn/v3/i2c/i2creg"
"periph.io/x/devices/mcp23xxx" "periph.io/x/devices/v3/mcp23xxx"
"periph.io/x/host" "periph.io/x/host/v3"
) )
func Example() { func Example() {

@ -7,12 +7,12 @@ package mcp23xxx
import ( import (
"testing" "testing"
"periph.io/x/conn/conntest" "periph.io/x/conn/v3/conntest"
"periph.io/x/conn/gpio" "periph.io/x/conn/v3/gpio"
"periph.io/x/conn/gpio/gpioreg" "periph.io/x/conn/v3/gpio/gpioreg"
"periph.io/x/conn/i2c/i2ctest" "periph.io/x/conn/v3/i2c/i2ctest"
"periph.io/x/conn/spi" "periph.io/x/conn/v3/spi"
"periph.io/x/conn/spi/spitest" "periph.io/x/conn/v3/spi/spitest"
) )
func TestMCP23017_out(t *testing.T) { func TestMCP23017_out(t *testing.T) {

@ -8,9 +8,9 @@ import (
"fmt" "fmt"
"strconv" "strconv"
"periph.io/x/conn/gpio/gpioreg" "periph.io/x/conn/v3/gpio/gpioreg"
"periph.io/x/conn/i2c" "periph.io/x/conn/v3/i2c"
"periph.io/x/conn/spi" "periph.io/x/conn/v3/spi"
) )
// Dev his a handle for a configured MCP23xxx device. // Dev his a handle for a configured MCP23xxx device.

@ -9,9 +9,9 @@ import (
"strconv" "strconv"
"time" "time"
"periph.io/x/conn/gpio" "periph.io/x/conn/v3/gpio"
"periph.io/x/conn/physic" "periph.io/x/conn/v3/physic"
"periph.io/x/conn/pin" "periph.io/x/conn/v3/pin"
) )
// Pin extends gpio.PinIO interface with features supported by MCP23xxx devices. // Pin extends gpio.PinIO interface with features supported by MCP23xxx devices.

@ -5,8 +5,8 @@
package mcp23xxx package mcp23xxx
import ( import (
"periph.io/x/conn/i2c" "periph.io/x/conn/v3/i2c"
"periph.io/x/conn/spi" "periph.io/x/conn/v3/spi"
) )
type registerAccess interface { type registerAccess interface {

@ -8,10 +8,10 @@ import (
"fmt" "fmt"
"log" "log"
"periph.io/x/conn/i2c/i2creg" "periph.io/x/conn/v3/i2c/i2creg"
"periph.io/x/conn/physic" "periph.io/x/conn/v3/physic"
"periph.io/x/devices/mcp9808" "periph.io/x/devices/v3/mcp9808"
"periph.io/x/host" "periph.io/x/host/v3"
) )
func ExampleDev_SenseTemp() { func ExampleDev_SenseTemp() {

@ -10,10 +10,10 @@ import (
"sync" "sync"
"time" "time"
"periph.io/x/conn" "periph.io/x/conn/v3"
"periph.io/x/conn/i2c" "periph.io/x/conn/v3/i2c"
"periph.io/x/conn/mmr" "periph.io/x/conn/v3/mmr"
"periph.io/x/conn/physic" "periph.io/x/conn/v3/physic"
) )
// Opts holds the configuration options. // Opts holds the configuration options.

@ -10,10 +10,10 @@ import (
"testing" "testing"
"time" "time"
"periph.io/x/conn/i2c" "periph.io/x/conn/v3/i2c"
"periph.io/x/conn/i2c/i2ctest" "periph.io/x/conn/v3/i2c/i2ctest"
"periph.io/x/conn/mmr" "periph.io/x/conn/v3/mmr"
"periph.io/x/conn/physic" "periph.io/x/conn/v3/physic"
) )
func TestNew(t *testing.T) { func TestNew(t *testing.T) {

@ -10,9 +10,9 @@ import (
"flag" "flag"
"fmt" "fmt"
"periph.io/x/conn/i2c/i2creg" "periph.io/x/conn/v3/i2c/i2creg"
"periph.io/x/devices/mcp9808" "periph.io/x/devices/v3/mcp9808"
"periph.io/x/host" "periph.io/x/host/v3"
) )
// SmokeTest is imported by periph-smoketest. // SmokeTest is imported by periph-smoketest.

@ -8,9 +8,9 @@ import (
"fmt" "fmt"
"time" "time"
"periph.io/x/conn/gpio" "periph.io/x/conn/v3/gpio"
"periph.io/x/conn/physic" "periph.io/x/conn/v3/physic"
"periph.io/x/conn/spi" "periph.io/x/conn/v3/spi"
) )
// Card authentication status enum. // Card authentication status enum.

@ -10,11 +10,11 @@ import (
"reflect" "reflect"
"time" "time"
"periph.io/x/conn/spi/spireg" "periph.io/x/conn/v3/spi/spireg"
"periph.io/x/devices/mfrc522" "periph.io/x/devices/v3/mfrc522"
"periph.io/x/devices/mfrc522/commands" "periph.io/x/devices/v3/mfrc522/commands"
"periph.io/x/host" "periph.io/x/host/v3"
"periph.io/x/host/rpi" "periph.io/x/host/v3/rpi"
) )
func Example() { func Example() {
@ -23,7 +23,7 @@ func Example() {
log.Fatal(err) log.Fatal(err)
} }
// Using SPI as an example. See package "periph.io/x/conn/spi/spireg" for more details. // Using SPI as an example. See package "periph.io/x/conn/v3/spi/spireg" for more details.
p, err := spireg.Open("") p, err := spireg.Open("")
if err != nil { if err != nil {
log.Fatal(err) log.Fatal(err)
@ -109,7 +109,7 @@ func ExampleDev_ReadUID() {
log.Fatal(err) log.Fatal(err)
} }
// Using SPI as an example. See package "periph.io/x/conn/spi/spireg" for more details. // Using SPI as an example. See package "periph.io/x/conn/v3/spi/spireg" for more details.
p, err := spireg.Open("") p, err := spireg.Open("")
if err != nil { if err != nil {
log.Fatal(err) log.Fatal(err)

@ -14,10 +14,10 @@ import (
"sync" "sync"
"time" "time"
"periph.io/x/conn" "periph.io/x/conn/v3"
"periph.io/x/conn/gpio" "periph.io/x/conn/v3/gpio"
"periph.io/x/conn/spi" "periph.io/x/conn/v3/spi"
"periph.io/x/devices/mfrc522/commands" "periph.io/x/devices/v3/mfrc522/commands"
) )
// Dev is an handle to an MFRC522 RFID reader. // Dev is an handle to an MFRC522 RFID reader.

@ -15,7 +15,7 @@ import (
"math" "math"
"time" "time"
"periph.io/x/devices/mpu9250/reg" "periph.io/x/devices/v3/mpu9250/reg"
) )
const ( const (

@ -7,10 +7,10 @@ package mpu9250
import ( import (
"fmt" "fmt"
"periph.io/x/conn/gpio" "periph.io/x/conn/v3/gpio"
"periph.io/x/conn/physic" "periph.io/x/conn/v3/physic"
"periph.io/x/conn/spi" "periph.io/x/conn/v3/spi"
"periph.io/x/conn/spi/spireg" "periph.io/x/conn/v3/spi/spireg"
) )
// DebugF the debug function type. // DebugF the debug function type.

@ -11,11 +11,11 @@ import (
"image/color" "image/color"
"image/draw" "image/draw"
"periph.io/x/conn" "periph.io/x/conn/v3"
"periph.io/x/conn/display" "periph.io/x/conn/v3/display"
"periph.io/x/conn/gpio/gpiostream" "periph.io/x/conn/v3/gpio/gpiostream"
"periph.io/x/conn/physic" "periph.io/x/conn/v3/physic"
"periph.io/x/conn/spi" "periph.io/x/conn/v3/spi"
) )
// DefaultOpts is the recommended default options. // DefaultOpts is the recommended default options.

@ -13,10 +13,10 @@ import (
"io/ioutil" "io/ioutil"
"testing" "testing"
"periph.io/x/conn/conntest" "periph.io/x/conn/v3/conntest"
"periph.io/x/conn/physic" "periph.io/x/conn/v3/physic"
"periph.io/x/conn/spi" "periph.io/x/conn/v3/spi"
"periph.io/x/conn/spi/spitest" "periph.io/x/conn/v3/spi/spitest"
) )
// toRGB converts a slice of color.NRGBA to a byte stream of RGB pixels. // toRGB converts a slice of color.NRGBA to a byte stream of RGB pixels.

@ -10,9 +10,9 @@ import (
"image/color" "image/color"
"testing" "testing"
"periph.io/x/conn/gpio/gpiostream" "periph.io/x/conn/v3/gpio/gpiostream"
"periph.io/x/conn/gpio/gpiostream/gpiostreamtest" "periph.io/x/conn/v3/gpio/gpiostream/gpiostreamtest"
"periph.io/x/conn/physic" "periph.io/x/conn/v3/physic"
) )
func TestStream_NewBits_3(t *testing.T) { func TestStream_NewBits_3(t *testing.T) {

@ -9,10 +9,10 @@ import (
"strconv" "strconv"
"sync" "sync"
"periph.io/x/conn" "periph.io/x/conn/v3"
"periph.io/x/conn/i2c" "periph.io/x/conn/v3/i2c"
"periph.io/x/conn/i2c/i2creg" "periph.io/x/conn/v3/i2c/i2creg"
"periph.io/x/conn/physic" "periph.io/x/conn/v3/physic"
) )
// DefaultOpts is the recommended default options. // DefaultOpts is the recommended default options.

@ -8,10 +8,10 @@ import (
"strconv" "strconv"
"testing" "testing"
"periph.io/x/conn/i2c/i2creg" "periph.io/x/conn/v3/i2c/i2creg"
"periph.io/x/conn/i2c/i2ctest" "periph.io/x/conn/v3/i2c/i2ctest"
"periph.io/x/conn/physic" "periph.io/x/conn/v3/physic"
"periph.io/x/host" "periph.io/x/host/v3"
) )
func TestNew(t *testing.T) { func TestNew(t *testing.T) {

@ -7,10 +7,10 @@ package pca9685_test
import ( import (
"log" "log"
"periph.io/x/conn/i2c/i2creg" "periph.io/x/conn/v3/i2c/i2creg"
"periph.io/x/conn/physic" "periph.io/x/conn/v3/physic"
"periph.io/x/devices/pca9685" "periph.io/x/devices/v3/pca9685"
"periph.io/x/host" "periph.io/x/host/v3"
) )
func Example() { func Example() {

@ -8,9 +8,9 @@ import (
"fmt" "fmt"
"time" "time"
"periph.io/x/conn/gpio" "periph.io/x/conn/v3/gpio"
"periph.io/x/conn/i2c" "periph.io/x/conn/v3/i2c"
"periph.io/x/conn/physic" "periph.io/x/conn/v3/physic"
) )
// I2CAddr i2c default address. // I2CAddr i2c default address.

@ -7,10 +7,10 @@ package pca9685
import ( import (
"testing" "testing"
"periph.io/x/conn/gpio" "periph.io/x/conn/v3/gpio"
"periph.io/x/conn/gpio/gpioreg" "periph.io/x/conn/v3/gpio/gpioreg"
"periph.io/x/conn/i2c/i2ctest" "periph.io/x/conn/v3/i2c/i2ctest"
"periph.io/x/conn/physic" "periph.io/x/conn/v3/physic"
) )
func initializationSequence() []i2ctest.IO { func initializationSequence() []i2ctest.IO {

@ -9,10 +9,10 @@ import (
"fmt" "fmt"
"time" "time"
"periph.io/x/conn/gpio" "periph.io/x/conn/v3/gpio"
"periph.io/x/conn/gpio/gpioreg" "periph.io/x/conn/v3/gpio/gpioreg"
"periph.io/x/conn/physic" "periph.io/x/conn/v3/physic"
gpiopin "periph.io/x/conn/pin" gpiopin "periph.io/x/conn/v3/pin"
) )
const ( const (

@ -5,8 +5,8 @@
package pca9685 package pca9685
import ( import (
"periph.io/x/conn/gpio" "periph.io/x/conn/v3/gpio"
"periph.io/x/conn/physic" "periph.io/x/conn/v3/physic"
) )
// ServoGroup a group of servos connected to a pca9685 module // ServoGroup a group of servos connected to a pca9685 module

@ -21,7 +21,7 @@ import (
"io" "io"
"os" "os"
"periph.io/x/conn/gpio" "periph.io/x/conn/v3/gpio"
) )
// SetPWM enables and sets the PWM duty on a GPIO output pin via piblaster. // SetPWM enables and sets the PWM duty on a GPIO output pin via piblaster.

@ -14,11 +14,11 @@ import (
"syscall" "syscall"
"time" "time"
"periph.io/x/conn/gpio" "periph.io/x/conn/v3/gpio"
"periph.io/x/conn/physic" "periph.io/x/conn/v3/physic"
"periph.io/x/devices/apa102" "periph.io/x/devices/v3/apa102"
"periph.io/x/devices/rainbowhat" "periph.io/x/devices/v3/rainbowhat"
"periph.io/x/host" "periph.io/x/host/v3"
) )
func Example() { func Example() {

@ -5,13 +5,13 @@
package rainbowhat package rainbowhat
import ( import (
"periph.io/x/conn/gpio" "periph.io/x/conn/v3/gpio"
"periph.io/x/conn/i2c/i2creg" "periph.io/x/conn/v3/i2c/i2creg"
"periph.io/x/conn/spi/spireg" "periph.io/x/conn/v3/spi/spireg"
"periph.io/x/devices/apa102" "periph.io/x/devices/v3/apa102"
"periph.io/x/devices/bmxx80" "periph.io/x/devices/v3/bmxx80"
"periph.io/x/devices/ht16k33" "periph.io/x/devices/v3/ht16k33"
"periph.io/x/host/rpi" "periph.io/x/host/v3/rpi"
) )
// Dev represents a Rainbow HAT (https://shop.pimoroni.com/products/rainbow-hat-for-android-things) // Dev represents a Rainbow HAT (https://shop.pimoroni.com/products/rainbow-hat-for-android-things)

@ -8,9 +8,9 @@ import (
"log" "log"
"time" "time"
"periph.io/x/conn/i2c/i2creg" "periph.io/x/conn/v3/i2c/i2creg"
"periph.io/x/devices/sn3218" "periph.io/x/devices/v3/sn3218"
"periph.io/x/host" "periph.io/x/host/v3"
) )
func Example() { func Example() {

@ -7,7 +7,7 @@ package sn3218
import ( import (
"errors" "errors"
"periph.io/x/conn/i2c" "periph.io/x/conn/v3/i2c"
) )
const ( const (

@ -8,7 +8,7 @@ import (
"bytes" "bytes"
"testing" "testing"
"periph.io/x/conn/i2c/i2ctest" "periph.io/x/conn/v3/i2c/i2ctest"
) )
func setup() *i2ctest.Record { func setup() *i2ctest.Record {

@ -8,10 +8,10 @@ import (
"image" "image"
"log" "log"
"periph.io/x/conn/i2c/i2creg" "periph.io/x/conn/v3/i2c/i2creg"
"periph.io/x/devices/ssd1306" "periph.io/x/devices/v3/ssd1306"
"periph.io/x/devices/ssd1306/image1bit" "periph.io/x/devices/v3/ssd1306/image1bit"
"periph.io/x/host" "periph.io/x/host/v3"
) )
func Example() { func Example() {

@ -16,13 +16,13 @@ import (
"image/color" "image/color"
"image/draw" "image/draw"
"periph.io/x/conn" "periph.io/x/conn/v3"
"periph.io/x/conn/display" "periph.io/x/conn/v3/display"
"periph.io/x/conn/gpio" "periph.io/x/conn/v3/gpio"
"periph.io/x/conn/i2c" "periph.io/x/conn/v3/i2c"
"periph.io/x/conn/physic" "periph.io/x/conn/v3/physic"
"periph.io/x/conn/spi" "periph.io/x/conn/v3/spi"
"periph.io/x/devices/ssd1306/image1bit" "periph.io/x/devices/v3/ssd1306/image1bit"
) )
const ( const (

@ -11,14 +11,14 @@ import (
"image/color" "image/color"
"testing" "testing"
"periph.io/x/conn/conntest" "periph.io/x/conn/v3/conntest"
"periph.io/x/conn/gpio" "periph.io/x/conn/v3/gpio"
"periph.io/x/conn/gpio/gpiotest" "periph.io/x/conn/v3/gpio/gpiotest"
"periph.io/x/conn/i2c/i2ctest" "periph.io/x/conn/v3/i2c/i2ctest"
"periph.io/x/conn/physic" "periph.io/x/conn/v3/physic"
"periph.io/x/conn/spi" "periph.io/x/conn/v3/spi"
"periph.io/x/conn/spi/spitest" "periph.io/x/conn/v3/spi/spitest"
"periph.io/x/devices/ssd1306/image1bit" "periph.io/x/devices/v3/ssd1306/image1bit"
) )
func TestNewI2C_fail(t *testing.T) { func TestNewI2C_fail(t *testing.T) {

@ -17,16 +17,16 @@ import (
"image/gif" "image/gif"
"time" "time"
"periph.io/x/conn/gpio" "periph.io/x/conn/v3/gpio"
"periph.io/x/conn/gpio/gpioreg" "periph.io/x/conn/v3/gpio/gpioreg"
"periph.io/x/conn/i2c" "periph.io/x/conn/v3/i2c"
"periph.io/x/conn/i2c/i2creg" "periph.io/x/conn/v3/i2c/i2creg"
"periph.io/x/conn/i2c/i2ctest" "periph.io/x/conn/v3/i2c/i2ctest"
"periph.io/x/conn/spi" "periph.io/x/conn/v3/spi"
"periph.io/x/conn/spi/spireg" "periph.io/x/conn/v3/spi/spireg"
"periph.io/x/conn/spi/spitest" "periph.io/x/conn/v3/spi/spitest"
"periph.io/x/devices/ssd1306" "periph.io/x/devices/v3/ssd1306"
"periph.io/x/devices/ssd1306/image1bit" "periph.io/x/devices/v3/ssd1306/image1bit"
) )
// SmokeTest is imported by periph-smoketest. // SmokeTest is imported by periph-smoketest.

@ -18,10 +18,10 @@ import (
"syscall" "syscall"
"time" "time"
"periph.io/x/conn/gpio/gpioreg" "periph.io/x/conn/v3/gpio/gpioreg"
"periph.io/x/conn/spi/spireg" "periph.io/x/conn/v3/spi/spireg"
"periph.io/x/devices/st7567" "periph.io/x/devices/v3/st7567"
"periph.io/x/host" "periph.io/x/host/v3"
) )
func Example() { func Example() {

@ -16,10 +16,10 @@ import (
"strings" "strings"
"time" "time"
"periph.io/x/conn" "periph.io/x/conn/v3"
"periph.io/x/conn/gpio" "periph.io/x/conn/v3/gpio"
"periph.io/x/conn/physic" "periph.io/x/conn/v3/physic"
"periph.io/x/conn/spi" "periph.io/x/conn/v3/spi"
) )
const ( const (

@ -8,10 +8,10 @@ import (
"fmt" "fmt"
"log" "log"
"periph.io/x/conn/i2c/i2creg" "periph.io/x/conn/v3/i2c/i2creg"
"periph.io/x/conn/physic" "periph.io/x/conn/v3/physic"
"periph.io/x/devices/tlv493d" "periph.io/x/devices/v3/tlv493d"
"periph.io/x/host" "periph.io/x/host/v3"
) )
func Example() { func Example() {

@ -10,8 +10,8 @@ import (
"sync" "sync"
"time" "time"
"periph.io/x/conn/i2c" "periph.io/x/conn/v3/i2c"
"periph.io/x/conn/physic" "periph.io/x/conn/v3/physic"
) )
// I2CAddr is the default I2C address for the TLV493D component. // I2CAddr is the default I2C address for the TLV493D component.

@ -7,8 +7,8 @@ package tlv493d
import ( import (
"testing" "testing"
"periph.io/x/conn/i2c/i2ctest" "periph.io/x/conn/v3/i2c/i2ctest"
"periph.io/x/conn/physic" "periph.io/x/conn/v3/physic"
) )
func TestDev_String(t *testing.T) { func TestDev_String(t *testing.T) {

@ -7,9 +7,9 @@ package tm1637_test
import ( import (
"log" "log"
"periph.io/x/conn/gpio/gpioreg" "periph.io/x/conn/v3/gpio/gpioreg"
"periph.io/x/devices/tm1637" "periph.io/x/devices/v3/tm1637"
"periph.io/x/host" "periph.io/x/host/v3"
) )
func Example() { func Example() {

@ -10,9 +10,9 @@ import (
"runtime" "runtime"
"time" "time"
"periph.io/x/conn" "periph.io/x/conn/v3"
"periph.io/x/conn/gpio" "periph.io/x/conn/v3/gpio"
"periph.io/x/host/cpu" "periph.io/x/host/v3/cpu"
) )
// Clock converts time to a slice of bytes as segments. // Clock converts time to a slice of bytes as segments.

@ -11,8 +11,8 @@ import (
"testing" "testing"
"time" "time"
"periph.io/x/conn/gpio" "periph.io/x/conn/v3/gpio"
"periph.io/x/conn/gpio/gpiotest" "periph.io/x/conn/v3/gpio/gpiotest"
) )
func TestNew(t *testing.T) { func TestNew(t *testing.T) {

@ -11,9 +11,9 @@ import (
"image/color" "image/color"
"image/draw" "image/draw"
"periph.io/x/conn/display" "periph.io/x/conn/v3/display"
"periph.io/x/conn/physic" "periph.io/x/conn/v3/physic"
"periph.io/x/conn/spi" "periph.io/x/conn/v3/spi"
) )
const ( const (

@ -11,9 +11,9 @@ import (
"image/color" "image/color"
"testing" "testing"
"periph.io/x/conn/physic" "periph.io/x/conn/v3/physic"
"periph.io/x/conn/spi" "periph.io/x/conn/v3/spi"
"periph.io/x/conn/spi/spitest" "periph.io/x/conn/v3/spi/spitest"
) )
func TestNewFailsWhenConnectionToSpiFails(t *testing.T) { func TestNewFailsWhenConnectionToSpiFails(t *testing.T) {

Loading…
Cancel
Save