I have a very basic script that is supposed to display something to the serial monitor but no matter what I try the serial monitor won't display anything...I;ve watched about 5 tutorials now and each one has failed to display anything. Any ideas what I'm doing wrong?
Here is my code:
char rx_byte;
void setup() {
Serial.begin(115200);
pinMode(13, OUTPUT);
digitalWrite(13, LOW);
}
void loop() {
if(Serial.available() > 0){
rx_byte = Serial.read();
Serial.print("You typed: ");
Serial.println(rx_byte);
digitalWrite(13, HIGH);
delay(1000);
digitalWrite(13, LOW);
}
}
I'm typing just the number 1 and 0
- and then you pressed the Send button? Please addSerial.println ("Hello, world");
after theSerial.begin
line and see if that appears in the serial monitor.