Answers for "collegamento 2 arduino codice"

0

collegamento 2 arduino codice

//Sketch scritto da Alessandro Oppo per 9minuti.it
//collegamenti rx-tx tx-rx gnd-gnd
 
#include <SoftwareSerial.h>
 
char stringa[20];
 
SoftwareSerial receiver(8, 7);
 
void setup() {
  Serial.begin(9600);
  receiver.begin(9600);
}
 
void loop() {
 
  while (receiver.available() == false) {
 
    receiver.readBytes(stringa, 20);
    Serial.write("\n");
    Serial.write(stringa);
 
  }
 
  delay(1000);
}
Posted by: Guest on April-21-2020

Browse Popular Code Answers by Language