Pro Micro : how do I use a serial interface to communicate with a device?


I have a Pro Micro board. I know how to use the Serial librairie to communicate with my PC via the USB and the serial monitor.

Now I want to communicate with a GPS via a serial link. Can I use the pins Tx and Rx on the board ?
(see attached picture source Pro Micro & Fio V3 Hookup Guide -

And if so do I need a special librairie like Serial1 or Serial2 ?

Thank you very much.


From the reference page here

The Arduino Leonardo board uses Serial1 to communicate via TTL (5V) serial on pins 0 (RX) and 1 (TX). Serial is reserved for USB CDC communication. For more information, refer to the Leonardo getting started page and hardware page.

The Pro Micro is basically a mini version of the Leonardo so the same way applies. You do not need an extra library as Serial/Serial1 is built into the Arduino core for that MCU.