Hi
I am having issues with our serial monitor - it comes up (finally) but does not display anything in window (just a blank white screen). How do I get this working?
We are running Windows 10 and an older version of Arduino
The program did load up and the lights on my Arduino board (Mega) did light up so I know that it works but no serial monitor to follow along with
The arduino is running on Com4
How do I get this working?
Here's the program
/* YourDuinoStarter_SerialMonitor_SEND_RCVE
- WHAT IT DOES:
- Receives characters from Serial Monitor
- Displays received character as Decimal, Hexadecimal and Character
- Controls pin 13 LED from Keyboard
- SEE the comments after "//" on each line below
- CONNECTIONS:
- None: Pin 13 built-in LED
- V1.01 11/29/2019 FIXED - THANKS! Peter Hellen
Questions: terry@yourduino.com */
/-----( Import needed libraries )-----/
/-----( Declare Constants and Pin Numbers )-----/
#define led 13 // built-in LED
/-----( Declare objects )-----/
/-----( Declare Variables )-----/
int ByteReceived;
void setup() /****** SETUP: RUNS ONCE ******/
{
pinMode(led, OUTPUT);
Serial.begin(9600);
Serial.println("--- Start Serial Monitor SEND_RCVE ---");
Serial.println(" Type in Box above, . ");
Serial.println("(Decimal)(Hex)(Character)");
Serial.println();
}//--(end setup )---
void loop() /****** LOOP: RUNS CONSTANTLY ******/
{
if (Serial.available() > 0)
{
ByteReceived = Serial.read();
Serial.print(ByteReceived);
Serial.print(" ");
Serial.print(ByteReceived, HEX);
Serial.print(" ");
Serial.print(char(ByteReceived));
if (ByteReceived == '1') // Single Quote! This is a character.
{
digitalWrite(led, HIGH);
Serial.print(" LED ON ");
}
if (ByteReceived == '0')
{
digitalWrite(led, LOW);
Serial.print(" LED OFF");
}
Serial.println(); // End the line
}// END Serial Available
}//--(end main loop )---
/-----( Declare User-written Functions )-----/
//( THE END )**