示例#1
0
void LCDi2cR::init () {
	
	I2c.begin();
	
	on();
	clear();
	blink_off();
	cursor_off(); 
	home();
	
}
示例#2
0
bool LCDi2cNHD::init () {
        
        Wire.begin();
        // TODO: Check that LCD was initialized properly. on() should return a value, command() should return a value and check endTranmission value, a global flag (initializeError) should be added
        if ( !on() )
        {
                return false;  // error
        }
        
        clear();
        blink_off();
        cursor_off(); 
        home();
        
        return true; // success
}