how to print out the serial output on arduino-cli

Hi everyone,

I am using arduino-cli on a raspberry pi to control my arduino mega.

I need to print out the output of a simple calculation as it's very common on the arduino IDE.

I use the Seria.begin command in the void setup as customary

Does anyone have any suggestion on how to do that?

I've never used the Arduino CLI. If some form of serial monitor is not incorporated, use a terminal program; under Linux it would be minicom.

Hi everyone,

I am using a mega board with a linux machine and I am using arduino-cli to do things.

I can successfully upload sketches and everything (led test is ok) but when I try the Serial.begin(9600) function I don't see the output (in this case I am sending resistance values over the serial) in the command line.

any suggestions?

thanks!

EDIT: edited the baud rate
EDIT: sorry for the double post, I could not find my original post in the forum. This can be deleted. Apologies.

Please bookmark https://forum.arduino.cc/index.php?action=profile;area=showposts;u=1425933 to find your posts.