3

I'm using arduino pro micro Atmega32u4 5v 16Mhz

I want to use it to make a HID Keyboard and Mouse but I ran out of pins so I was wondering if I can use the RX and TX pins as digital input pins. Will it work? Will it affect the communication of the arduino to the computer?

Keima-kun
  • 31
  • 1
  • 3

2 Answers2

1

Using TX and RX on a 32U4 does not affect PC communication. It uses a competent different communication channel.

You can use those pins for digital operation with no problems, you just won't be able to use Serial1 for communication with serial peripherals.

Majenko
  • 105,851
  • 5
  • 82
  • 139
1

Welcome to ASE.

  1. Communication between the PC and the Arduino Pro Micro happens through the USB, unlike the Arduino Uno and Mega, which use the RX and TX lines.
  2. In your case, the USB pins of the Micro are used to communicate with the PC. Hence, the RX and TX pins are available for digital input and output operations.

enter image description here

Edgar Bonet
  • 45,094
  • 4
  • 42
  • 81
ArduinoFan
  • 1,079
  • 7
  • 11