Question: Problem - You want to send serial data from Arduino displayed as text, decimal values, hexadecimal, or binary. char chrValue = 65; // these are

Problem - You want to send serial data from Arduino displayed as text, decimal values, hexadecimal, or binary.

char chrValue = 65; // these are the starting values to print

byte byteValue = 65;

int intValue = 65;

float floatValue = 65.0;

char c1 = 4;

char c2 = 210;

Serial.print("chrValue: ");

Serial.print(chrValue); Serial.print(" ");

Serial.write(chrValue); Serial.print(" ");

Serial.print(chrValue, DEC);

Serial.println();

Write code and match the following output. Increment each of the values by one and keep on printing them.

Output:

chrValue: A A 65

byteValue: 65 A 65

intValue: 65 65 41 101 1000001

floatValue: 65.00

chrValue: B B 66

byteValue: 66 B 66

intValue: 66 66 42 102 1000010

floatValue: 66.00

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!