Skip to main content
deleted 8 characters in body
Source Link
user31481
user31481

I have 5 types of such functions with different input parameters.

"blink(int a,char b, int c);*

fade(int a,int b,int c);

split(int a,int d)"; and so on....

blink(int a,char* b, int c);
fade(int a,int b,int c);
split(int a,int d); 

and so on from serial input what i want is to call this three functions in any combinations that can be later executed in a loop. For example my serial input is this .. [blink(a,b,c),fade(a,b,c),blink(a,b,c),fade(a,b,c),split(a,d),blink(a,b,c)]

[blink(a,b,c),fade(a,b,c),blink(a,b,c),fade(a,b,c),split(a,d),blink(a,b,c)]

The Code should also be saved in memory so that when a person reset arduino , theArduino. The order of functions execute without waiting for serial input.The order of functions would get change only when person enter serial data to arduino. I have no clue where to begin please help me out.

I have 5 types of such functions with different input parameters.

"blink(int a,char b, int c);*

fade(int a,int b,int c);

split(int a,int d)"; and so on....

from serial input what i want is to call this three functions in any combinations that can be later executed in a loop. For example my serial input is this .. [blink(a,b,c),fade(a,b,c),blink(a,b,c),fade(a,b,c),split(a,d),blink(a,b,c)]

The Code should also be saved in memory so that when a person reset arduino , the order of functions execute without waiting for serial input.The order of functions would get change only when person enter serial data to arduino. I have no clue where to begin please help me out.

I have 5 types of such functions with different input parameters.

blink(int a,char* b, int c);
fade(int a,int b,int c);
split(int a,int d); 

and so on from serial input what i want is to call this three functions in any combinations that can be later executed in a loop. For example my serial input is this ..

[blink(a,b,c),fade(a,b,c),blink(a,b,c),fade(a,b,c),split(a,d),blink(a,b,c)]

The Code should also be saved in memory so that when a person reset Arduino. The order of functions execute without waiting for serial input.The order of functions would get change only when person enter serial data to arduino. I have no clue where to begin please help me out.

Source Link

How to call 5 different functions in a loop based on serial input?

I have 5 types of such functions with different input parameters.

"blink(int a,char b, int c);*

fade(int a,int b,int c);

split(int a,int d)"; and so on....

from serial input what i want is to call this three functions in any combinations that can be later executed in a loop. For example my serial input is this .. [blink(a,b,c),fade(a,b,c),blink(a,b,c),fade(a,b,c),split(a,d),blink(a,b,c)]

The Code should also be saved in memory so that when a person reset arduino , the order of functions execute without waiting for serial input.The order of functions would get change only when person enter serial data to arduino. I have no clue where to begin please help me out.