Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int vetor[30];
- int VD1 = 0;
- void setup()
- {
- Serial.begin(9600);
- }
- void loop()
- {
- switch (vetor[21])
- {
- case 0:
- vetor[21] = 1;
- break;
- case 1: Serial.println(" ==> Digite o valor");
- while (vetor[0] == 0)
- {
- if (Serial.available() > 0)
- {
- vetor[0] = Serial.parseFloat();
- }
- }
- VD1 = vetor[0];
- Serial.print( VD1);
- Serial.println(" Segundo(s) ");
- break;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement