diff --git a/lib/obus_module.cpp b/lib/obus_module.cpp index 79dc3ec..25a293d 100644 --- a/lib/obus_module.cpp +++ b/lib/obus_module.cpp @@ -42,7 +42,7 @@ void _updateLed() { digitalWrite(GREEN_LED, false); } - blink_next_time = millis() + BLINK_DELAY_SLOW; + blink_next_time = millis() + blink_delay; } } @@ -71,7 +71,7 @@ void setup(uint8_t type, uint8_t id) { obus_can::init(); strike_count = 0; - active = false; + active = true; pinMode(RED_LED, OUTPUT); pinMode(GREEN_LED, OUTPUT); @@ -142,7 +142,7 @@ void strike() { return; } strike_count++; - _setLedBlink(COLOR_RED, BLINK_DELAY_FAST); + digitalWrite(RED_LED, HIGH); time_stop_strike_led = millis() + 2000; obus_can::send_m_strike(this_module, strike_count); } diff --git a/misc/reverse_engineered_hardware/month_day_selector/month_day_selector.ino b/misc/reverse_engineered_hardware/month_day_selector/month_day_selector.ino index eb819ad..eef29eb 100644 --- a/misc/reverse_engineered_hardware/month_day_selector/month_day_selector.ino +++ b/misc/reverse_engineered_hardware/month_day_selector/month_day_selector.ino @@ -1,11 +1,11 @@ // yellow -#define CLOCK_PIN 8 +#define CLOCK_PIN 6 // orange -#define DATA_PIN 10 +#define DATA_PIN 7 // green -#define READ_PIN 7 +#define READ_PIN 5 uint8_t shiftInFixed(uint8_t dataPin, uint8_t clockPin, uint8_t bitOrder) {