mirror of
https://github.com/kidoman/embd
synced 2025-07-04 12:27:45 +02:00
Standalone fork no longer dependant on the original.
This commit is contained in:
parent
d3a9b3ff21
commit
9a25ce11c3
72 changed files with 187 additions and 187 deletions
|
@ -1,7 +1,7 @@
|
|||
# Using embd on CHIP
|
||||
|
||||
The CHIP drivers support gpio, I2C, SPI, and pin interrupts. Not supported are PWM or LED.
|
||||
The names of the pins on chip have multiple aliases. The official CHIP pin names are supported,
|
||||
The names of the pins on chip have multiple aliases. The official CHIP pin names are supported,
|
||||
for example XIO-P1 or LCD-D2 and the pin number are also supported, such as U14-14 (same as XIO-P1)
|
||||
or U13-17. Some of the alternate function names are also supported, like "SPI2_MOSI", and the
|
||||
linux 4.4 kernel gpio pin numbers as well, e.g., 1017 for XIO-P1. Finally, the official GPIO pins
|
||||
|
@ -13,8 +13,8 @@ A simple demo to blink an LED connected with a small resistor between XIO-P6 and
|
|||
package main
|
||||
import (
|
||||
"time"
|
||||
"github.com/kidoman/embd"
|
||||
_ "github.com/kidoman/embd/host/chip"
|
||||
"github.com/cfreeman/embd"
|
||||
_ "github.com/cfreeman/embd/host/chip"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
|
|
@ -14,8 +14,8 @@
|
|||
package chip
|
||||
|
||||
import (
|
||||
"github.com/kidoman/embd"
|
||||
"github.com/kidoman/embd/host/generic"
|
||||
"github.com/cfreeman/embd"
|
||||
"github.com/cfreeman/embd/host/generic"
|
||||
)
|
||||
|
||||
var spiDeviceMinor = 32766
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue