diff options
author | lonkaars <loek@pipeframe.xyz> | 2021-11-26 22:19:07 +0100 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2021-11-26 22:19:07 +0100 |
commit | e6fc8e8af4ff8bd2709eb4485ba1ba9beadd27a5 (patch) | |
tree | 9a70bd47b011304b270531a4d0f1e67cc622d8a4 /software/scan.ino | |
parent | f9335ba20b0e950e9881749e9bc3006eacefc305 (diff) |
first animation done
- added variable length animations
- added readme to software subdirectory
- implemented first animation
Diffstat (limited to 'software/scan.ino')
-rw-r--r-- | software/scan.ino | 4 |
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(); |