diff --git a/WINDER_ADV.ino b/OpenWatchWinder.ino similarity index 94% rename from WINDER_ADV.ino rename to OpenWatchWinder.ino index a293b5986112d0488735d005d97eae753e5bdb51..f50022fef25bdc4d720bac988287ebd8ab37edac 100644 --- a/WINDER_ADV.ino +++ b/OpenWatchWinder.ino @@ -63,12 +63,13 @@ void setup() winder.setMaxSpeed(ROT_SPEED); winder.setAcceleration(ROT_ACCEL); WState = W_IDLE; + + Serial.println(">>Winder Ready<<"); } void loop() { StateType old_state = WState; - static long act_sec = 0; pwr_sw.check(); pwr_led.Update(); @@ -161,6 +162,11 @@ void loop() if (Continue) { pwr_led.Breathe(5000).Forever(); + Serial.println(">>Winder Stopped, will continue<<"); + } + else + { + Serial.println(">>Winder Stopped, will not continue<<"); } break; // case W_STOP @@ -168,7 +174,6 @@ void loop() { long temp = millis() - StartTime; long delta = 60L * 1000L; - static long old_sec; static int last_min = false; if (Restart) @@ -193,15 +198,6 @@ void loop() } last_min = true; } - else - { - act_sec = millis() / 1000; - if (act_sec != old_sec) - { - Serial.println(act_sec); - old_sec = act_sec; - } - } } break; // W_PAUSE @@ -267,10 +263,10 @@ void handleSwEvent(AceButton *button, uint8_t eventType, break; default: - Serial.print("SW: "); - Serial.print(eventType); - Serial.print(", "); - Serial.println(buttonState); + //Serial.print("SW: "); + //Serial.print(eventType); + //Serial.print(", "); + //Serial.println(buttonState); break; } } diff --git a/wiring.png b/wiring.png new file mode 100644 index 0000000000000000000000000000000000000000..b6a858365c8939439f9a0624e501665fe6e02d41 Binary files /dev/null and b/wiring.png differ