mirror of
https://github.com/kidoman/embd
synced 2025-07-03 03:47:33 +02:00
simplify package structure
This commit is contained in:
parent
3cae4064dc
commit
36f2c0486d
41 changed files with 736 additions and 885 deletions
|
@ -2,12 +2,12 @@
|
|||
|
||||
package main
|
||||
|
||||
import "github.com/kidoman/embd/gpio"
|
||||
import "github.com/kidoman/embd"
|
||||
|
||||
func main() {
|
||||
gpio.Open()
|
||||
defer gpio.Close()
|
||||
embd.InitGPIO()
|
||||
defer embd.CloseGPIO()
|
||||
|
||||
gpio.SetDirection(10, gpio.Out)
|
||||
gpio.DigitalWrite(10, gpio.High)
|
||||
embd.SetDirection(10, embd.Out)
|
||||
embd.DigitalWrite(10, embd.High)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue