I have a sketch that I want to use with a mega 1280, arduino and an Uno. In order for each of these to work I need to setup some items differently. Can I use a #ifdefine statement to do this? What I am looking for is something like this:
#if defined(__AVR_ATmega1280__)//Use Serial2#endif
#if defined(__AVR_ATmega328P__)//Use Serial#endif
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16