예제 #1
0
파일: bcm2835.go 프로젝트: vonwenm/bcm2835
// 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()
}