level 2
void mouseClicked() {
i++;
if (i % 2== 0) {
myPort.write('H');
str="Micro:bit LEDS show txt = H";
} else {
myPort.write('L');
str="Micro:bit LEDS show txt = L";
}
myPort.write(0x0a);
如果没有myPort.write(0x0a);语句,则通讯不能正常进行,为什么?
2017年09月08日 10点09分
1