diff options
-rw-r--r-- | skey.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -85,7 +85,7 @@ int skey_update_thread (void *data) { int column_index = 0; while (row_index < 3) { //sets the column pin high for reading - gpio_set_value_cansleep(row_pins[row_index], 1); + gpio_set_value_cansleep(row_pins[row_index], 0); //gives it some buffer time usleep_range(10,10); //reads with all the rows @@ -99,7 +99,7 @@ int skey_update_thread (void *data) { column_index++; } //sets the row pin low - gpio_set_value_cansleep(row_pins[row_index], 0); + gpio_set_value_cansleep(row_pins[row_index], 1); usleep_range(10,10); row_index++; } |