BlueVia / Official-Arduino

Arduino GPRS/GSM Shield Sample Code
GNU Lesser General Public License v3.0
30 stars 34 forks source link

Question about GSM3IO.h #7

Open Juju1111 opened 7 years ago

Juju1111 commented 7 years ago

I wonder : in the file GSM3IO.h, on these lines :

elif defined(AVR_ATmega2560) || defined(AVR_ATmega1280)

#define __TXPIN__ 3
#define __RXPIN__ 10
#define __RXINT__ 4

Why RXPIN is 10 ? Shouldn't it be 2 ? As INT4 is on PIN2 ?

vittorioexp commented 7 years ago

Hi,

i tried to change it to 14, 18, 19, 20, 21, 50 but it doesn't work, and i really can't understand the reason.

Let me know if you have found a solution.

Vittorio

vittorioexp commented 7 years ago

Hi,

i found a solution: use pin A15 of arduno mega.

...

elif defined(AVR_ATmega2560) || defined(AVR_ATmega1280)

#define __TXPIN__ 3

#define __RXPIN__ A15

#define __RXINT__ 4

...

Connect pin 2 to pin A15. Good luck. It works for me.

Vittorio