thehapyone / BareBoneSim800

A BareBone Arduino Library For SIM800 Modules
GNU General Public License v3.0
47 stars 18 forks source link

How to Modify the TX and RX pin for SoftwareSerial #5

Closed saif1786 closed 5 years ago

saif1786 commented 5 years ago

In my project, I was using a TFT LCD screen shield along with sim800 module, hence not able to use digital pin 8 and 9. Is there any method to modify this by using barebonesim800.h or AltSoftSerial.h?

thehapyone commented 5 years ago

You can attempt to change the library to use SoftwareSerial and use any two pins of your choice, but I won't recommend that since it can conflict with other libraries.

Use this newly modified files, replace the old .h and .c files in the library. barebone_temp_fix.zip

You can change the Pins used for communication in this section -

 #include "Arduino.h"

 #define RX_PIN 10      //not needed since the AltSoftSerial has already define it inside
 #define TX_PIN 11