Need help with brickpi?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

Global Rank
#11,141
Topics of expertise
ppa
gradien...
differe...
qt5-gui
page-bu...
automat...
netlify
hugo-th...
Location
Adelaide, South Australia
3 Stars 3 Forks Other 22 Commits 1 Opened issues

Description

BrickPi-specific functions for the ev3go ev3dev interface

Services available

!
?

Need anything else?

Contributors list

# 11,141
Go
Sublime...
netlify
hugo
19 commits
# 24,054
Visual ...
microco...
micropy...
executa...
2 commits
# 192,137
Azure
dcos
C#
Terrafo...
1 commit

Gopherbrick

brickpi provides BrickPi-specific functions for the Go ev3dev interface

Build Status Coverage Status GoDoc

github.com/ev3go/ev3dev depends on ev3dev stretch.

Example code

package main

import ( "log" "time"

"github.com/ev3go/brickpi"

)

func main() { var bright byte var err error for i := 0; i < 10; i++ { err = brickpi.Blue1.SetBrightness(int(bright)).Err() if err != nil { log.Fatal(err) } time.Sleep(time.Second)

    bright = ^bright

    err = brickpi.Blue2.SetBrightness(int(bright)).Err()
    if err != nil {
        log.Fatal(err)
    }
    time.Sleep(time.Second)
}

}

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.