串口通讯问题 myPort.write(0x0a)
processing吧
全部回复
仅看楼主
level 2
2010冰激凌 楼主
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
level 2
2010冰激凌 楼主
好棒好棒,我晓得嘞[太开心]
2017年09月08日 10点09分 2
level 10
发生了什么[黑线]
2017年09月08日 16点09分 3
1