Quantcast
Channel: Arduino Forum - Latest topics
Viewing all articles
Browse latest Browse all 15287

Can't get info to the Serial Monitor

$
0
0

I am new, so I am probably doing something I should not do. I simply trying to display a value for C ,
It complies with no problem. I have selected my Arduino Board "Arduino Uno Rev 4 Minima" and the port: /dev/cu.usbmodem14601. Is there something I am missing? I am trying to keep it simple to see if I can get the serial monitor to work. Mike

My code is:
void setup() {

// put your setup code here, to run once:

Serial.begin(9600);
int a = 2;
int b = 2;
int c = a + b;
Serial .print (c);
}

void loop() {
// put your main code here, to run repeatedly:

}

15 posts - 6 participants

Read full topic


Viewing all articles
Browse latest Browse all 15287

Trending Articles