int R1,R2,R3; // Registrador= variavel de entrada
int RT_Total; // milimetro - variavel de saida
void setup() {
// put your setup code here, to run once:
Serial1.begin(115200);
// 1°. O valor de R1 = 20
R1 = 20;
// 2°. O valor de R2 = 40
R2 = 40;
// 3°. O valor de R2 = 60
R3 = 60;
// 4°. Soma R1,R2,R3
RT_Total = R1 + R2 + R3;
Serial1.print(RT_Total);
Serial1.print("[v]");
}
void loop() {
// put your main code here, to run repeatedly:
delay(250); // this speeds up the simulation
//Serial.println("Carlos Henrique");
}