keyestudio
www.keyestudio.com
case 3:lcd.print("Left ");Serial.print(" \r\n Left");
break;
case 4:lcd.print("Right");Serial.print(" \r\n Right");
break;
case 5:lcd.print("Stop ");Serial.print(" \r\n Stop");
break;
default:
break;
}
}
void LCD1602_init(void) //including initialized function of liquid crystal
{
lcd.init(); //invoking initialized function of LCD in LiquidCrystal_I2C.h
delay(10); //delaying for 10 millisecond
lcd.backlight(); //open backlight of LCD1602
lcd.clear(); //clear screen
}
void Show_V(unsigned char V)
{
lcd.setCursor(11, 0);
lcd.print("V= ");
lcd.setCursor(13, 0);
lcd.print(V,DEC);
Serial.print("\n Speed = ");
Serial.print(V,DEC);
}