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

host specific drivers can now be loaded separately

this ensures cleaner abstractions/code and will ensure that the produced
binary is as small as possible. a convenience package is provided to
easily load all hosts easily: "github.com/kidoman/embd/host/all"
This commit is contained in:
Karan Misra 2014-04-06 06:50:09 +05:30
parent 57328c979d
commit c35deeb17c
44 changed files with 1184 additions and 1018 deletions

View file

@ -10,6 +10,8 @@ import (
"time"
"github.com/kidoman/embd"
_ "github.com/kidoman/embd/host/all"
)
func main() {

View file

@ -7,6 +7,8 @@ import (
"fmt"
"github.com/kidoman/embd"
_ "github.com/kidoman/embd/host/all"
)
func main() {

View file

@ -9,6 +9,8 @@ import (
"github.com/kidoman/embd"
"github.com/kidoman/embd/sensor/bh1750fvi"
_ "github.com/kidoman/embd/host/all"
)
func main() {

View file

@ -9,6 +9,8 @@ import (
"github.com/kidoman/embd"
"github.com/kidoman/embd/sensor/bmp085"
_ "github.com/kidoman/embd/host/all"
)
func main() {

View file

@ -9,6 +9,8 @@ import (
"github.com/kidoman/embd"
"github.com/kidoman/embd/sensor/bmp180"
_ "github.com/kidoman/embd/host/all"
)
func main() {

View file

@ -7,6 +7,8 @@ import (
"time"
"github.com/kidoman/embd"
_ "github.com/kidoman/embd/host/all"
)
func main() {

View file

@ -7,6 +7,8 @@ import (
"time"
"github.com/kidoman/embd"
_ "github.com/kidoman/embd/host/all"
)
func main() {

View file

@ -7,6 +7,8 @@ import (
"time"
"github.com/kidoman/embd"
_ "github.com/kidoman/embd/host/all"
)
func main() {

View file

@ -6,6 +6,8 @@ import (
"flag"
"github.com/kidoman/embd"
_ "github.com/kidoman/embd/host/all"
)
func main() {

View file

@ -11,6 +11,8 @@ import (
"github.com/kidoman/embd"
"github.com/kidoman/embd/sensor/l3gd20"
_ "github.com/kidoman/embd/host/all"
)
func main() {

View file

@ -12,6 +12,8 @@ import (
"time"
"github.com/kidoman/embd"
_ "github.com/kidoman/embd/host/all"
)
func main() {

View file

@ -9,6 +9,8 @@ import (
"time"
"github.com/kidoman/embd"
_ "github.com/kidoman/embd/host/all"
)
func main() {

View file

@ -9,6 +9,8 @@ import (
"github.com/kidoman/embd"
"github.com/kidoman/embd/sensor/lsm303"
_ "github.com/kidoman/embd/host/all"
)
func main() {

View file

@ -11,6 +11,8 @@ import (
"github.com/kidoman/embd"
"github.com/kidoman/embd/controller/mcp4725"
_ "github.com/kidoman/embd/host/all"
)
func main() {

View file

@ -10,6 +10,8 @@ import (
"github.com/kidoman/embd"
"github.com/kidoman/embd/controller/pca9685"
_ "github.com/kidoman/embd/host/all"
)
func main() {

View file

@ -9,6 +9,9 @@ import (
"time"
"github.com/kidoman/embd"
"github.com/kidoman/embd/host/bbb"
_ "github.com/kidoman/embd/host/all"
)
func main() {
@ -25,7 +28,7 @@ func main() {
}
defer pwm.Close()
if err := pwm.SetDuty(embd.BBBPWMDefaultPeriod / 2); err != nil {
if err := pwm.SetDuty(bbb.PWMDefaultPeriod / 2); err != nil {
panic(err)
}

View file

@ -11,6 +11,8 @@ import (
"github.com/kidoman/embd"
"github.com/kidoman/embd/controller/pca9685"
"github.com/kidoman/embd/motion/servo"
_ "github.com/kidoman/embd/host/all"
)
func main() {

View file

@ -10,6 +10,8 @@ import (
"github.com/kidoman/embd"
"github.com/kidoman/embd/motion/servo"
_ "github.com/kidoman/embd/host/all"
)
func main() {

View file

@ -10,6 +10,8 @@ import (
"github.com/kidoman/embd/controller/servoblaster"
"github.com/kidoman/embd/motion/servo"
_ "github.com/kidoman/embd/host/all"
)
func main() {

View file

@ -10,6 +10,8 @@ import (
"github.com/kidoman/embd"
"github.com/kidoman/embd/sensor/tmp006"
_ "github.com/kidoman/embd/host/all"
)
func main() {

View file

@ -11,6 +11,8 @@ import (
"github.com/kidoman/embd"
"github.com/kidoman/embd/sensor/us020"
_ "github.com/kidoman/embd/host/all"
)
func main() {

View file

@ -9,6 +9,8 @@ import (
"github.com/golang/glog"
"github.com/kidoman/embd"
"github.com/kidoman/embd/sensor/watersensor"
_ "github.com/kidoman/embd/host/all"
)
func main() {