As written the reactive code stays on even when scratching up then down, I feel it would be more informative to players if it would briefly turn off then on again with direction changes (streams of more than 1 scratch, end of BSS)
https://cdn.discordapp.com/attachments/533180429625458688/590577561814302725/video.mov
example behaviour from an arduino solution I had years ago
As written the reactive code stays on even when scratching up then down, I feel it would be more informative to players if it would briefly turn off then on again with direction changes (streams of more than 1 scratch, end of BSS)
https://cdn.discordapp.com/attachments/533180429625458688/590577561814302725/video.mov
example behaviour from an arduino solution I had years ago