//------------------------------------------------------------------------------------- //initialise the LCD module //-------------------------------------------------------------------------------------- void lcd_ini(void) { nRST = 0; delay(1000); // wait for the power stablised nRST = 1; //lcd_setting(display_on); //lcd_setting(0xa4); // normal "H" lcd_setting(bias); // set the 1/9 bias voltage lcd_setting(ADC_NOM); lcd_setting(SCAN_NOM); // set the scan direction lcd_setting(ratio); // set the ratio (1+Ra/Rb)=5; lcd_setting(mode_enable); // enable V0 setting lcd_setting(coffient); // set the a=53; lcd_setting(pwr_control); // open all power source lcd_setting(display_on); //lcd_setting(display_off); // test the lcd