Merci de ta grande patience
voici la modif mais j'ai toute mes 'fonctions' non reconnues
Arduino : 1.8.4 (Windows 7), Carte : "Arduino/Genuino Uno"
D:\Donnees\0_Personnel\Bateau\00 ok\Voiture_OK_BATEAU\Voiture_OK_BATEAU.ino: In function 'void loop()':
Voiture_OK_BATEAU:117: error: 'checkDirection' was not declared in this scope
checkDirection(); // 10 mn * 60 * 1 000
^
Voiture_OK_BATEAU:118: error: 'drive' was not declared in this scope
drive();
^
Voiture_OK_BATEAU:121: error: 'checkDirectionVersBordure' was not declared in this scope
checkDirectionVersBordure(); // 20 mn * 60 * 1 000
^
Voiture_OK_BATEAU:122: error: 'drive' was not declared in this scope
drive();
^
Voiture_OK_BATEAU:125: error: 'pause' was not declared in this scope
pause(); // 30 mn * 60 * 1 000 après 30 mn de fonctionnement mise en pause de 10 mn
^
Voiture_OK_BATEAU:127: error: 'startMillis' was not declared in this scope
else startMillis = millis();
^
Voiture_OK_BATEAU:130: error: a function-definition is not allowed here before '{' token
void pause () { // utilisation du second chrono pour arrété au bout de 30 mn
^
Voiture_OK_BATEAU:136: error: a function-definition is not allowed here before '{' token
void checkDistance() {
^
Voiture_OK_BATEAU:303: error: expected '}' at end of input
}
^
exit status 1
'checkDirection' was not declared in this scope
le code entier suit