reworked inputgpiointerface
This commit is contained in:
@@ -10,8 +10,12 @@
|
||||
class InputGPIOInterface
|
||||
{
|
||||
|
||||
bool InputGPIOInterface::read_input_data()
|
||||
bool InputGPIOInterface::read_input_data(char pin)
|
||||
{
|
||||
// setting address to read
|
||||
write_input_row(pin / MATRIX_SIZE);
|
||||
write_input_col(pin % MATRIX_SIZE);
|
||||
|
||||
return read_pin(this->input_data_address);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user