refactored InputName

This commit is contained in:
Jonas Zeunert
2018-05-31 17:42:43 +02:00
parent 2321f2997f
commit 01b0d990f3
8 changed files with 60 additions and 55 deletions

View File

@@ -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);
}