Arduino Pro Micro Pin Select Troubles

Hi there, My name is Juan Carlos Ortiz Posada, I am from Medellín in Colombia. I bought an Arduino Pro Micro Board, and I see some pins have many functions (Analog Pins, PWM Pins, and Digital Pins).

I have three problems...

1st. My system recognize the Arduino Pro Micro as Arduino Pro Micro Leonardo.

2nd. The Arduino IDE doesn't compile a program at all.

avr-g++: error: missing filename after '-o'

exit status 1

compilation error

3rd. How can I program a PIN as Analog, PWM or Digital according to my needs.

Thank you very much

  1. Why is that a Problem?
  2. Refer to http://forum.arduino.cc/index.php?topic=385234.0 and provide that Information as a Minimum.
  3. You don't "program a PIN as Analog, PWM or Digital" according to your Needs. That is determined by Hardware. However, many Arduino Pins have multiple uses. For example digitalWrite to an analog pin is acceptable. It is still an analog pin, but being used to Output digital 0 or 1. Check out an online tutorial on how to use digital pins for PWM Output.