File tree Expand file tree Collapse file tree 7 files changed +8
-16
lines changed
Expand file tree Collapse file tree 7 files changed +8
-16
lines changed Original file line number Diff line number Diff line change 1- //go:build tinygo && (rp2040 || rp2350)
2-
31package enabler
42
53import (
Original file line number Diff line number Diff line change 66 "machine"
77
88 tinygopullup "github.com/ralvarezdev/tinygo-pullup"
9- tinygotypes "github.com/ralvarezdev/tinygo-types "
9+ tinygoerrors "github.com/ralvarezdev/tinygo-errors "
1010)
1111
1212type (
@@ -27,14 +27,14 @@ type (
2727// An instance of DefaultHandler, or an error if the pull-up handler is nil
2828func NewDefaultHandler (
2929 pullUpHandler tinygopullup.Handler ,
30- ) (* DefaultHandler , tinygotypes .ErrorCode ) {
30+ ) (* DefaultHandler , tinygoerrors .ErrorCode ) {
3131 if pullUpHandler == nil {
3232 return nil , tinygopullup .ErrorCodePullUpResistorNilHandler
3333 }
3434
3535 return & DefaultHandler {
3636 pullUpHandler ,
37- }, tinygotypes .ErrorCodeNil
37+ }, tinygoerrors .ErrorCodeNil
3838}
3939
4040// NewDefaultHandlerFromPin creates a new default debug handler with a pull-up handler created from the given pin.
Original file line number Diff line number Diff line change 1- //go:build tinygo && (rp2040 || rp2350)
2-
31package tinygo_pullup
42
53import (
6- tinygotypes "github.com/ralvarezdev/tinygo-types "
4+ tinygoerrors "github.com/ralvarezdev/tinygo-errors "
75)
86
97const (
@@ -12,5 +10,5 @@ const (
1210)
1311
1412const (
15- ErrorCodePullUpResistorNilHandler = tinygotypes .ErrorCode (iota + ErrorCodePullUpResistorStartNumber )
13+ ErrorCodePullUpResistorNilHandler = tinygoerrors .ErrorCode (iota + ErrorCodePullUpResistorStartNumber )
1614)
Original file line number Diff line number Diff line change @@ -2,4 +2,4 @@ module github.com/ralvarezdev/tinygo-pullup
22
33go 1.25.0
44
5- require github.com/ralvarezdev/tinygo-types v0.0.3
5+ require github.com/ralvarezdev/tinygo-errors v0.0.4
Original file line number Diff line number Diff line change 1- github.com/ralvarezdev/tinygo-types v0.0.3 h1:h8ogOD2lOVxR+w5i6o+v/8qTROFA2KBjVXBM7NT3SMc =
2- github.com/ralvarezdev/tinygo-types v0.0.3 /go.mod h1:2u3ApwAtIqGZ6wDsmUYt44bIk1DEn06INNjtfWndCr4 =
1+ github.com/ralvarezdev/tinygo-errors v0.0.4 h1:nuqApi7tEzPSSf2/3Uqxxizwftvoxczaec9BA95Hcj4 =
2+ github.com/ralvarezdev/tinygo-errors v0.0.4 /go.mod h1:PlkyrG60saZetwFX1mPhve+9l2pneVH7c8q5w4sxe8M =
Original file line number Diff line number Diff line change 1- //go:build tinygo && (rp2040 || rp2350)
2-
31package tinygo_pullup
42
53type (
Original file line number Diff line number Diff line change 1- //go:build tinygo && (rp2040 || rp2350)
2-
31package tinygo_pullup
42
53import (
You can’t perform that action at this time.
0 commit comments