luismesas / gopi Goto Github PK
View Code? Open in Web Editor NEWA library for using Raspberry Pi on Golang
License: MIT License
A library for using Raspberry Pi on Golang
License: MIT License
Am visiting this project again..
One snag is that the golang ideally really on pi needs a dist
The deb file for golang with raspian is well outta date
So am about to submit a patch to incude a basic "install" of go.. just a few paras and links to blog.
I am also looking at the
So I can kinda see whats happening..
(indeed the same in three langs)
So am about to
But main thing is.. Luis .. u there... so this can go upstream..
(or maybe add me as a contrib.. but promise not to mess with master.)
I need to interlink stuff though, which is why ideally I want access to setings so I can fre off builds and tests etc..
pedro
I'm a newbie to piface, and playing with the python API and curious about using golang instead.
I notice.. Interrumpts for PiFace are "EnableInterrupts() Not implemented"
https://github.com/luismesas/goPi/blob/master/piface/piface.go#L88
Is a technical reason that their not implementing, or does the code need writing ?
Am very interested in this area for creating a more "event based, multitasking" application which is not easy with python et al.
I notice that the python API is using a dirrecnt technique for multiple boards..
http://www.piface.org.uk/guides/Using_the_PiFace_Rack/Addressing_multiple_PiFace_Digitals/
Am just pointing this out for curiosity and no other reason
I have troubles reading the value of one of the 4 on board switches. Reading the Value returns the same value regardless of whether the switch is pressed or not.
value := pifaceDigital.Switches[1].Value
In cast that this is not a bug, please provide a short code snippet to demonstrate the usage of the switches. Thank you!
go run blink_piface.go
SIGILL: illegal instruction
PC=0x3559c
math.init·1()
/usr/lib/go/src/pkg/math/pow10.go:34 +0x28
math.init()
/usr/lib/go/src/pkg/math/unsafe.go:21 +0x70
fmt.init()
/usr/lib/go/src/pkg/fmt/scan.go:1164 +0x70
github.com/luismesas/goPi/spi.init()
/home/pi/gogo/src/github.com/luismesas/goPi/spi/spi.go:71 +0x78
main.init()
/home/pi/gogo/src/github.com/pedromorgan/goPi/examples/blink_piface/blink_piface.go:29 +0x74
goroutine 2 [runnable]:
created by runtime.main
/golang-1.0.2/src/pkg/runtime/proc.c:221
trap 0x6
error 0x0
oldmask 0x0
r0 0x502970
r1 0x0
r2 0x0
r3 0x2
r4 0x0
r5 0x0
r6 0x0
r7 0x0
r8 0x0
r9 0xf4c84
r10 0x1061e000
fp 0x502627
ip 0xcafebabe
sp 0xb6f66f54
lr 0x35b30
pc 0x3559c
cpsr 0x20000010
fault 0x0
exit status 2
I notice here..
https://github.com/luismesas/goPi/blob/master/rpi.go
That the package url's are wrong..
should to "goPi" not "go-pi", is this intentional ?/
Can the examples be updated with the interrupts and event listener example..
tia
Pete
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.