这个arduino代码的输出是什么?

时间:2016-06-28 09:10:46

标签: arduino-uno arduino-ide

我的Arduino代码是:

String myString;
void setup() {
  // initialize serial and wait for port to open:
  Serial.begin(9600);
  while (!Serial) {
    ; // wait for serial port to connect. Needed for Leonardo only
    }

 myString.reserve(26);
 myString = "i=";
 myString += "1234";
 myString += ", is that ok?";

 // print the String:
  Serial.println(myString);
 }

void loop() {
 // nothing to do here
}

1 个答案:

答案 0 :(得分:0)

O / P :" i = 1234,可以吗?"

为什么这么傻问题?

有任何特殊原因或任何数学技巧吗?