Пример #1
0
func initDisplay() {
	C.bcm2835_init()
	C.TFT_init_board()
	C.TFT_hard_reset()
	C.RAIO_init()
	C.RAIO_SetBacklightPWMValue(255)
}
Пример #2
0
func setBacklightPwmValue(brightness int) {
	C.RAIO_SetBacklightPWMValue(C.uint8_t(brightness))
}
Пример #3
0
func closeGpio() {
	C.TFT_hard_reset()
	C.RAIO_SetBacklightPWMValue(0)
	C.bcm2835_close()
}