- Wed Nov 18, 2015 5:42 pm
#34461
Oh so you can't do like an array of different things to check for .
Put 1 2 4 6 7 9 11 12 13 into an array somehow and cycle through these values performing the routine hrmmm interesting I suppose that is one slight disadvantage of basic.
Do you have an example of one using a performing an action in a function other than say like simple math or lets just have a hypothetical here lets just say for the kicks of it you could read all the pins in order...
Lets say the pins were 0-16 what would an example of the code look like?
Again not real hypothetical.
I would think you could check the value of x and then skip the read using an if statement for instance and just skip the pins you can't read it would likely still result in a lot tighter cleaner code if this is possible errr I'm not a GURU of code but just thinking out loud here. Keeping things tight there is always some interesting method to shave lines of code or save on resources it seems.