mirror of
https://github.com/tinygo-org/drivers.git
synced 2026-08-11 02:13:42 +00:00
all: switch to using custom domain for all drivers
Signed-off-by: Ron Evans <ron@hybridgroup.com>
This commit is contained in:
@@ -4,7 +4,7 @@ import (
|
||||
"machine"
|
||||
"time"
|
||||
|
||||
"github.com/tinygo-org/drivers/adxl345"
|
||||
"tinygo.org/x/drivers/adxl345"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
||||
@@ -6,7 +6,7 @@ import (
|
||||
"machine"
|
||||
"time"
|
||||
|
||||
"github.com/tinygo-org/drivers/apa102"
|
||||
"tinygo.org/x/drivers/apa102"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
||||
@@ -5,7 +5,7 @@ import (
|
||||
|
||||
"machine"
|
||||
|
||||
"github.com/tinygo-org/drivers/bh1750"
|
||||
"tinygo.org/x/drivers/bh1750"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
||||
@@ -6,7 +6,7 @@ import (
|
||||
"machine"
|
||||
"time"
|
||||
|
||||
"github.com/tinygo-org/drivers/blinkm"
|
||||
"tinygo.org/x/drivers/blinkm"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
||||
@@ -5,7 +5,7 @@ import (
|
||||
|
||||
"machine"
|
||||
|
||||
"github.com/tinygo-org/drivers/bmp180"
|
||||
"tinygo.org/x/drivers/bmp180"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
||||
@@ -3,7 +3,7 @@ package main
|
||||
import (
|
||||
"machine"
|
||||
|
||||
"github.com/tinygo-org/drivers/ds1307"
|
||||
"tinygo.org/x/drivers/ds1307"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
||||
@@ -4,7 +4,7 @@ import (
|
||||
"machine"
|
||||
"time"
|
||||
|
||||
"github.com/tinygo-org/drivers/ds1307"
|
||||
"tinygo.org/x/drivers/ds1307"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
||||
@@ -7,7 +7,7 @@ import (
|
||||
|
||||
"fmt"
|
||||
|
||||
"github.com/tinygo-org/drivers/ds3231"
|
||||
"tinygo.org/x/drivers/ds3231"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
||||
@@ -4,7 +4,7 @@ import (
|
||||
"machine"
|
||||
"time"
|
||||
|
||||
"github.com/tinygo-org/drivers/easystepper"
|
||||
"tinygo.org/x/drivers/easystepper"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
||||
@@ -13,7 +13,7 @@ import (
|
||||
"machine"
|
||||
"time"
|
||||
|
||||
"github.com/tinygo-org/drivers/espat"
|
||||
"tinygo.org/x/drivers/espat"
|
||||
)
|
||||
|
||||
// change actAsAP to true to act as an access point instead of connecting to one.
|
||||
|
||||
@@ -10,7 +10,7 @@ import (
|
||||
"machine"
|
||||
"time"
|
||||
|
||||
"github.com/tinygo-org/drivers/espat"
|
||||
"tinygo.org/x/drivers/espat"
|
||||
)
|
||||
|
||||
// change actAsAP to true to act as an access point instead of connecting to one.
|
||||
|
||||
@@ -10,7 +10,7 @@ import (
|
||||
"machine"
|
||||
"time"
|
||||
|
||||
"github.com/tinygo-org/drivers/espat"
|
||||
"tinygo.org/x/drivers/espat"
|
||||
)
|
||||
|
||||
// access point info
|
||||
|
||||
@@ -4,7 +4,7 @@ import (
|
||||
"fmt"
|
||||
"machine"
|
||||
|
||||
"github.com/tinygo-org/drivers/gps"
|
||||
"tinygo.org/x/drivers/gps"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
||||
@@ -4,7 +4,7 @@ import (
|
||||
"fmt"
|
||||
"machine"
|
||||
|
||||
"github.com/tinygo-org/drivers/gps"
|
||||
"tinygo.org/x/drivers/gps"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
||||
@@ -3,7 +3,7 @@ package main
|
||||
import (
|
||||
"machine"
|
||||
|
||||
"github.com/tinygo-org/drivers/hd44780"
|
||||
"tinygo.org/x/drivers/hd44780"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
||||
@@ -3,7 +3,7 @@ package main
|
||||
import (
|
||||
"machine"
|
||||
|
||||
"github.com/tinygo-org/drivers/hd44780"
|
||||
"tinygo.org/x/drivers/hd44780"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
||||
@@ -6,8 +6,8 @@ import (
|
||||
"image/color"
|
||||
"time"
|
||||
|
||||
"github.com/tinygo-org/drivers/examples/hub75/gopherimg"
|
||||
"github.com/tinygo-org/drivers/hub75"
|
||||
"tinygo.org/x/drivers/examples/hub75/gopherimg"
|
||||
"tinygo.org/x/drivers/hub75"
|
||||
)
|
||||
|
||||
var display hub75.Device
|
||||
|
||||
@@ -5,7 +5,7 @@ import (
|
||||
"machine"
|
||||
"time"
|
||||
|
||||
"github.com/tinygo-org/drivers/lis3dh"
|
||||
"tinygo.org/x/drivers/lis3dh"
|
||||
)
|
||||
|
||||
var i2c = machine.I2C1
|
||||
|
||||
@@ -5,7 +5,7 @@ import (
|
||||
"machine"
|
||||
"time"
|
||||
|
||||
"github.com/tinygo-org/drivers/mag3110"
|
||||
"tinygo.org/x/drivers/mag3110"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
||||
@@ -5,7 +5,7 @@ import (
|
||||
"math/rand"
|
||||
"time"
|
||||
|
||||
"github.com/tinygo-org/drivers/microbitmatrix"
|
||||
"tinygo.org/x/drivers/microbitmatrix"
|
||||
)
|
||||
|
||||
var display microbitmatrix.Device
|
||||
|
||||
@@ -5,7 +5,7 @@ import (
|
||||
"machine"
|
||||
"time"
|
||||
|
||||
"github.com/tinygo-org/drivers/mma8653"
|
||||
"tinygo.org/x/drivers/mma8653"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
||||
@@ -5,7 +5,7 @@ import (
|
||||
"machine"
|
||||
"time"
|
||||
|
||||
"github.com/tinygo-org/drivers/mpu6050"
|
||||
"tinygo.org/x/drivers/mpu6050"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
||||
@@ -4,8 +4,8 @@ import (
|
||||
"machine"
|
||||
"time"
|
||||
|
||||
"github.com/tinygo-org/drivers/examples/pcd8544/setbuffer/data"
|
||||
"github.com/tinygo-org/drivers/pcd8544"
|
||||
"tinygo.org/x/drivers/examples/pcd8544/setbuffer/data"
|
||||
"tinygo.org/x/drivers/pcd8544"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
||||
@@ -5,7 +5,7 @@ import (
|
||||
"machine"
|
||||
"time"
|
||||
|
||||
"github.com/tinygo-org/drivers/pcd8544"
|
||||
"tinygo.org/x/drivers/pcd8544"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
||||
@@ -5,7 +5,7 @@ import (
|
||||
"machine"
|
||||
"time"
|
||||
|
||||
"github.com/tinygo-org/drivers/sht3x"
|
||||
"tinygo.org/x/drivers/sht3x"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
||||
@@ -6,7 +6,7 @@ import (
|
||||
"image/color"
|
||||
"time"
|
||||
|
||||
"github.com/tinygo-org/drivers/ssd1306"
|
||||
"tinygo.org/x/drivers/ssd1306"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
||||
@@ -5,7 +5,7 @@ import (
|
||||
"machine"
|
||||
"time"
|
||||
|
||||
"github.com/tinygo-org/drivers/ssd1306"
|
||||
"tinygo.org/x/drivers/ssd1306"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
||||
@@ -6,7 +6,7 @@ import (
|
||||
"machine"
|
||||
"time"
|
||||
|
||||
"github.com/tinygo-org/drivers/thermistor"
|
||||
"tinygo.org/x/drivers/thermistor"
|
||||
)
|
||||
|
||||
const ADC_PIN = machine.TEMPSENSOR
|
||||
|
||||
@@ -5,7 +5,7 @@ import (
|
||||
|
||||
"time"
|
||||
|
||||
"github.com/tinygo-org/drivers/vl53v1x"
|
||||
"tinygo.org/x/drivers/vl53l1x"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
||||
@@ -7,7 +7,7 @@ import (
|
||||
|
||||
"time"
|
||||
|
||||
"github.com/tinygo-org/drivers/waveshare-epd/epd2in13"
|
||||
"tinygo.org/x/drivers/waveshare-epd/epd2in13"
|
||||
)
|
||||
|
||||
var display epd2in13.Device
|
||||
@@ -60,9 +60,9 @@ func main() {
|
||||
|
||||
// There are two memory areas in the display, once the display is refreshed, memory areas are auto-toggled.
|
||||
// DisplayRect needs to be called twice
|
||||
display.DisplayRect(40,83,48,83)
|
||||
display.DisplayRect(40, 83, 48, 83)
|
||||
display.WaitUntilIdle()
|
||||
display.DisplayRect(40,83,48,83)
|
||||
display.DisplayRect(40, 83, 48, 83)
|
||||
display.WaitUntilIdle()
|
||||
|
||||
println("You could remove power now")
|
||||
|
||||
@@ -5,7 +5,7 @@ import (
|
||||
|
||||
"image/color"
|
||||
|
||||
"github.com/tinygo-org/drivers/waveshare-epd/epd2in13x"
|
||||
"tinygo.org/x/drivers/waveshare-epd/epd2in13x"
|
||||
)
|
||||
|
||||
var display epd2in13x.Device
|
||||
|
||||
@@ -10,7 +10,7 @@ import (
|
||||
"machine"
|
||||
"time"
|
||||
|
||||
"github.com/tinygo-org/drivers/ws2812"
|
||||
"tinygo.org/x/drivers/ws2812"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
||||
Reference in New Issue
Block a user