Ways to make shortcuts in code

Thread Starter

FroceMaster

Joined Jan 28, 2012
596
Hi
I Have a bunch(45) "macroes" setting up to 15 outputs according til variables.
But i think codes will be faster and better instead of using case or if, if we could somehow "replace" some of value from a variable. Ex if var1= 23 the "macro23" should run.
If done by if senensces i think will be a mess. Or even Case.

Nothing coocked together yet, but hope u get the meaning, any way it possible ?

Mcu = 16F18877.
 
Top