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