void lcd_backlight_ctrl(bool on) { LCD_BL_INIT(); if(on){ LCD_BACKLIGHT_HIGH(); } else{ LCD_BACKLIGHT_LOW(); } }
void lcd_backlight_ctrl(bool on) { P0DIR &=~(BIT(4));P0PU|= (BIT(4)); if(!on){ LCD_BACKLIGHT_HIGH(); } else{ LCD_BACKLIGHT_LOW(); } }
void lcd_backlight_ctrl(bool on) { if(!on){ P0DIR |= (BIT(2));P0PU|= (BIT(2)); LCD_BACKLIGHT_HIGH(); } else{ P0DIR |= (BIT(2));P0PD|= (BIT(2)); LCD_BACKLIGHT_LOW(); } }