aboutsummaryrefslogtreecommitdiff
path: root/software/scan.ino
diff options
context:
space:
mode:
Diffstat (limited to 'software/scan.ino')
-rw-r--r--software/scan.ino4
1 files changed, 2 insertions, 2 deletions
diff --git a/software/scan.ino b/software/scan.ino
index 9feba79..cc72e21 100644
--- a/software/scan.ino
+++ b/software/scan.ino
@@ -18,8 +18,8 @@ unsigned char get_state_row(unsigned char row, unsigned char direction) {
}
void scan() {
- shift_state[0] = (1 << scan_index);
- shift_state[1] = get_state_row(scan_index, scan_direction);
+ shift_state[0] = 0x00 ^ (1 << scan_index);
+ shift_state[1] = 0xff ^ get_state_row(scan_index, scan_direction);
update_shift_state();