I am having trouble using the serial monitor with my Arduino Uno R3. Everything I send to the serial monitor using both Serial.print and Serial.write is displayed in extended ASCII Codes. what I understand is that Serial. Write should display the message as the actual text, where Serial. print displays it in ASCII codes. How can I get the serial monitor to display the number as the text, Would the code be wrong, or are there some settings I need to change? Here is the code I am using:
/*
SerialOutput sketch
Print numbers to the serial port
*/
void setup()
{
Serial.begin(9600); // send and receive at 9600 baud
}
int number = 0;
void loop()
{
Serial.print("The number is ");
Serial.println(number); // print the number
Serial.write(number);
delay(500); // delay half second between numbers
number++; // to the next number
}
Sorry for the poor post, anyways here is the code and the information from the serial monitor.
void setup()
{
Serial.begin(9600); // send and receive at 9600 baud
}
int number = 0;
void loop()
{
Serial.print("The number is ");
Serial.println(number); // print the number
Serial.write(number);
delay(500); // delay half second between numbers
number++;
delay(1000);}