1
0
Fork 0
mirror of https://github.com/kidoman/embd synced 2025-07-03 03:47:33 +02:00

more streamlining

This commit is contained in:
Karan Misra 2014-02-27 04:44:50 +05:30
parent b5e2d0acc7
commit 6ea4e31399
4 changed files with 11 additions and 13 deletions

View file

@ -4,11 +4,10 @@ import (
"time"
"github.com/kidoman/embd"
"github.com/kidoman/embd/host"
)
func main() {
h, _, err := host.Detect()
h, _, err := embd.DetectHost()
if err != nil {
return
}
@ -16,9 +15,9 @@ func main() {
var pinNo interface{}
switch h {
case host.BBB:
case embd.BBB:
pinNo = "P9_31"
case host.RPi:
case embd.RPi:
pinNo = 10
default:
panic("host not supported (yet :P)")