Compare commits

..

1 commit
dev ... release

Author SHA1 Message Date
eae5a517c8
rename mod 2024-07-31 22:38:08 +03:00
17 changed files with 21 additions and 21 deletions

View file

@ -2,7 +2,7 @@
[![Go Bluetooth](./images/gobluetooth.png)](https://tinygo.org/bluetooth)
[![PkgGoDev](https://pkg.go.dev/badge/pkg.go.dev/tinygo.org/x/bluetooth)](https://pkg.go.dev/tinygo.org/x/bluetooth) [![Linux](https://github.com/tinygo-org/bluetooth/actions/workflows/linux.yml/badge.svg?branch=dev)](https://github.com/tinygo-org/bluetooth/actions/workflows/linux.yml) [![macOS](https://github.com/tinygo-org/bluetooth/actions/workflows/macos.yml/badge.svg?branch=dev)](https://github.com/tinygo-org/bluetooth/actions/workflows/macos.yml)
[![PkgGoDev](https://pkg.go.dev/badge/pkg.go.dev/gitrepo.ru/neonxp/bluetooth)](https://pkg.go.dev/gitrepo.ru/neonxp/bluetooth) [![Linux](https://github.com/tinygo-org/bluetooth/actions/workflows/linux.yml/badge.svg?branch=dev)](https://github.com/tinygo-org/bluetooth/actions/workflows/linux.yml) [![macOS](https://github.com/tinygo-org/bluetooth/actions/workflows/macos.yml/badge.svg?branch=dev)](https://github.com/tinygo-org/bluetooth/actions/workflows/macos.yml)
Go Bluetooth is a cross-platform package for using [Bluetooth Low Energy](https://en.wikipedia.org/wiki/Bluetooth_Low_Energy) hardware from the Go programming language.
@ -22,7 +22,7 @@ This example shows a central that scans for peripheral devices and then displays
package main
import (
"tinygo.org/x/bluetooth"
"gitrepo.ru/neonxp/bluetooth"
)
var adapter = bluetooth.DefaultAdapter
@ -58,7 +58,7 @@ package main
import (
"time"
"tinygo.org/x/bluetooth"
"gitrepo.ru/neonxp/bluetooth"
)
var adapter = bluetooth.DefaultAdapter

View file

@ -5,4 +5,4 @@
// those produced by Nordic Semiconductor.
//
// This package can be use to create Bluetooth Low Energy centrals as well as peripherals.
package bluetooth // import "tinygo.org/x/bluetooth"
package bluetooth // import "gitrepo.ru/neonxp/bluetooth"

View file

@ -3,7 +3,7 @@ package main
import (
"time"
"tinygo.org/x/bluetooth"
"gitrepo.ru/neonxp/bluetooth"
)
var adapter = bluetooth.DefaultAdapter

View file

@ -8,7 +8,7 @@ import (
"machine"
"time"
"tinygo.org/x/bluetooth"
"gitrepo.ru/neonxp/bluetooth"
"tinygo.org/x/drivers/ws2812"
)

View file

@ -12,7 +12,7 @@ package main
import (
"time"
"tinygo.org/x/bluetooth"
"gitrepo.ru/neonxp/bluetooth"
)
var (

View file

@ -18,7 +18,7 @@ package main
import (
"strconv"
"tinygo.org/x/bluetooth"
"gitrepo.ru/neonxp/bluetooth"
)
var adapter = bluetooth.DefaultAdapter

View file

@ -24,7 +24,7 @@
package main
import (
"tinygo.org/x/bluetooth"
"gitrepo.ru/neonxp/bluetooth"
)
var (

View file

@ -4,7 +4,7 @@ import (
"math/rand"
"time"
"tinygo.org/x/bluetooth"
"gitrepo.ru/neonxp/bluetooth"
)
var adapter = bluetooth.DefaultAdapter

View file

@ -4,7 +4,7 @@ import (
"machine"
"time"
"tinygo.org/x/bluetooth"
"gitrepo.ru/neonxp/bluetooth"
)
var adapter = bluetooth.DefaultAdapter

View file

@ -4,8 +4,8 @@ package main
// details.
import (
"tinygo.org/x/bluetooth"
"tinygo.org/x/bluetooth/rawterm"
"gitrepo.ru/neonxp/bluetooth"
"gitrepo.ru/neonxp/bluetooth/rawterm"
)
var (

View file

@ -8,8 +8,8 @@ package main
// Code to interact with a raw terminal is in separate files with build tags.
import (
"tinygo.org/x/bluetooth"
"tinygo.org/x/bluetooth/rawterm"
"gitrepo.ru/neonxp/bluetooth"
"gitrepo.ru/neonxp/bluetooth/rawterm"
)
var (

View file

@ -1,7 +1,7 @@
package main
import (
"tinygo.org/x/bluetooth"
"gitrepo.ru/neonxp/bluetooth"
)
var adapter = bluetooth.DefaultAdapter

View file

@ -7,7 +7,7 @@ package main
import (
"time"
"tinygo.org/x/bluetooth"
"gitrepo.ru/neonxp/bluetooth"
)
var adapter = bluetooth.DefaultAdapter

View file

@ -5,7 +5,7 @@ import (
"image/color"
"time"
"tinygo.org/x/bluetooth"
"gitrepo.ru/neonxp/bluetooth"
"tinygo.org/x/tinyterm"
)

2
go.mod
View file

@ -1,4 +1,4 @@
module tinygo.org/x/bluetooth
module gitrepo.ru/neonxp/bluetooth
go 1.20

View file

@ -16,7 +16,7 @@ import (
"golang.org/x/text/cases"
"golang.org/x/text/language"
"tinygo.org/x/bluetooth"
"gitrepo.ru/neonxp/bluetooth"
)
type Characteristic struct {

View file

@ -16,7 +16,7 @@ import (
"golang.org/x/text/cases"
"golang.org/x/text/language"
"tinygo.org/x/bluetooth"
"gitrepo.ru/neonxp/bluetooth"
)
type Service struct {