refactor the static function in lcd.c to lcd_lowlevel.c