01-01-2014 05:01 PM
Note in the image below that some of the wires are "fuzzy." That indicates "constant folding." When the compiler finds code which never changes its output, that code is folded, or repalced by a constant in the machine code. So the row index, the value of the replacement element, and one of the inputs to the not equal comparison never change. Your simple math is so simple that your row index is always 0.
Lynn
01-01-2014 05:30 PM
bary77 wrote:Now I have the following code.
As a first step don't complicate things with property nodes. Setting an indicator to disabled is completely useless, because they cannot be operated anyway at run time. All you might want to do is change the number of visible rows and columns.
Here's some simple code for you to chew on. Maybe it can give you some ideas.
01-01-2014 06:01 PM
thank you very much
Now I will try to modify this program to extinguish a LED when the second is lit.
Thanks !
01-01-2014 06:03 PM - edited 01-01-2014 06:05 PM
@OmarBahri wrote:
Now I will try to modify this program to extinguish a LED when the second is lit.
Just eliminate the shift register and use a plain, non-indexing input tunnel for the 2D array. The rest can stay the same. Try it.
01-01-2014 06:54 PM
my problem is solved
thank you very much !
01-01-2014 06:59 PM - edited 01-01-2014 07:44 PM
bary77 wrote:my problem is solved
This is just the first step, now you need to do at leaast two things: (1) completely understand the purpose of every single code element and (2) expand it for other light patterns as an exercise.