Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added support for the Intel Edison #73

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

cfreeman
Copy link

Pin outs for the Edison are based on this 'block' from sparkfun -- https://www.sparkfun.com/products/13038

@cfreeman
Copy link
Author

The only driver that has been tested so far is i2c ( during the development of #72 ), GPIO, LED and SPI have not been tested yet.

@cfreeman cfreeman changed the title addded support for the Intel Edison added support for the Intel Edison Sep 29, 2016
@tve tve added the new host label Sep 29, 2016
@cfreeman
Copy link
Author

cfreeman commented Oct 6, 2016

Ran some more tests today. GPIO works in both directions and the pin mappings all work out and line up with the 'block' from Sparkfun.

    embd.InitGPIO()
    defer embd.CloseGPIO()

    p, _ := embd.NewDigitalPin(46)
    p.SetDirection(embd.In)

    for i := 0; i < 50; i++ {
        o, _ := p.Read()
        fmt.Printf("PIN: %d\n", o)
        time.Sleep(1 * time.Second)
    }

Reading from a switch/button requires 1k pullup resistor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants