示例#1
0
// Close closes the library, deallocating any allocaterd memory and closing
// /dev/mem
func Close() (err error) {
	if C.bcm2835_close() == 0 {
		return errors.New("Close: failed")
	}
	return
}
示例#2
0
文件: native.go 项目: zigapeda/raspui
func closeGpio() {
	C.TFT_hard_reset()
	C.RAIO_SetBacklightPWMValue(0)
	C.bcm2835_close()
}