Example #1
0
func initDisplay() {
	C.bcm2835_init()
	C.TFT_init_board()
	C.TFT_hard_reset()
	C.RAIO_init()
	C.RAIO_SetBacklightPWMValue(255)
}
Example #2
0
// Init initialise the library by opening /dev/mem and getting pointers to the
// internal memory for BCM 2835 device registers. You must call this
// (successfully) before calling any other functions in this library (except
// SetDebug)
func Init() (err error) {
	if C.bcm2835_init() == 0 {
		return errors.New("Init: failed")
	}
	return
}