all: switch to using custom domain for all drivers

Signed-off-by: Ron Evans <ron@hybridgroup.com>
This commit is contained in:
Ron Evans
2019-05-27 17:09:32 +02:00
committed by Ayke
parent 7757122598
commit c09f0a8075
62 changed files with 86 additions and 65 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ jobs:
build:
docker:
- image: tinygo/tinygo-dev
working_directory: /usr/local/go/src/github.com/tinygo-org/drivers
working_directory: /usr/local/go/src/tinygo.org/x/drivers
steps:
- checkout
- run: tinygo version
+2 -2
View File
@@ -8,7 +8,7 @@ This package provides a collection of hardware drivers for devices that can be u
## Installing
```shell
go get github.com/tinygo-org/drivers
go get tinygo.org/x/drivers
```
## How to use
@@ -23,7 +23,7 @@ import (
"machine"
"github.com/tinygo-org/drivers/bmp180"
"tinygo.org/x/drivers/bmp180"
)
func main() {
+1 -1
View File
@@ -4,7 +4,7 @@
//
// Datasheet JP: http://www.analog.com/media/jp/technical-documentation/data-sheets/ADXL345_jp.pdf
//
package adxl345
package adxl345 // import "tinygo.org/x/drivers/adxl345"
import (
"machine"
+1 -1
View File
@@ -1,7 +1,7 @@
// Package apa102 implements a driver for the APA102 SPI LED.
//
// Datasheet: https://cdn-shop.adafruit.com/product-files/2343/APA102C.pdf
package apa102
package apa102 // import "tinygo.org/x/drivers/apa102"
import (
"image/color"
+1 -1
View File
@@ -3,7 +3,7 @@
// Datasheet:
// https://www.mouser.com/ds/2/348/bh1750fvi-e-186247.pdf
//
package bh1750
package bh1750 // import "tinygo.org/x/drivers/bh1750"
import (
"time"
+1 -1
View File
@@ -1,7 +1,7 @@
// Package blinkm implements a driver for the BlinkM I2C RGB LED.
//
// Datasheet: http://thingm.com/fileadmin/thingm/downloads/BlinkM_datasheet.pdf
package blinkm
package blinkm // import "tinygo.org/x/drivers/blinkm"
import (
"machine"
+1 -1
View File
@@ -4,7 +4,7 @@
// Datasheet:
// https://cdn-shop.adafruit.com/datasheets/BST-BMP180-DS000-09.pdf
//
package bmp180
package bmp180 // import "tinygo.org/x/drivers/bmp180"
import (
"time"
+1 -1
View File
@@ -39,4 +39,4 @@
// there are no interdependencies in order to minimize the final size of compiled code that
// uses any of these drivers.
//
package drivers
package drivers // import "tinygo.org/x/drivers"
+6 -1
View File
@@ -1,4 +1,9 @@
package ds1307
// Package ds1307 provides a driver for the DS1307 RTC
//
// Datasheet:
// https://datasheets.maximintegrated.com/en/ds/DS1307.pdf
//
package ds1307 // import "tinygo.org/x/drivers/ds1307"
import (
"errors"
+1 -1
View File
@@ -2,7 +2,7 @@
//
// Datasheet:
// https://datasheets.maximintegrated.com/en/ds/DS3231.pdf
package ds3231
package ds3231 // import "tinygo.org/x/drivers/ds3231"
import (
"machine"
+1 -1
View File
@@ -1,5 +1,5 @@
// Simple driver to rotate a 4-wire stepper motor
package easystepper
package easystepper // import "tinygo.org/x/drivers/easystepper"
import (
"machine"
+1 -1
View File
@@ -16,7 +16,7 @@
// AT command set:
// https://www.espressif.com/sites/default/files/documentation/4a-esp8266_at_instruction_set_en.pdf
//
package espat
package espat // import "tinygo.org/x/drivers/espat"
import (
"machine"
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"machine"
"time"
"github.com/tinygo-org/drivers/adxl345"
"tinygo.org/x/drivers/adxl345"
)
func main() {
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"machine"
"time"
"github.com/tinygo-org/drivers/apa102"
"tinygo.org/x/drivers/apa102"
)
func main() {
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"machine"
"github.com/tinygo-org/drivers/bh1750"
"tinygo.org/x/drivers/bh1750"
)
func main() {
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"machine"
"time"
"github.com/tinygo-org/drivers/blinkm"
"tinygo.org/x/drivers/blinkm"
)
func main() {
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"machine"
"github.com/tinygo-org/drivers/bmp180"
"tinygo.org/x/drivers/bmp180"
)
func main() {
+1 -1
View File
@@ -3,7 +3,7 @@ package main
import (
"machine"
"github.com/tinygo-org/drivers/ds1307"
"tinygo.org/x/drivers/ds1307"
)
func main() {
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"machine"
"time"
"github.com/tinygo-org/drivers/ds1307"
"tinygo.org/x/drivers/ds1307"
)
func main() {
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"fmt"
"github.com/tinygo-org/drivers/ds3231"
"tinygo.org/x/drivers/ds3231"
)
func main() {
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"machine"
"time"
"github.com/tinygo-org/drivers/easystepper"
"tinygo.org/x/drivers/easystepper"
)
func main() {
+1 -1
View File
@@ -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.
+1 -1
View File
@@ -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.
+1 -1
View File
@@ -10,7 +10,7 @@ import (
"machine"
"time"
"github.com/tinygo-org/drivers/espat"
"tinygo.org/x/drivers/espat"
)
// access point info
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"fmt"
"machine"
"github.com/tinygo-org/drivers/gps"
"tinygo.org/x/drivers/gps"
)
func main() {
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"fmt"
"machine"
"github.com/tinygo-org/drivers/gps"
"tinygo.org/x/drivers/gps"
)
func main() {
+1 -1
View File
@@ -3,7 +3,7 @@ package main
import (
"machine"
"github.com/tinygo-org/drivers/hd44780"
"tinygo.org/x/drivers/hd44780"
)
func main() {
+1 -1
View File
@@ -3,7 +3,7 @@ package main
import (
"machine"
"github.com/tinygo-org/drivers/hd44780"
"tinygo.org/x/drivers/hd44780"
)
func main() {
+2 -2
View File
@@ -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
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"machine"
"time"
"github.com/tinygo-org/drivers/lis3dh"
"tinygo.org/x/drivers/lis3dh"
)
var i2c = machine.I2C1
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"machine"
"time"
"github.com/tinygo-org/drivers/mag3110"
"tinygo.org/x/drivers/mag3110"
)
func main() {
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"math/rand"
"time"
"github.com/tinygo-org/drivers/microbitmatrix"
"tinygo.org/x/drivers/microbitmatrix"
)
var display microbitmatrix.Device
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"machine"
"time"
"github.com/tinygo-org/drivers/mma8653"
"tinygo.org/x/drivers/mma8653"
)
func main() {
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"machine"
"time"
"github.com/tinygo-org/drivers/mpu6050"
"tinygo.org/x/drivers/mpu6050"
)
func main() {
+2 -2
View File
@@ -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() {
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"machine"
"time"
"github.com/tinygo-org/drivers/pcd8544"
"tinygo.org/x/drivers/pcd8544"
)
func main() {
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"machine"
"time"
"github.com/tinygo-org/drivers/sht3x"
"tinygo.org/x/drivers/sht3x"
)
func main() {
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"image/color"
"time"
"github.com/tinygo-org/drivers/ssd1306"
"tinygo.org/x/drivers/ssd1306"
)
func main() {
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"machine"
"time"
"github.com/tinygo-org/drivers/ssd1306"
"tinygo.org/x/drivers/ssd1306"
)
func main() {
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"machine"
"time"
"github.com/tinygo-org/drivers/thermistor"
"tinygo.org/x/drivers/thermistor"
)
const ADC_PIN = machine.TEMPSENSOR
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"time"
"github.com/tinygo-org/drivers/vl53v1x"
"tinygo.org/x/drivers/vl53l1x"
)
func main() {
+3 -3
View File
@@ -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")
+1 -1
View File
@@ -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
+1 -1
View File
@@ -10,7 +10,7 @@ import (
"machine"
"time"
"github.com/tinygo-org/drivers/ws2812"
"tinygo.org/x/drivers/ws2812"
)
func main() {
+1 -1
View File
@@ -1,5 +1,5 @@
// Package gps provides a driver for GPS receivers over UART and I2C
package gps
package gps // import "tinygo.org/x/drivers/gps"
import (
"encoding/hex"
+5 -1
View File
@@ -1,4 +1,8 @@
package hd44780
// Package lis3dh provides a driver for the HD44780 LCD controller.
//
// Datasheet: https://www.sparkfun.com/datasheets/LCD/HD44780.pdf
//
package hd44780 // import "tinygo.org/x/drivers/hd44780"
import (
"errors"
+2 -1
View File
@@ -2,7 +2,8 @@
//
// Guide: https://cdn-learn.adafruit.com/downloads/pdf/32x16-32x32-rgb-led-matrix.pdf
// This driver was inspired by https://github.com/2dom/PxMatrix
package hub75
//
package hub75 // import "tinygo.org/x/drivers/hub75"
import (
"image/color"
+2 -1
View File
@@ -1,7 +1,8 @@
// Package lis3dh provides a driver for the LIS3DH digital accelerometer.
//
// Datasheet: https://www.st.com/resource/en/datasheet/lis3dh.pdf
package lis3dh
//
package lis3dh // import "tinygo.org/x/drivers/lis3dh"
import (
"machine"
+2 -1
View File
@@ -2,7 +2,8 @@
// Freescale/NXP.
//
// Datasheet: https://www.nxp.com/docs/en/data-sheet/MAG3110.pdf
package mag3110
//
package mag3110 // import "tinygo.org/x/drivers/mag3110"
import (
"machine"
+2 -1
View File
@@ -1,7 +1,8 @@
// Package microbitmatrix implements a driver for the BBC micro:bit's LED matrix.
//
// Schematic: https://github.com/bbcmicrobit/hardware/blob/master/SCH_BBC-Microbit_V1.3B.pdf
package microbitmatrix
//
package microbitmatrix // import "tinygo.org/x/drivers/microbitmatrix"
import (
"image/color"
+2 -1
View File
@@ -3,7 +3,8 @@
//
// Datasheet:
// https://www.nxp.com/docs/en/data-sheet/MMA8653FC.pdf
package mma8653
//
package mma8653 // import "tinygo.org/x/drivers/mma8653"
import (
"machine"
+2 -1
View File
@@ -4,7 +4,8 @@
// Datasheets:
// https://store.invensense.com/datasheets/invensense/MPU-6050_DataSheet_V3%204.pdf
// https://www.invensense.com/wp-content/uploads/2015/02/MPU-6000-Register-Map1.pdf
package mpu6050
//
package mpu6050 // import "tinygo.org/x/drivers/mpu6050"
import (
"machine"
+2 -1
View File
@@ -1,7 +1,8 @@
// Package pcd8544 implements a driver for the PCD8544 48x84 pixels matrix LCD, used in Nokia's 5110 and 3310 phones.
//
// Datasheet: http://eia.udg.edu/~forest/PCD8544_1.pdf
package pcd8544
//
package pcd8544 // import "tinygo.org/x/drivers/pcd8544"
import (
"errors"
+1 -1
View File
@@ -4,7 +4,7 @@
// Datasheet:
// https://www.sensirion.com/fileadmin/user_upload/customers/sensirion/Dokumente/0_Datasheets/Humidity/Sensirion_Humidity_Sensors_SHT3x_Datasheet_digital.pdf
//
package sht3x
package sht3x // import "tinygo.org/x/drivers/sht3x"
import (
"machine"
+2 -1
View File
@@ -1,7 +1,8 @@
// Package ssd1306 implements a driver for the SSD1306 led matrix controller, it comes in various colors and screen sizes.
//
// Datasheet: https://cdn-shop.adafruit.com/datasheets/SSD1306.pdf
package ssd1306
//
package ssd1306 // import "tinygo.org/x/drivers/ssd1306"
import (
"errors"
+1 -1
View File
@@ -24,7 +24,7 @@
// sensor.NominalResistance = 10000
// sensor.HighSide = true
//
package thermistor
package thermistor // import "tinygo.org/x/drivers/thermistor"
import (
"machine"
+2 -1
View File
@@ -6,7 +6,8 @@
// This driver was based on the library https://github.com/pololu/vl53l1x-arduino
// and ST's VL53L1X API (STSW-IMG007)
// https://www.st.com/content/st_com/en/products/embedded-software/proximity-sensors-software/stsw-img007.html
package vl53l1x
//
package vl53l1x // import "tinygo.org/x/drivers/vl53l1x"
import (
"machine"
+1
View File
@@ -0,0 +1 @@
package waveshareepd // import "tinygo.org/x/drivers/waveshare-epd"
+2 -1
View File
@@ -1,7 +1,8 @@
// Package epd2in13 implements a driver for Waveshare 2.13in black and white e-paper device.
//
// Datasheet: https://www.waveshare.com/w/upload/e/e6/2.13inch_e-Paper_Datasheet.pdf
package epd2in13
//
package epd2in13 // import "tinygo.org/x/drivers/waveshare-epd/epd2in13"
import (
"errors"
+2 -1
View File
@@ -1,7 +1,8 @@
// Package epd2in13x implements a driver for Waveshare 2.13in (B & C versions) tri-color e-paper device.
//
// Datasheet: https://www.waveshare.com/w/upload/d/d3/2.13inch-e-paper-b-Specification.pdf
package epd2in13x
//
package epd2in13x // import "tinygo.org/x/drivers/waveshare-epd/epd2in13x"
import (
"errors"
+1 -1
View File
@@ -1,5 +1,5 @@
// Package ws2812 implements a driver for WS2812 and SK6812 RGB LED strips.
package ws2812
package ws2812 // import "tinygo.org/x/drivers/ws2812"
import (
"image/color"