diff --git a/.circleci/config.yml b/.circleci/config.yml index 65fb7a9..31f38d9 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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 diff --git a/README.md b/README.md index 1bed8e4..7624842 100644 --- a/README.md +++ b/README.md @@ -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() { diff --git a/adxl345/adxl345.go b/adxl345/adxl345.go index fe8d324..ba28005 100644 --- a/adxl345/adxl345.go +++ b/adxl345/adxl345.go @@ -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" diff --git a/apa102/apa102.go b/apa102/apa102.go index 4e282e5..e319db2 100644 --- a/apa102/apa102.go +++ b/apa102/apa102.go @@ -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" diff --git a/bh1750/bh1750.go b/bh1750/bh1750.go index 0f7783f..e5ee008 100644 --- a/bh1750/bh1750.go +++ b/bh1750/bh1750.go @@ -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" diff --git a/blinkm/blinkm.go b/blinkm/blinkm.go index 667af2c..4a800e7 100644 --- a/blinkm/blinkm.go +++ b/blinkm/blinkm.go @@ -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" diff --git a/bmp180/bmp180.go b/bmp180/bmp180.go index bafde27..4d86f4a 100644 --- a/bmp180/bmp180.go +++ b/bmp180/bmp180.go @@ -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" diff --git a/drivers.go b/drivers.go index 6b1969d..fa04526 100644 --- a/drivers.go +++ b/drivers.go @@ -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" diff --git a/ds1307/ds1307.go b/ds1307/ds1307.go index 1fa8dcd..866bc67 100644 --- a/ds1307/ds1307.go +++ b/ds1307/ds1307.go @@ -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" diff --git a/ds3231/ds3231.go b/ds3231/ds3231.go index 38d8cd8..4658a5b 100644 --- a/ds3231/ds3231.go +++ b/ds3231/ds3231.go @@ -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" diff --git a/easystepper/easystepper.go b/easystepper/easystepper.go index 3454696..f70c83a 100644 --- a/easystepper/easystepper.go +++ b/easystepper/easystepper.go @@ -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" diff --git a/espat/espat.go b/espat/espat.go index 5aee294..c195354 100644 --- a/espat/espat.go +++ b/espat/espat.go @@ -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" diff --git a/examples/adxl345/main.go b/examples/adxl345/main.go index f5eb8e1..d8909d7 100644 --- a/examples/adxl345/main.go +++ b/examples/adxl345/main.go @@ -4,7 +4,7 @@ import ( "machine" "time" - "github.com/tinygo-org/drivers/adxl345" + "tinygo.org/x/drivers/adxl345" ) func main() { diff --git a/examples/apa102/main.go b/examples/apa102/main.go index 49400e8..3740c24 100644 --- a/examples/apa102/main.go +++ b/examples/apa102/main.go @@ -6,7 +6,7 @@ import ( "machine" "time" - "github.com/tinygo-org/drivers/apa102" + "tinygo.org/x/drivers/apa102" ) func main() { diff --git a/examples/bh1750/main.go b/examples/bh1750/main.go index 6a30d04..3ff164b 100644 --- a/examples/bh1750/main.go +++ b/examples/bh1750/main.go @@ -5,7 +5,7 @@ import ( "machine" - "github.com/tinygo-org/drivers/bh1750" + "tinygo.org/x/drivers/bh1750" ) func main() { diff --git a/examples/blinkm/main.go b/examples/blinkm/main.go index 26273ad..b9815ff 100644 --- a/examples/blinkm/main.go +++ b/examples/blinkm/main.go @@ -6,7 +6,7 @@ import ( "machine" "time" - "github.com/tinygo-org/drivers/blinkm" + "tinygo.org/x/drivers/blinkm" ) func main() { diff --git a/examples/bmp180/main.go b/examples/bmp180/main.go index 595ff07..38ab21d 100644 --- a/examples/bmp180/main.go +++ b/examples/bmp180/main.go @@ -5,7 +5,7 @@ import ( "machine" - "github.com/tinygo-org/drivers/bmp180" + "tinygo.org/x/drivers/bmp180" ) func main() { diff --git a/examples/ds1307/sram/main.go b/examples/ds1307/sram/main.go index 683509b..020de9e 100644 --- a/examples/ds1307/sram/main.go +++ b/examples/ds1307/sram/main.go @@ -3,7 +3,7 @@ package main import ( "machine" - "github.com/tinygo-org/drivers/ds1307" + "tinygo.org/x/drivers/ds1307" ) func main() { diff --git a/examples/ds1307/time/main.go b/examples/ds1307/time/main.go index 3fbde50..e14b74a 100644 --- a/examples/ds1307/time/main.go +++ b/examples/ds1307/time/main.go @@ -4,7 +4,7 @@ import ( "machine" "time" - "github.com/tinygo-org/drivers/ds1307" + "tinygo.org/x/drivers/ds1307" ) func main() { diff --git a/examples/ds3231/main.go b/examples/ds3231/main.go index edb92ce..766c194 100644 --- a/examples/ds3231/main.go +++ b/examples/ds3231/main.go @@ -7,7 +7,7 @@ import ( "fmt" - "github.com/tinygo-org/drivers/ds3231" + "tinygo.org/x/drivers/ds3231" ) func main() { diff --git a/examples/easystepper/main.go b/examples/easystepper/main.go index 3b21a71..363dec2 100644 --- a/examples/easystepper/main.go +++ b/examples/easystepper/main.go @@ -4,7 +4,7 @@ import ( "machine" "time" - "github.com/tinygo-org/drivers/easystepper" + "tinygo.org/x/drivers/easystepper" ) func main() { diff --git a/examples/espat/espconsole/main.go b/examples/espat/espconsole/main.go index e50ae97..5cb81ea 100644 --- a/examples/espat/espconsole/main.go +++ b/examples/espat/espconsole/main.go @@ -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. diff --git a/examples/espat/esphub/main.go b/examples/espat/esphub/main.go index f42efb3..7ed45bb 100644 --- a/examples/espat/esphub/main.go +++ b/examples/espat/esphub/main.go @@ -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. diff --git a/examples/espat/espstation/main.go b/examples/espat/espstation/main.go index 2c83cb8..1597756 100644 --- a/examples/espat/espstation/main.go +++ b/examples/espat/espstation/main.go @@ -10,7 +10,7 @@ import ( "machine" "time" - "github.com/tinygo-org/drivers/espat" + "tinygo.org/x/drivers/espat" ) // access point info diff --git a/examples/gps/i2c/main.go b/examples/gps/i2c/main.go index 6774758..769884a 100644 --- a/examples/gps/i2c/main.go +++ b/examples/gps/i2c/main.go @@ -4,7 +4,7 @@ import ( "fmt" "machine" - "github.com/tinygo-org/drivers/gps" + "tinygo.org/x/drivers/gps" ) func main() { diff --git a/examples/gps/uart/main.go b/examples/gps/uart/main.go index 53d27e5..795af05 100644 --- a/examples/gps/uart/main.go +++ b/examples/gps/uart/main.go @@ -4,7 +4,7 @@ import ( "fmt" "machine" - "github.com/tinygo-org/drivers/gps" + "tinygo.org/x/drivers/gps" ) func main() { diff --git a/examples/hd44780/customchar/main.go b/examples/hd44780/customchar/main.go index ffc69b0..6be0df5 100644 --- a/examples/hd44780/customchar/main.go +++ b/examples/hd44780/customchar/main.go @@ -3,7 +3,7 @@ package main import ( "machine" - "github.com/tinygo-org/drivers/hd44780" + "tinygo.org/x/drivers/hd44780" ) func main() { diff --git a/examples/hd44780/text/main.go b/examples/hd44780/text/main.go index 47d181c..9f8806e 100644 --- a/examples/hd44780/text/main.go +++ b/examples/hd44780/text/main.go @@ -3,7 +3,7 @@ package main import ( "machine" - "github.com/tinygo-org/drivers/hd44780" + "tinygo.org/x/drivers/hd44780" ) func main() { diff --git a/examples/hub75/main.go b/examples/hub75/main.go index b97b70a..2560faa 100644 --- a/examples/hub75/main.go +++ b/examples/hub75/main.go @@ -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 diff --git a/examples/lis3dh/main.go b/examples/lis3dh/main.go index 250ebb6..6c51d33 100644 --- a/examples/lis3dh/main.go +++ b/examples/lis3dh/main.go @@ -5,7 +5,7 @@ import ( "machine" "time" - "github.com/tinygo-org/drivers/lis3dh" + "tinygo.org/x/drivers/lis3dh" ) var i2c = machine.I2C1 diff --git a/examples/mag3110/main.go b/examples/mag3110/main.go index 869abf9..a5f32b0 100644 --- a/examples/mag3110/main.go +++ b/examples/mag3110/main.go @@ -5,7 +5,7 @@ import ( "machine" "time" - "github.com/tinygo-org/drivers/mag3110" + "tinygo.org/x/drivers/mag3110" ) func main() { diff --git a/examples/microbitmatrix/main.go b/examples/microbitmatrix/main.go index 5dc5767..1b05a9e 100644 --- a/examples/microbitmatrix/main.go +++ b/examples/microbitmatrix/main.go @@ -5,7 +5,7 @@ import ( "math/rand" "time" - "github.com/tinygo-org/drivers/microbitmatrix" + "tinygo.org/x/drivers/microbitmatrix" ) var display microbitmatrix.Device diff --git a/examples/mma8653/main.go b/examples/mma8653/main.go index 7af9f96..8b52129 100644 --- a/examples/mma8653/main.go +++ b/examples/mma8653/main.go @@ -5,7 +5,7 @@ import ( "machine" "time" - "github.com/tinygo-org/drivers/mma8653" + "tinygo.org/x/drivers/mma8653" ) func main() { diff --git a/examples/mpu6050/main.go b/examples/mpu6050/main.go index 4c16c10..90c2240 100644 --- a/examples/mpu6050/main.go +++ b/examples/mpu6050/main.go @@ -5,7 +5,7 @@ import ( "machine" "time" - "github.com/tinygo-org/drivers/mpu6050" + "tinygo.org/x/drivers/mpu6050" ) func main() { diff --git a/examples/pcd8544/setbuffer/main.go b/examples/pcd8544/setbuffer/main.go index 34dfeab..9eba0c1 100644 --- a/examples/pcd8544/setbuffer/main.go +++ b/examples/pcd8544/setbuffer/main.go @@ -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() { diff --git a/examples/pcd8544/setpixel/main.go b/examples/pcd8544/setpixel/main.go index 3909163..18aa369 100644 --- a/examples/pcd8544/setpixel/main.go +++ b/examples/pcd8544/setpixel/main.go @@ -5,7 +5,7 @@ import ( "machine" "time" - "github.com/tinygo-org/drivers/pcd8544" + "tinygo.org/x/drivers/pcd8544" ) func main() { diff --git a/examples/sht3x/main.go b/examples/sht3x/main.go index 76eb0f4..0ad4c9e 100644 --- a/examples/sht3x/main.go +++ b/examples/sht3x/main.go @@ -5,7 +5,7 @@ import ( "machine" "time" - "github.com/tinygo-org/drivers/sht3x" + "tinygo.org/x/drivers/sht3x" ) func main() { diff --git a/examples/ssd1306/i2c_128x32/main.go b/examples/ssd1306/i2c_128x32/main.go index 3e79a61..6bc3852 100644 --- a/examples/ssd1306/i2c_128x32/main.go +++ b/examples/ssd1306/i2c_128x32/main.go @@ -6,7 +6,7 @@ import ( "image/color" "time" - "github.com/tinygo-org/drivers/ssd1306" + "tinygo.org/x/drivers/ssd1306" ) func main() { diff --git a/examples/ssd1306/spi_128x64/main.go b/examples/ssd1306/spi_128x64/main.go index 1eca945..1e4a0cd 100644 --- a/examples/ssd1306/spi_128x64/main.go +++ b/examples/ssd1306/spi_128x64/main.go @@ -5,7 +5,7 @@ import ( "machine" "time" - "github.com/tinygo-org/drivers/ssd1306" + "tinygo.org/x/drivers/ssd1306" ) func main() { diff --git a/examples/thermistor/main.go b/examples/thermistor/main.go index 281d273..2eed105 100644 --- a/examples/thermistor/main.go +++ b/examples/thermistor/main.go @@ -6,7 +6,7 @@ import ( "machine" "time" - "github.com/tinygo-org/drivers/thermistor" + "tinygo.org/x/drivers/thermistor" ) const ADC_PIN = machine.TEMPSENSOR diff --git a/examples/vl53l1x/main.go b/examples/vl53l1x/main.go index f511c95..6c18068 100644 --- a/examples/vl53l1x/main.go +++ b/examples/vl53l1x/main.go @@ -5,7 +5,7 @@ import ( "time" - "github.com/tinygo-org/drivers/vl53v1x" + "tinygo.org/x/drivers/vl53l1x" ) func main() { diff --git a/examples/waveshare-epd/epd2in13/main.go b/examples/waveshare-epd/epd2in13/main.go index 0c97c5d..6390afc 100644 --- a/examples/waveshare-epd/epd2in13/main.go +++ b/examples/waveshare-epd/epd2in13/main.go @@ -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") diff --git a/examples/waveshare-epd/epd2in13x/main.go b/examples/waveshare-epd/epd2in13x/main.go index d8d0721..cf5086d 100644 --- a/examples/waveshare-epd/epd2in13x/main.go +++ b/examples/waveshare-epd/epd2in13x/main.go @@ -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 diff --git a/examples/ws2812/main.go b/examples/ws2812/main.go index 314f7d8..ed568c4 100644 --- a/examples/ws2812/main.go +++ b/examples/ws2812/main.go @@ -10,7 +10,7 @@ import ( "machine" "time" - "github.com/tinygo-org/drivers/ws2812" + "tinygo.org/x/drivers/ws2812" ) func main() { diff --git a/gps/gps.go b/gps/gps.go index 93339d2..471589f 100644 --- a/gps/gps.go +++ b/gps/gps.go @@ -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" diff --git a/hd44780/hd44780.go b/hd44780/hd44780.go index 9e5019b..b7494b0 100644 --- a/hd44780/hd44780.go +++ b/hd44780/hd44780.go @@ -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" diff --git a/hub75/hub75.go b/hub75/hub75.go index 528c74e..7109e22 100644 --- a/hub75/hub75.go +++ b/hub75/hub75.go @@ -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" diff --git a/lis3dh/lis3dh.go b/lis3dh/lis3dh.go index ddec329..33d0562 100644 --- a/lis3dh/lis3dh.go +++ b/lis3dh/lis3dh.go @@ -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" diff --git a/mag3110/mag3110.go b/mag3110/mag3110.go index 27e73e8..651d338 100644 --- a/mag3110/mag3110.go +++ b/mag3110/mag3110.go @@ -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" diff --git a/microbitmatrix/microbitmatrix.go b/microbitmatrix/microbitmatrix.go index ab37e55..c2ab842 100644 --- a/microbitmatrix/microbitmatrix.go +++ b/microbitmatrix/microbitmatrix.go @@ -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" diff --git a/mma8653/mma8653.go b/mma8653/mma8653.go index 11cbf64..75f0136 100644 --- a/mma8653/mma8653.go +++ b/mma8653/mma8653.go @@ -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" diff --git a/mpu6050/mpu6050.go b/mpu6050/mpu6050.go index 40ae77c..71d6877 100644 --- a/mpu6050/mpu6050.go +++ b/mpu6050/mpu6050.go @@ -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" diff --git a/pcd8544/pcd8544.go b/pcd8544/pcd8544.go index 1d003d2..61580de 100644 --- a/pcd8544/pcd8544.go +++ b/pcd8544/pcd8544.go @@ -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" diff --git a/sht3x/sht3x.go b/sht3x/sht3x.go index 6240a0f..f430691 100644 --- a/sht3x/sht3x.go +++ b/sht3x/sht3x.go @@ -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" diff --git a/ssd1306/ssd1306.go b/ssd1306/ssd1306.go index ca49216..42c2f55 100644 --- a/ssd1306/ssd1306.go +++ b/ssd1306/ssd1306.go @@ -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" diff --git a/thermistor/thermistor.go b/thermistor/thermistor.go index ba01398..feeb731 100644 --- a/thermistor/thermistor.go +++ b/thermistor/thermistor.go @@ -24,7 +24,7 @@ // sensor.NominalResistance = 10000 // sensor.HighSide = true // -package thermistor +package thermistor // import "tinygo.org/x/drivers/thermistor" import ( "machine" diff --git a/vl53v1x/registers.go b/vl53l1x/registers.go similarity index 100% rename from vl53v1x/registers.go rename to vl53l1x/registers.go diff --git a/vl53v1x/vl53l1x.go b/vl53l1x/vl53l1x.go similarity index 99% rename from vl53v1x/vl53l1x.go rename to vl53l1x/vl53l1x.go index 683bf5c..11a52df 100644 --- a/vl53v1x/vl53l1x.go +++ b/vl53l1x/vl53l1x.go @@ -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" diff --git a/waveshare-epd/doc.go b/waveshare-epd/doc.go new file mode 100644 index 0000000..f0fe769 --- /dev/null +++ b/waveshare-epd/doc.go @@ -0,0 +1 @@ +package waveshareepd // import "tinygo.org/x/drivers/waveshare-epd" diff --git a/waveshare-epd/epd2in13/epd2in13.go b/waveshare-epd/epd2in13/epd2in13.go index ed571f7..4fe1b33 100644 --- a/waveshare-epd/epd2in13/epd2in13.go +++ b/waveshare-epd/epd2in13/epd2in13.go @@ -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" diff --git a/waveshare-epd/epd2in13x/epd2in13x.go b/waveshare-epd/epd2in13x/epd2in13x.go index d6c9f25..d972915 100644 --- a/waveshare-epd/epd2in13x/epd2in13x.go +++ b/waveshare-epd/epd2in13x/epd2in13x.go @@ -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" diff --git a/ws2812/ws2812.go b/ws2812/ws2812.go index 8d84c85..8cd4607 100644 --- a/ws2812/ws2812.go +++ b/ws2812/ws2812.go @@ -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"