有用的链接在这里:http://hi.baidu.com/mizuda/item/06b7fdc1d0e45a0ec710b2dd
更加详细的内容请查阅Arduino官方:http://arduino.cc/en/Serial/Write
代码如下:
/* *SendBinary sketch *Send a header followed by two random integer values as binary data. */ int intValue; // an short integer value (16 bits = 2bytes) intvalue must be less than 0xffff(65535 = 255*256+255) void setup(){ Serial.begin(9600