func initDisplay() { C.bcm2835_init() C.TFT_init_board() C.TFT_hard_reset() C.RAIO_init() C.RAIO_SetBacklightPWMValue(255) }
func setBacklightPwmValue(brightness int) { C.RAIO_SetBacklightPWMValue(C.uint8_t(brightness)) }
func closeGpio() { C.TFT_hard_reset() C.RAIO_SetBacklightPWMValue(0) C.bcm2835_close() }