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
Flowcode v5 switch and LED array
Moderator: Benj
- 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
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.
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.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel