Skip to content

Instantly share code, notes, and snippets.

@ledongthuc
Last active December 16, 2015 16:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ledongthuc/d2b010f3c44a52ec4a01 to your computer and use it in GitHub Desktop.
Save ledongthuc/d2b010f3c44a52ec4a01 to your computer and use it in GitHub Desktop.
hello world, blink the buildin light
package main
import (
"time"
"github.com/kidoman/embd"
_ "github.com/kidoman/embd/host/rpi" // Loads the RPi driver
)
func main() {
for {
embd.LEDToggle("LED0")
time.Sleep(1 * time.Second)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment