Skip to content

Commit

Permalink
rename module
Browse files Browse the repository at this point in the history
  • Loading branch information
willgorman committed Dec 17, 2023
1 parent 7c3adfb commit cb8f2ed
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion internal/pkg/blinkt/blinkt_light.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
log "github.com/sirupsen/logrus"

. "github.com/alexellis/blinkt_go/sysfs"
"github.com/willgorman/homebridge-pi-light/internal/pkg/light"
"github.com/willgorman/homebridge-pi-light-server/internal/pkg/light"
)

func New() *blinktLight {
Expand Down
3 changes: 1 addition & 2 deletions internal/pkg/fake/fake_light.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package fake
import (
"fmt"

"github.com/willgorman/homebridge-pi-light/internal/pkg/light"
"github.com/willgorman/homebridge-pi-light-server/internal/pkg/light"
)

type FakeLight struct {
Expand Down Expand Up @@ -43,7 +43,6 @@ func (f *FakeLight) SetBrightness(brightness uint) error {

f.brightness = brightness
return nil

}

func (f *FakeLight) SetColor(r uint, g uint, b uint) error {
Expand Down
2 changes: 1 addition & 1 deletion internal/pkg/state/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"os"
"sync"

"github.com/willgorman/homebridge-pi-light/internal/pkg/light"
"github.com/willgorman/homebridge-pi-light-server/internal/pkg/light"
)

type StateStore struct {
Expand Down
9 changes: 5 additions & 4 deletions internal/pkg/unicorn/unicorn_light.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,15 @@ import (
"github.com/arussellsaw/unicorn-go"
util "github.com/arussellsaw/unicorn-go/util"
log "github.com/sirupsen/logrus"
"github.com/willgorman/homebridge-pi-light/internal/pkg/light"
"github.com/willgorman/homebridge-pi-light-server/internal/pkg/light"
)

var w = util.White

var defaultBrightness = uint(20)
var defaultColor = light.Color{R: 255, G: 255, B: 255}
var (
defaultBrightness = uint(20)
defaultColor = light.Color{R: 255, G: 255, B: 255}
)

type UnicornLight struct {
client unicorn.Client
Expand Down Expand Up @@ -46,7 +48,6 @@ func (u *UnicornLight) IsOn() (bool, error) {
}

func (u *UnicornLight) TurnOn() error {

pixels := [64]unicorn.Pixel{}
for i := range pixels {
pixels[i] = u.pixelFromColor()
Expand Down

0 comments on commit cb8f2ed

Please sign in to comment.