Arduino refactoring #4

Open
fiveop wants to merge 28 commits from fiveop/arduino_refactoring into master
Showing only changes of commit 7449b87004 - Show all commits

View file

@ -30,6 +30,18 @@ void setup(){
pinMode(GREEN_LED_OUTPUT_PIN, OUTPUT);
}
void loop(){
print_status();
update_measured_state_counter();
update_published_state();
delay(DELAY_TIME);
update_led_pins();
}
void print_status() {
Serial.print(" ");
Serial.print(published_state);
@ -70,15 +82,3 @@ void update_led_pins() {
digitalWrite(YELLOW_LED_OUTPUT_PIN, LOW);
}
}
void loop(){
print_status();
update_measured_state_counter();
update_published_state();
delay(DELAY_TIME);
update_led_pins();
}