Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Question Arduino array pin....

Status
Not open for further replies.

brian25

Member level 2
Member level 2
Joined
Feb 18, 2013
Messages
52
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,288
Visit site
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
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top