
	//=================================================================================
	void InitReg()
	{
		//这是一个回调函数, 由外部配置接口函数
		set_interface();
		
		CMD.send_command( 0b0000_0001 );
		delay_10um( 250 );
		CMD.send_command( 0b0000_1000 );
		delay_10um( 8 );
		CMD.send_command( 0b0000_0110 );
		delay_10um( 8 );
		CMD.send_command( 0b0000_1100 );
		delay_10um( 8 );
	}
	void set_4bit()
	{
		CMD.send_command( 0x28 );
		delay_10um( 8 );
		CMD.send_command( 0x28 );
		delay_10um( 8 );
	}
	void set_8bit()
	{
		CMD.send_command( 0x38 );
		delay_10um( 8 );
		CMD.send_command( 0x38 );
		delay_10um( 8 );
	}
	void set_char( uint8 addr, uint8 data )
	{
		CMD.send_command( addr );
		delay_10um( 8 );
		CMD.send_data( data );
		delay_10um( 8 );
	}
	//延时
	void delay_10um( uint8 t )
	{
		loop( t ) loop( 160 ) {}
	}



