Hi guys,
I am trying to play with serial software and I used this code but all thing what I got is "C" every time I hit enter button! I am using putty software to access the serial
here is the code :
#include <SoftwareSerial.h>
SoftwareSerial mySerial(0, 1); // RX, TX
int a=0;
char c;
char d;
void setup() {
Serial.begin(9600);
Serial.println("Goodnight moon!");
mySerial.begin(9600);
mySerial.println("Hello, world?");
}
void loop() {
delay(10);
if (Serial.available()) {
c=Serial.read();
delay(10);
Serial.write(c);
}
delay(10);
if (mySerial.available()) {
d=mySerial.read();
delay(10);
mySerial.write(d);
}
}
Any Idea how to solve this issue? thanks for all