/* Teste si une broche est connecté à une autre */ #include #include #include #include #include #include #include "lcd.h" #include "CF.h" #include "movement.h" #include "buttons.h" #define VIT 0.40 void changerMoteursWrapper(float l, float r) { /* clearLCD(); */ printfToLCD(LCD_LINE_1, "L: %f", l); printfToLCD(LCD_LINE_2, "R: %f", r); changerMoteurs(l, r); } int main(int argc, char* argv[]) { (void)argc; (void)argv; wiringPiSetup(); initI2C(); initLCD(); configureCF(); configureButtons(); configureMovement(); changerMoteursWrapper(VIT, VIT); for (;;) { changerMoteursWrapper(VIT, VIT); pressedButton(BUT_BLOCK); brake(); pressedButton(BUT_BLOCK); } }