Try to implement DisplayController

This commit is contained in:
Johannes Wendel
2020-02-19 13:43:59 +01:00
parent a2e3ede062
commit e4ed6654aa
9 changed files with 31 additions and 28 deletions

View File

@@ -45,6 +45,7 @@ void DisplayFactory::create_pin_map()
{
nlohmann::json board_config = this->object.at(config_path::display_board);
this->pin_map["run"] = board_config.at(config_path::run_pin);
this->pin_map["lt"] = board_config.at(config_path::display_lt_pin);
nlohmann::json segment_select = board_config.at(config_path::display_segement_select);
this->pin_map["segment_select_A"] = segment_select.at("A");