Example #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
}
Example #2
0
func closeGpio() {
	C.TFT_hard_reset()
	C.RAIO_SetBacklightPWMValue(0)
	C.bcm2835_close()
}