版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。
04-17
1万+
输入a,发送湿度,输入b,发送温度#include <dht11.h> dht11 DHT11; #define DHT11PIN 8 void setup(){ Serial.begin(9600); } void loop(){ int chk = DHT11.read(DHT11PIN); if(Serial.available()>0) {...
/*Test the communication between ROS andarduino throuth serial bob 2016,1,9 */ char byte1; String str1 = ""; void setup() { Serial.begin(9600); pinMode(13, OUTPUT); } void loop() { while (S