Hi
I'm having trouble modifying the Seeeduino GPRS library to use hardware UART Serial1 on my Arduino Pro Micro 5V/16MHz ATMega 32U4. I'm a C++ newbie.
I've tried swapping SoftwareSerial to HardwareSerial but then certain methods not available to that class. Eg:
SoftwareSerial *serialSIM900 = NULL;
void sim900_init(void * uart_device, uint32_t baud)
{
serialSIM900 = (HardwareSerial*)uart_device;
serialSIM900->begin(baud);
}
Any tips on modifying the following files, to work with UART ("Serial1" on the Pro Micro)?
GPRS_Shield_Arduino.cpp
GPRS_Shield_Arduino.h
sim900.cpp
sim900.h
Thanks