Wu Jiang
aee34f1a02
Merge b02fcae87d
into d3d8c0c5c6
2017-05-08 01:30:54 +00:00
Thorsten von Eicken
49e6cc504d
Merge pull request #4 from gotang/master
...
fix fatal error: concurrent map read and map write
2016-09-05 23:36:21 -07:00
Thorsten von Eicken
6cfa481f30
Support SPI minor devices >255 (PR #33 )
2016-09-05 23:13:14 -07:00
Thorsten von Eicken
4503849da9
Merge pull request #3 from gavincabbage/gavincabbage-readbytes
...
Gavincabbage readbytes
2016-08-27 00:34:45 -07:00
Thorsten von Eicken
e7d28415a8
Merge pull request #1 from wiless/master
...
Fix SPIController issue with missing fields
2016-08-27 00:32:08 -07:00
Thorsten von Eicken
091d6f5588
gpio: don't fail if pin is already exported
2016-08-26 23:02:41 -07:00
gotang
6021814731
fix fatal error: concurrent map read and map write
2016-08-20 14:10:49 +08:00
wiless
c3462ff178
Merge branch 'master' of github.com:kidoman/embd
2016-04-22 07:02:11 +05:30
Wu Jiang
b02fcae87d
Give rpi some time to link digital pin property
...
It looks like Raspberry pi needs some time to get a digital pin
link properly after it is being exported.
Sample code to run:
```go
package main
import (
"fmt"
"github.com/kidoman/embd"
_ "github.com/kidoman/embd/host/rpi"
)
func main() {
defer embd.CloseGPIO()
fmt.Println(embd.SetDirection(10, embd.Out))
}
```
- before the change, the output is:
`open /sys/class/gpio/gpio10/direction: permission denied`
- after the change, the output is `<nil>`
Close #52
2016-01-21 15:42:27 -05:00
Wu Jiang
42be169804
Fix typo
...
TransferAndRecieveData --> TransferAndReceiveData
2015-12-22 12:54:33 -05:00
ssk
c1886eb5bf
Fixed SPIController issue with missing fields
2015-11-03 19:24:27 +05:30
Gavin Cabbage
b296368a05
removing failed Stat use
2015-10-10 23:58:24 -04:00
Gavin Cabbage
9d8285ca01
changed ReadBytes to get file size from stat
2015-10-10 23:23:40 -04:00
Gavin Cabbage
2e6bd46354
i2c: added ReadBytes to I2CBus
2015-08-29 00:42:44 -04:00
Karan Misra
6003f2249d
gpio: consistent naming
2015-01-15 05:35:21 +05:30
Ben Delarre
b6f5d8d640
spi: added write method to allow writing without transfer delays
2015-01-15 05:33:49 +05:30
SjB
0fa1d1b61c
gpio: adding interrupt
...
this is inspired by Dave Cheney's gpio library and his work on EPOLL
2014-09-02 23:12:55 -04:00
kunalpowar
5965ddf789
spi: fix for breaking build
2014-05-22 03:03:22 +05:30
kunalpowar
32c9a96af5
spi: remove types from const declarations and added few more go docs
2014-05-22 02:58:15 +05:30
kunalpowar
67d316851a
spi: finishing touches
2014-05-22 02:22:18 +05:30
kunalpowar
454eca42d0
spi: got rid of shouldInitialize arg in spibus (redundant).
2014-05-22 02:22:18 +05:30
kunalpowar
9206358abe
spi: refactoring for err handling
2014-05-22 02:22:18 +05:30
kunalpowar
1bb2bac8f1
spi: variables/method name, err handling changes to follow idiomatic go
2014-05-22 02:22:18 +05:30
kunalpowar
59958d7dfc
mcp3008: added package and samples for mcp3008 10-bit 8-channel adc
2014-05-03 21:35:09 +05:30
kunalpowar
42033238e2
spi: use a initializer if required by any host
2014-05-01 22:44:41 +05:30
Kunal Powar
faa686f01c
spi: changes in fields/symbols to follow idiomatic go
2014-04-28 03:13:57 +05:30
Kunal Powar
12db8443b0
spi: added spi feature for all bbb and rpi
2014-04-28 01:18:14 +05:30
Kunal Powar
68ba342e1b
i2c: added debug logs
2014-04-10 07:38:14 +05:30
Kunal Powar
2ee0cbc899
i2c: fixed missing init call
2014-04-10 07:29:06 +05:30
Karan Misra
c35deeb17c
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"
2014-04-06 06:50:09 +05:30
Karan Misra
2504678ba9
move the generic gpio/i2c drivers to their own folder
2014-02-27 05:34:36 +05:30
Kunal Powar
66d0ab22fd
added BeagleBone Black (bbb) as one of the supported hosts
2014-02-27 05:17:21 +05:30
Karan Misra
b5e2d0acc7
bring in the idea of a hardware abstraction layer
2014-02-27 04:24:53 +05:30