G15 libraries

Talk about Arduino board, sheilds. Sharing Arduino projects, program, problems, solutions, suggestions..... many more, all are welcome.

G15 libraries

Postby Anonymous000 » Fri Oct 31, 2014 10:05 pm

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.
Anonymous000
Fledgling
 
Posts: 1
Joined: Fri Oct 31, 2014 9:56 pm

Re: G15 libraries

Postby Idris » Fri Oct 31, 2014 11:13 pm

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).
Cytron Technologies invest time and resources providing tutorial, training and support for STEM education and maker movement. We need your support by purchasing products from Cytron Technologies. Thanks.
http://www.cytron.com.my
User avatar
Idris
Moderator
 
Posts: 409
Joined: Thu Mar 22, 2012 5:28 pm
Location: Pulau Pinang


Return to Arduino Based

Who is online

Users browsing this forum: No registered users and 11 guests

cron