Try to implement DisplayController
This commit is contained in:
@@ -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");
|
||||
|
||||
@@ -48,6 +48,7 @@ namespace config_path
|
||||
const char display_digit_select[] = "digit_select";
|
||||
const char display_digits[] = "digits";
|
||||
const char display_list[] = "displays";
|
||||
const char display_lt_pin[] = "lt";
|
||||
}
|
||||
|
||||
class ItemFactory
|
||||
|
||||
Reference in New Issue
Block a user