refactored InputName
This commit is contained in:
@@ -15,6 +15,9 @@ bool InputGPIOInterface::read_input_data(char pin)
|
||||
write_input_row(pin / MATRIX_SIZE);
|
||||
write_input_col(pin % MATRIX_SIZE);
|
||||
|
||||
// wait for mux to set address
|
||||
std::this_thread::sleep_for(std::chrono::nanoseconds(SLEEP_DURATION_NANO));
|
||||
|
||||
return read_pin(this->input_data_address);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user