Page 1 of 1

Flowcode v5 switch and LED array

Posted: Wed Sep 26, 2018 5:15 pm
by Seusss
Help me

When the switch is high . The led array continously counting. I want it to be everytime i hit the switch it will count as a binary in the led array. From 1 to 255

Re: Flowcode v5 switch and LED array

Posted: Wed Sep 26, 2018 5:20 pm
by Benj
Hello,

Should be fairly straightforward...

Wait for switch to go high
Increment counter
Write counter to LEDs
Wait for switch to go low
Loop back to start

If you've built your own hardware then make sure you have wired the switch like this.
https://www.matrixtsl.com/wiki/index.ph ... e#Examples

Have a go and if you have problems then please post the project so far and we can help to guide you onwards.