brian25
Member level 2
- Joined
- Feb 18, 2013
- Messages
- 52
- Helped
- 2
- Reputation
- 4
- Reaction score
- 2
- Trophy points
- 1,288
- Activity points
- 1,601
Hi guys, can you control the pins of arduino simultaneously?
Is this possible using array?
Pin 1 = 11;
Pin 2 = 10;
Pin 3= 9;
Pin 4= 8;
Char Old[]= {"11, 10, 9, 8};
Void setup()
{
}
Void loop()
{
Char ;
Char new []= {"1111"};
i = new;
if (strcmp(new, "1111") == 0 && strcmp(old, "1111"){
Digitalwrite( i, high);
}
the concept is if the two variable matches it will execute the 4 pins high output at the same time and when 0000 it will execute low simultaneously..
Tnx
Is this possible using array?
Pin 1 = 11;
Pin 2 = 10;
Pin 3= 9;
Pin 4= 8;
Char Old[]= {"11, 10, 9, 8};
Void setup()
{
}
Void loop()
{
Char ;
Char new []= {"1111"};
i = new;
if (strcmp(new, "1111") == 0 && strcmp(old, "1111"){
Digitalwrite( i, high);
}
the concept is if the two variable matches it will execute the 4 pins high output at the same time and when 0000 it will execute low simultaneously..
Tnx