io: add note to i2c and spi about being deprecated
Add a link to https://periph.io/, which supports I²c and SPI on non-linux
platforms.
This project haven't been maintained for nearly two years now.
Change-Id: Ia1692809810037e87f43e31036c15d3643f6b569
Reviewed-on: https://go-review.googlesource.com/122485
Reviewed-by: Matt Aimonetti <mattaimonetti@gmail.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
diff --git a/io/i2c/i2c.go b/io/i2c/i2c.go
index 4dc273b..6507254 100644
--- a/io/i2c/i2c.go
+++ b/io/i2c/i2c.go
@@ -3,6 +3,11 @@
// license that can be found in the LICENSE file.
// Package i2c allows users to read from and write to a slave I2C device.
+//
+// Deprecated
+//
+// This package is not maintained anymore. An actively supported cross-platform
+// alternative is https://periph.io/.
package i2c // import "golang.org/x/exp/io/i2c"
import (
diff --git a/io/spi/spi.go b/io/spi/spi.go
index e351a57..f342cb3 100644
--- a/io/spi/spi.go
+++ b/io/spi/spi.go
@@ -3,6 +3,11 @@
// license that can be found in the LICENSE file.
// Package spi allows users to read from and write to an SPI device.
+//
+// Deprecated
+//
+// This package is not maintained anymore. An actively supported cross-platform
+// alternative is https://periph.io/.
package spi // import "golang.org/x/exp/io/spi"
import (