Added date module
This commit is contained in:
parent
95de8af77d
commit
9bf713b520
2 changed files with 6 additions and 6 deletions
|
@ -42,7 +42,7 @@ void _updateLed() {
|
||||||
digitalWrite(GREEN_LED, false);
|
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();
|
obus_can::init();
|
||||||
|
|
||||||
strike_count = 0;
|
strike_count = 0;
|
||||||
active = false;
|
active = true;
|
||||||
|
|
||||||
pinMode(RED_LED, OUTPUT);
|
pinMode(RED_LED, OUTPUT);
|
||||||
pinMode(GREEN_LED, OUTPUT);
|
pinMode(GREEN_LED, OUTPUT);
|
||||||
|
@ -142,7 +142,7 @@ void strike() {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
strike_count++;
|
strike_count++;
|
||||||
_setLedBlink(COLOR_RED, BLINK_DELAY_FAST);
|
digitalWrite(RED_LED, HIGH);
|
||||||
time_stop_strike_led = millis() + 2000;
|
time_stop_strike_led = millis() + 2000;
|
||||||
obus_can::send_m_strike(this_module, strike_count);
|
obus_can::send_m_strike(this_module, strike_count);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
// yellow
|
// yellow
|
||||||
#define CLOCK_PIN 8
|
#define CLOCK_PIN 6
|
||||||
|
|
||||||
// orange
|
// orange
|
||||||
#define DATA_PIN 10
|
#define DATA_PIN 7
|
||||||
|
|
||||||
// green
|
// green
|
||||||
#define READ_PIN 7
|
#define READ_PIN 5
|
||||||
|
|
||||||
uint8_t shiftInFixed(uint8_t dataPin, uint8_t clockPin, uint8_t bitOrder) {
|
uint8_t shiftInFixed(uint8_t dataPin, uint8_t clockPin, uint8_t bitOrder) {
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue