1
0
Fork 0
mirror of https://github.com/kidoman/embd synced 2025-07-04 04:17:41 +02:00

OneWire bus impl

This commit is contained in:
Max Matveev 2016-02-05 22:16:51 -08:00
parent bfcd1345fe
commit 82f119fadb
72 changed files with 568 additions and 174 deletions

18
doc.go
View file

@ -7,7 +7,7 @@
Use the LED driver to toggle LEDs on the BBB:
import "github.com/kidoman/embd"
import "github.com/zlowred/embd"
...
embd.InitLED()
defer embd.CloseLED()
@ -18,7 +18,7 @@
Even shorter while prototyping:
import "github.com/kidoman/embd"
import "github.com/zlowred/embd"
...
embd.InitLED()
defer embd.CloseLED()
@ -27,7 +27,7 @@
BBB + PWM:
import "github.com/kidoman/embd"
import "github.com/zlowred/embd"
...
embd.InitGPIO()
defer embd.CloseGPIO()
@ -39,7 +39,7 @@
Control GPIO pins on the RaspberryPi / BeagleBone Black:
import "github.com/kidoman/embd"
import "github.com/zlowred/embd"
...
embd.InitGPIO()
defer embd.CloseGPIO()
@ -49,7 +49,7 @@
Could also do:
import "github.com/kidoman/embd"
import "github.com/zlowred/embd"
...
embd.InitGPIO()
defer embd.CloseGPIO()
@ -61,8 +61,8 @@
Or read data from the Bosch BMP085 barometric sensor:
import "github.com/kidoman/embd"
import "github.com/kidoman/embd/sensor/bmp085"
import "github.com/zlowred/embd"
import "github.com/zlowred/embd/sensor/bmp085"
...
bus := embd.NewI2CBus(1)
...
@ -73,8 +73,8 @@
Even find out the heading from the LSM303 magnetometer:
import "github.com/kidoman/embd"
import "github.com/kidoman/embd/sensor/lsm303"
import "github.com/zlowred/embd"
import "github.com/zlowred/embd/sensor/lsm303"
...
bus := embd.NewI2CBus(1)
...