bcm2835:Raspberry Pi中使用的bcm2835的包装

时间:2021-05-12 10:10:21
【文件属性】:
文件名称:bcm2835:Raspberry Pi中使用的bcm2835的包装
文件大小:35KB
文件格式:ZIP
更新时间:2021-05-12 10:10:21
C 使用语言包来控制Raspberry Pi中使用的Broadcom BCM 2835。 以相同名称的Mike McCauley的C库为基础。 该软件包需要Golang 1.1,因为稳定的1.0版本没有提供稳定的cgo版本。 需要以sudo的身份运行。 例子: package main import ( "bcm2835" "time" "fmt" ) func main () { err := bcm2835 . Init () // Initialize the library if err != nil { fmt . Println ( err ) return } defer bcm2835 . Close () // Run close when returning bcm2835 . GpioFsel ( bcm2835 .
【文件预览】:
bcm2835-master
----bcm2835.go(4KB)
----README.md(795B)
----bcm2835.c(53KB)
----bcm2835.h(89KB)

网友评论