Hi I'm trying to figure out how to split the following LCD display code for a scrolling LED effect. but when I try to use the Substring function I get the error "class string has no member named Substring"
void setup()
{
lcd.init();
}
void loop()
{
for(int i = 0; i < 20; i++) {
lcd.clear ();
lcd.backlight();
lcd.setCursor(i, 1);
String printy = "Hello World ";
String printy1 = printy.SubSting(0, 20-i);
String printy2 = printy.SubSting(20-i, 20);
lcd.print(printy1);
delay(500);
}
}
抱歉,如果我正确拼写字符串并输入“ substring”而不是“ substing”,这会有所帮助。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.