Hobbyist Toolkit

cancel
Showing results for 
Search instead for 
Did you mean: 

Send sequence values (T/F) to different leds connected to arduino

FORUM.png

Hello, thank you for reading me, I´m trying to do a 3 led sequence and send it to a arduino with also 3 leds but the sequence is not working on the physical leds

0 Kudos
Message 1 of 4
(96 Views)

Basic dataflow problem!

 

Your sequence runs in parallel the the DAQ train, each runs once per iteration of the while loop. You don't need any local variables at all here!

0 Kudos
Message 2 of 4
(80 Views)

Your ABC should not be controls if you are using them as indicators (to be changed by the code instead of the user.)

 

I don't have your hardware, but here's a quick draft. (I am sure things can be simplified quite a bit more).

 

altenbach_1-1651599485109.png

 

 

0 Kudos
Message 3 of 4
(75 Views)

just got the code, and added linx

LEDExample with linx.png

Jorge Augusto Pessatto Mondadori, PhD
Sistema Fiep
CLAD, CLD
0 Kudos
Message 4 of 4
(53 Views)