Arduino Shield Question

Status
Not open for further replies.

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 how to use multiple shields in Arduino?

if i have two..
example, GSM and Ethernet can this work simultaneously in void setup?


Code:
void setup(){

Serial.begin(9600);
    if (gsm.begin(2400)){
        Serial.println("\nstatus=READY");
        started=true;
    }
Ethernet.begin(mac, ip);
server.begin();

}
 

If you are not sure what each of the begin functions do, open library file and see if there is any setting that will overwrite the one previously set. Basically, i dont see the problem if there are no while loops in the begin function (and it should not be) and if they dont use the same pinout.
 
Reactions: brian25

    brian25

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…