From e6fc8e8af4ff8bd2709eb4485ba1ba9beadd27a5 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Fri, 26 Nov 2021 22:19:07 +0100 Subject: first animation done - added variable length animations - added readme to software subdirectory - implemented first animation --- software/scan.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'software/scan.ino') 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(); -- cgit v1.2.3