added display init

This commit is contained in:
Jonas Zeunert
2020-01-10 23:26:35 +01:00
parent 46db4bd17b
commit 0fe36f3775
4 changed files with 18 additions and 1 deletions

View File

@@ -28,9 +28,14 @@ DisplayController::DisplayController(std::map<std::string, std::shared_ptr<items
this->displays.push_back(std::dynamic_pointer_cast<items::OutputDisplay>(display.second));
}
this->display_cycle_thread = std::thread(&DisplayController::cycle_displays, this);
for(auto &display : this->displays) {
pin_controller->initDisplay(*display);
}
activate_displays();
this->display_cycle_thread = std::thread(&DisplayController::cycle_displays, this);
CLOG(DEBUG, OUTPUT_LOGGER) << "Created DisplayController and started cycling them.";
}