我目前正在做一个项目,由于某些原因,Python代码无法与Arduino板正常通信。我将非常感谢任何帮助,因为我已经尝试了一切,但他们都失败了。在
代码
#include <LiquidCrystal.h>
#include <LiquidCrystal.h>
// initialize the library with the numbers of the interface pins
LiquidCrystal lcd(13,12,11,10,9,8);
void setup() {
// set up the LCD's number of columns and rows:
lcd.begin(16, 2);
// Print a message to the LCD.
lcd.print("Hello World");
}
void loop() {
// scroll 13 positions (string length) to the left
// to move it offscreen left:
for (int positionCounter = 0; positionCounter < 13; positionCounter++) {
// scroll one position left:
lcd.scrollDisplayLeft();
// wait a bit:
delay(500);
}
}
^{pr2}$
目前没有回答
相关问题 更多 >
编程相关推荐