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: build:
docker: docker:
- image: tinygo/tinygo-dev - 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: steps:
- checkout - checkout
- run: tinygo version - 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 ## Installing
```shell ```shell
go get github.com/tinygo-org/drivers go get tinygo.org/x/drivers
``` ```
## How to use ## How to use
@@ -23,7 +23,7 @@ import (
"machine" "machine"
"github.com/tinygo-org/drivers/bmp180" "tinygo.org/x/drivers/bmp180"
) )
func main() { 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 // 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 ( import (
"machine" "machine"
+1 -1
View File
@@ -1,7 +1,7 @@
// Package apa102 implements a driver for the APA102 SPI LED. // Package apa102 implements a driver for the APA102 SPI LED.
// //
// Datasheet: https://cdn-shop.adafruit.com/product-files/2343/APA102C.pdf // Datasheet: https://cdn-shop.adafruit.com/product-files/2343/APA102C.pdf
package apa102 package apa102 // import "tinygo.org/x/drivers/apa102"
import ( import (
"image/color" "image/color"
+1 -1
View File
@@ -3,7 +3,7 @@
// Datasheet: // Datasheet:
// https://www.mouser.com/ds/2/348/bh1750fvi-e-186247.pdf // https://www.mouser.com/ds/2/348/bh1750fvi-e-186247.pdf
// //
package bh1750 package bh1750 // import "tinygo.org/x/drivers/bh1750"
import ( import (
"time" "time"
+1 -1
View File
@@ -1,7 +1,7 @@
// Package blinkm implements a driver for the BlinkM I2C RGB LED. // Package blinkm implements a driver for the BlinkM I2C RGB LED.
// //
// Datasheet: http://thingm.com/fileadmin/thingm/downloads/BlinkM_datasheet.pdf // Datasheet: http://thingm.com/fileadmin/thingm/downloads/BlinkM_datasheet.pdf
package blinkm package blinkm // import "tinygo.org/x/drivers/blinkm"
import ( import (
"machine" "machine"
+1 -1
View File
@@ -4,7 +4,7 @@
// Datasheet: // Datasheet:
// https://cdn-shop.adafruit.com/datasheets/BST-BMP180-DS000-09.pdf // https://cdn-shop.adafruit.com/datasheets/BST-BMP180-DS000-09.pdf
// //
package bmp180 package bmp180 // import "tinygo.org/x/drivers/bmp180"
import ( import (
"time" "time"
+1 -1
View File
@@ -39,4 +39,4 @@
// there are no interdependencies in order to minimize the final size of compiled code that // there are no interdependencies in order to minimize the final size of compiled code that
// uses any of these drivers. // 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 ( import (
"errors" "errors"
+1 -1
View File
@@ -2,7 +2,7 @@
// //
// Datasheet: // Datasheet:
// https://datasheets.maximintegrated.com/en/ds/DS3231.pdf // https://datasheets.maximintegrated.com/en/ds/DS3231.pdf
package ds3231 package ds3231 // import "tinygo.org/x/drivers/ds3231"
import ( import (
"machine" "machine"
+1 -1
View File
@@ -1,5 +1,5 @@
// Simple driver to rotate a 4-wire stepper motor // Simple driver to rotate a 4-wire stepper motor
package easystepper package easystepper // import "tinygo.org/x/drivers/easystepper"
import ( import (
"machine" "machine"
+1 -1
View File
@@ -16,7 +16,7 @@
// AT command set: // AT command set:
// https://www.espressif.com/sites/default/files/documentation/4a-esp8266_at_instruction_set_en.pdf // 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 ( import (
"machine" "machine"
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"machine" "machine"
"time" "time"
"github.com/tinygo-org/drivers/adxl345" "tinygo.org/x/drivers/adxl345"
) )
func main() { func main() {
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"machine" "machine"
"time" "time"
"github.com/tinygo-org/drivers/apa102" "tinygo.org/x/drivers/apa102"
) )
func main() { func main() {
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"machine" "machine"
"github.com/tinygo-org/drivers/bh1750" "tinygo.org/x/drivers/bh1750"
) )
func main() { func main() {
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"machine" "machine"
"time" "time"
"github.com/tinygo-org/drivers/blinkm" "tinygo.org/x/drivers/blinkm"
) )
func main() { func main() {
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"machine" "machine"
"github.com/tinygo-org/drivers/bmp180" "tinygo.org/x/drivers/bmp180"
) )
func main() { func main() {
+1 -1
View File
@@ -3,7 +3,7 @@ package main
import ( import (
"machine" "machine"
"github.com/tinygo-org/drivers/ds1307" "tinygo.org/x/drivers/ds1307"
) )
func main() { func main() {
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"machine" "machine"
"time" "time"
"github.com/tinygo-org/drivers/ds1307" "tinygo.org/x/drivers/ds1307"
) )
func main() { func main() {
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"fmt" "fmt"
"github.com/tinygo-org/drivers/ds3231" "tinygo.org/x/drivers/ds3231"
) )
func main() { func main() {
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"machine" "machine"
"time" "time"
"github.com/tinygo-org/drivers/easystepper" "tinygo.org/x/drivers/easystepper"
) )
func main() { func main() {
+1 -1
View File
@@ -13,7 +13,7 @@ import (
"machine" "machine"
"time" "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. // 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" "machine"
"time" "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. // 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" "machine"
"time" "time"
"github.com/tinygo-org/drivers/espat" "tinygo.org/x/drivers/espat"
) )
// access point info // access point info
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"fmt" "fmt"
"machine" "machine"
"github.com/tinygo-org/drivers/gps" "tinygo.org/x/drivers/gps"
) )
func main() { func main() {
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"fmt" "fmt"
"machine" "machine"
"github.com/tinygo-org/drivers/gps" "tinygo.org/x/drivers/gps"
) )
func main() { func main() {
+1 -1
View File
@@ -3,7 +3,7 @@ package main
import ( import (
"machine" "machine"
"github.com/tinygo-org/drivers/hd44780" "tinygo.org/x/drivers/hd44780"
) )
func main() { func main() {
+1 -1
View File
@@ -3,7 +3,7 @@ package main
import ( import (
"machine" "machine"
"github.com/tinygo-org/drivers/hd44780" "tinygo.org/x/drivers/hd44780"
) )
func main() { func main() {
+2 -2
View File
@@ -6,8 +6,8 @@ import (
"image/color" "image/color"
"time" "time"
"github.com/tinygo-org/drivers/examples/hub75/gopherimg" "tinygo.org/x/drivers/examples/hub75/gopherimg"
"github.com/tinygo-org/drivers/hub75" "tinygo.org/x/drivers/hub75"
) )
var display hub75.Device var display hub75.Device
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"machine" "machine"
"time" "time"
"github.com/tinygo-org/drivers/lis3dh" "tinygo.org/x/drivers/lis3dh"
) )
var i2c = machine.I2C1 var i2c = machine.I2C1
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"machine" "machine"
"time" "time"
"github.com/tinygo-org/drivers/mag3110" "tinygo.org/x/drivers/mag3110"
) )
func main() { func main() {
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"math/rand" "math/rand"
"time" "time"
"github.com/tinygo-org/drivers/microbitmatrix" "tinygo.org/x/drivers/microbitmatrix"
) )
var display microbitmatrix.Device var display microbitmatrix.Device
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"machine" "machine"
"time" "time"
"github.com/tinygo-org/drivers/mma8653" "tinygo.org/x/drivers/mma8653"
) )
func main() { func main() {
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"machine" "machine"
"time" "time"
"github.com/tinygo-org/drivers/mpu6050" "tinygo.org/x/drivers/mpu6050"
) )
func main() { func main() {
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"machine" "machine"
"time" "time"
"github.com/tinygo-org/drivers/examples/pcd8544/setbuffer/data" "tinygo.org/x/drivers/examples/pcd8544/setbuffer/data"
"github.com/tinygo-org/drivers/pcd8544" "tinygo.org/x/drivers/pcd8544"
) )
func main() { func main() {
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"machine" "machine"
"time" "time"
"github.com/tinygo-org/drivers/pcd8544" "tinygo.org/x/drivers/pcd8544"
) )
func main() { func main() {
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"machine" "machine"
"time" "time"
"github.com/tinygo-org/drivers/sht3x" "tinygo.org/x/drivers/sht3x"
) )
func main() { func main() {
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"image/color" "image/color"
"time" "time"
"github.com/tinygo-org/drivers/ssd1306" "tinygo.org/x/drivers/ssd1306"
) )
func main() { func main() {
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"machine" "machine"
"time" "time"
"github.com/tinygo-org/drivers/ssd1306" "tinygo.org/x/drivers/ssd1306"
) )
func main() { func main() {
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"machine" "machine"
"time" "time"
"github.com/tinygo-org/drivers/thermistor" "tinygo.org/x/drivers/thermistor"
) )
const ADC_PIN = machine.TEMPSENSOR const ADC_PIN = machine.TEMPSENSOR
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"time" "time"
"github.com/tinygo-org/drivers/vl53v1x" "tinygo.org/x/drivers/vl53l1x"
) )
func main() { func main() {
+3 -3
View File
@@ -7,7 +7,7 @@ import (
"time" "time"
"github.com/tinygo-org/drivers/waveshare-epd/epd2in13" "tinygo.org/x/drivers/waveshare-epd/epd2in13"
) )
var display epd2in13.Device 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. // There are two memory areas in the display, once the display is refreshed, memory areas are auto-toggled.
// DisplayRect needs to be called twice // DisplayRect needs to be called twice
display.DisplayRect(40,83,48,83) display.DisplayRect(40, 83, 48, 83)
display.WaitUntilIdle() display.WaitUntilIdle()
display.DisplayRect(40,83,48,83) display.DisplayRect(40, 83, 48, 83)
display.WaitUntilIdle() display.WaitUntilIdle()
println("You could remove power now") println("You could remove power now")
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"image/color" "image/color"
"github.com/tinygo-org/drivers/waveshare-epd/epd2in13x" "tinygo.org/x/drivers/waveshare-epd/epd2in13x"
) )
var display epd2in13x.Device var display epd2in13x.Device
+1 -1
View File
@@ -10,7 +10,7 @@ import (
"machine" "machine"
"time" "time"
"github.com/tinygo-org/drivers/ws2812" "tinygo.org/x/drivers/ws2812"
) )
func main() { func main() {
+1 -1
View File
@@ -1,5 +1,5 @@
// Package gps provides a driver for GPS receivers over UART and I2C // Package gps provides a driver for GPS receivers over UART and I2C
package gps package gps // import "tinygo.org/x/drivers/gps"
import ( import (
"encoding/hex" "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 ( import (
"errors" "errors"
+2 -1
View File
@@ -2,7 +2,8 @@
// //
// Guide: https://cdn-learn.adafruit.com/downloads/pdf/32x16-32x32-rgb-led-matrix.pdf // Guide: https://cdn-learn.adafruit.com/downloads/pdf/32x16-32x32-rgb-led-matrix.pdf
// This driver was inspired by https://github.com/2dom/PxMatrix // This driver was inspired by https://github.com/2dom/PxMatrix
package hub75 //
package hub75 // import "tinygo.org/x/drivers/hub75"
import ( import (
"image/color" "image/color"
+2 -1
View File
@@ -1,7 +1,8 @@
// Package lis3dh provides a driver for the LIS3DH digital accelerometer. // Package lis3dh provides a driver for the LIS3DH digital accelerometer.
// //
// Datasheet: https://www.st.com/resource/en/datasheet/lis3dh.pdf // Datasheet: https://www.st.com/resource/en/datasheet/lis3dh.pdf
package lis3dh //
package lis3dh // import "tinygo.org/x/drivers/lis3dh"
import ( import (
"machine" "machine"
+2 -1
View File
@@ -2,7 +2,8 @@
// Freescale/NXP. // Freescale/NXP.
// //
// Datasheet: https://www.nxp.com/docs/en/data-sheet/MAG3110.pdf // Datasheet: https://www.nxp.com/docs/en/data-sheet/MAG3110.pdf
package mag3110 //
package mag3110 // import "tinygo.org/x/drivers/mag3110"
import ( import (
"machine" "machine"
+2 -1
View File
@@ -1,7 +1,8 @@
// Package microbitmatrix implements a driver for the BBC micro:bit's LED matrix. // 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 // 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 ( import (
"image/color" "image/color"
+2 -1
View File
@@ -3,7 +3,8 @@
// //
// Datasheet: // Datasheet:
// https://www.nxp.com/docs/en/data-sheet/MMA8653FC.pdf // https://www.nxp.com/docs/en/data-sheet/MMA8653FC.pdf
package mma8653 //
package mma8653 // import "tinygo.org/x/drivers/mma8653"
import ( import (
"machine" "machine"
+2 -1
View File
@@ -4,7 +4,8 @@
// Datasheets: // Datasheets:
// https://store.invensense.com/datasheets/invensense/MPU-6050_DataSheet_V3%204.pdf // 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 // 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 ( import (
"machine" "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. // 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 // Datasheet: http://eia.udg.edu/~forest/PCD8544_1.pdf
package pcd8544 //
package pcd8544 // import "tinygo.org/x/drivers/pcd8544"
import ( import (
"errors" "errors"
+1 -1
View File
@@ -4,7 +4,7 @@
// Datasheet: // Datasheet:
// https://www.sensirion.com/fileadmin/user_upload/customers/sensirion/Dokumente/0_Datasheets/Humidity/Sensirion_Humidity_Sensors_SHT3x_Datasheet_digital.pdf // 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 ( import (
"machine" "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. // 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 // Datasheet: https://cdn-shop.adafruit.com/datasheets/SSD1306.pdf
package ssd1306 //
package ssd1306 // import "tinygo.org/x/drivers/ssd1306"
import ( import (
"errors" "errors"
+1 -1
View File
@@ -24,7 +24,7 @@
// sensor.NominalResistance = 10000 // sensor.NominalResistance = 10000
// sensor.HighSide = true // sensor.HighSide = true
// //
package thermistor package thermistor // import "tinygo.org/x/drivers/thermistor"
import ( import (
"machine" "machine"
+2 -1
View File
@@ -6,7 +6,8 @@
// This driver was based on the library https://github.com/pololu/vl53l1x-arduino // This driver was based on the library https://github.com/pololu/vl53l1x-arduino
// and ST's VL53L1X API (STSW-IMG007) // and ST's VL53L1X API (STSW-IMG007)
// https://www.st.com/content/st_com/en/products/embedded-software/proximity-sensors-software/stsw-img007.html // 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 ( import (
"machine" "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. // 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 // 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 ( import (
"errors" "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. // 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 // 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 ( import (
"errors" "errors"
+1 -1
View File
@@ -1,5 +1,5 @@
// Package ws2812 implements a driver for WS2812 and SK6812 RGB LED strips. // Package ws2812 implements a driver for WS2812 and SK6812 RGB LED strips.
package ws2812 package ws2812 // import "tinygo.org/x/drivers/ws2812"
import ( import (
"image/color" "image/color"