Page 1 of 1

G15 libraries

PostPosted: Fri Oct 31, 2014 10:05 pm
by Anonymous000
Hi. I'm using the previous version of the GD02 G15 driver and planning on using the hardware Serial 1 (Tx1 and Rx1) of the Arduino Mega which is pin 18 & 19, if I want to use the hardware serial instead of software serial since Arduino Mega consists of 4 pairs of hardware serial. What are the necessary changes in the libraries that will allow me to use hardware serial pin 18 & 19 of the Arduino MEGA.

Thank you.

Re: G15 libraries

PostPosted: Fri Oct 31, 2014 11:13 pm
by Idris
Hi Anonymous000,

I think you can modify G15.cpp (under libraries - G15 folder), at G15::send_packet function, try to replace Serial to Serial1 (for pin 18:TX1 and 19:RX1).