summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorknolax <1339802534.kk@gmail.com>2017-12-23 12:47:00 -0500
committerknolax <1339802534.kk@gmail.com>2017-12-23 12:47:00 -0500
commitc8fb72f0bce3a452d51ed095277b3a59878f19a4 (patch)
tree60e4ab89a77b5958ba39f134a41ee2b1dac7ea46
parent0ba35aea7958934a24205b3db93ede394e797594 (diff)
switched the output pin states as they might be considered active_low in the legacy gpio interfacd
-rw-r--r--skey.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/skey.c b/skey.c
index f211398..19e0002 100644
--- a/skey.c
+++ b/skey.c
@@ -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++;
}