
Arduino
Bobsweetie
不经思考的人生是不值得过的
展开
-
arduino将从串口接收到的数据打印出来
/*Test the communication between ROS and arduino throuth serialbob2016,1,9*/char byte1;String str1 = "";void setup(){ Serial.begin(9600); pinMode(13, OUTPUT); }void loop(){ while (S原创 2016-01-16 14:38:48 · 18910 阅读 · 0 评论 -
开辟线程进行pc(ubuntu)和arduino串口通信的python程序
#!/usr/bin/env python#coding=utf-8import serialimport timeimport threadingimport globinhead = 'RECV' #接收数据头outhead = 'SEND' #发送数据头 class SerialData(threading.Thread):#创建threading.Thread的子原创 2016-01-16 14:54:38 · 2927 阅读 · 0 评论