stianeikeland / go-rpio

:electric_plug: Raspberry Pi GPIO library for go-lang
MIT License
2.19k stars 222 forks source link

Running build vs file #26

Open cskonopka opened 6 years ago

cskonopka commented 6 years ago

I couldn't get the blinker.go example to work when I did

go run blinker.go

But when I build the file it works fine.

./blinker

Is there a way to just run the file to speed up the prototyping process?

stianeikeland commented 6 years ago

Hmm, not sure what the problem is here.. but I can run:

go-rpio/examples/blinker$ go run blinker.go

open /dev/mem: no such file or directory
exit status 1

(I'm not on a pi atm, so don't mind the /dev/mem error)

What specifically breaks when you do this?