Flowcode v5 switch and LED array

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 5.
To post in this forum you must have a registered copy of Flowcode 5 or higher.

Moderator: Benj

Post Reply
Seusss
Posts: 1
Joined: Wed Sep 26, 2018 5:10 pm
Contact:

Flowcode v5 switch and LED array

Post 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

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Flowcode v5 switch and LED array

Post 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.

Post Reply