Giter Club home page Giter Club logo

gopi's People

Contributors

luismesas avatar pedromorgan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

gopi's Issues

Reading Switch Value

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!

Update

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

  • py code from upstream piface/
  • and an eye at the c code
  • and an eye on this code..

So I can kinda see whats happening..
(indeed the same in three langs)

So am about to

  • take the brave step of making the interups kinda work.. )can port py to golang but confused sometimes)
  • make the docs more interlinkable

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

piFace interrupts

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.

blink_piface crashes on startup

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.