module
Version:
v0.0.0-...-5a00c06
Opens a new window with list of versions in this module.
Published: Aug 13, 2024
License: MIT
Opens a new window with license information.
README
¶
rpi-devices
rpi-devices implements drivers for various kinds of sensors or devices based on raspberry pi in pure Golang.
Usage
package main
import (
"time"
"github.com/shanghuiyang/rpi-devices/dev"
)
const pin = 26
func main() {
led := dev.NewLedImp(pin)
for {
led.On()
time.Sleep(1 * time.Second)
led.Off()
time.Sleep(1 * time.Second)
}
}
Currently Implemented Drivers
Projects
See my another repo rpi-projects for all projects that I developed them using this libaray.
Directories
¶
A4988 is a driver for A4988 driver board used to drive stepper motor such as NAME.
|
A4988 is a driver for A4988 driver board used to drive stepper motor such as NAME. |
example
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Click to show internal directories.
Click to hide internal directories.