diff --git a/LeonardoProMicro/AutomatedGearShifter/AutomatedGearShifter.ino b/LeonardoProMicro/AutomatedGearShifter/AutomatedGearShifter.ino index 5982e49..d6a0809 100644 --- a/LeonardoProMicro/AutomatedGearShifter/AutomatedGearShifter.ino +++ b/LeonardoProMicro/AutomatedGearShifter/AutomatedGearShifter.ino @@ -6,7 +6,7 @@ #include #include -#define Version "1.15.3" +#define Version "1.15.4" ////2DO: //diagnostyka i/lub przeciwdziaƂanie skokom predkosci //dlaczego wskaznik odnosi sie do poprawnego biegu a w tym czasie bieg jest zly? bo czas ponizej 2s? @@ -120,14 +120,14 @@ void setup() { digitalWrite(ServoSwitch, HIGH); myservo.attach(ServoPin); // attaches the servo on pin 4 to the servo object setPosition(8); +// +// Serial.begin(9600); - Serial.begin(9600); - - //DIPLAY settings - if (!display.begin(SSD1306_SWITCHCAPVCC, SCREEN_ADDRESS)) { - Serial.println(F("SSD1306 allocation failed")); - for (;;); // Don't proceed, loop forever - } +// //DIPLAY settings +// if (!display.begin(SSD1306_SWITCHCAPVCC, SCREEN_ADDRESS)) { +// Serial.println(F("SSD1306 allocation failed")); +// for (;;); // Don't proceed, loop forever +// } display.begin(SSD1306_SWITCHCAPVCC, SCREEN_ADDRESS); display.clearDisplay(); display.setTextColor(WHITE); @@ -175,7 +175,7 @@ void setup() { display.display(); for (servoCurrPos = myservo.read(); servoCurrPos <= 180; servoCurrPos++) { myservo.write(servoCurrPos); - delay(30); + delay(15); } //MEMORY eeprom_read_block(&totalDistReaded, totalDistMemLocation, 2); @@ -463,7 +463,7 @@ void prepareTurnOff() { display.display(); for (servoCurrPos = myservo.read(); servoCurrPos >= 60; servoCurrPos--) { myservo.write(servoCurrPos); - delay(30); + delay(15); } //Na czas diagnostyki // eeprom_write_block(&totalDist,totalDistMemLocation,2);