Closed wenwenchenbosch closed 2 years ago
@wenwenchenbosch I think this is because the latest tag (v4.4.0) is not pointing to the master branch. @stianeikeland @drahoslove is it possible to tag a new version ?
@wenwenchenbosch as a workaround what I did was
go get github.com/stianeikeland/go-rpio
outside of my project (so it doesn't touch my project's go mod file)replace github.com/stianeikeland/go-rpio/v4 v4.4.0 => ../../stianeikeland/go-rpi
at the bottom of my go.mod project filego mod tidy
at the root of my projectto get the master branch: go get github.com/stianeikeland/go-rpio/v4@master
I fixed the examples so they use the modules version 4 now, and I pushed a new tag. It should solve this issue. Feel free to reopen it if it does not.
(also in similar situations it might help to try to delete go mod cache first by go clean --modcache
)
I tried to build and run the pullup example https://github.com/stianeikeland/go-rpio/blob/master/examples/pullup/pullup.go. But it does not build, see error message:
After I removed the
ReadPull()
call, I got the following output:That means PullUp does not work.