Hi all
There is probably a really simple answer to this:
I got the Micro Pro (16MHz/5V) and installed the driver and the IDE extensions (through BoardManager).
I copied the Blink Test Code from the site:
/* Pro Micro Test Code
by: Nathan Seidle
modified by: Jim Lindblom
SparkFun Electronics
date: September 16, 2013
license: Public Domain - please use this code however you'd like.
It's provided as a learning tool.
This code is provided to show how to control the SparkFun
ProMicro's TX and RX LEDs within a sketch. It also serves
to explain the difference between Serial.print() and
Serial1.print().
*/
int RXLED = 17; // The RX LED has a defined Arduino pin
// The TX LED was not so lucky, we'll need to use pre-defined
// macros (TXLED1, TXLED0) to control that.
// (We could use the same macros for the RX LED too -- RXLED1,
// and RXLED0.)
void setup()
{
pinMode(RXLED, OUTPUT); // Set RX LED as an output
// TX LED is set as an output behind the scenes
Serial.begin(9600); //This pipes to the serial monitor
Serial1.begin(9600); //This is the UART, pipes to sensors attached to board
}
void loop()
{
Serial.println("Hello world"); // Print "Hello World" to the Serial Monitor
Serial1.println("Hello!"); // Print "Hello!" over hardware UART
digitalWrite(RXLED, LOW); // set the LED on
TXLED0; //TX LED is not tied to a normally controlled pin
delay(1000); // wait for a second
digitalWrite(RXLED, HIGH); // set the LED off
TXLED1;
delay(1000); // wait for a second
}
And I think I set the correct settings:
Board: SparkFun Pro Micro
Processor: ATmega32U4 (5V, 16MHz)
Port: COM 11 (only one available and corresponds with the info in the Windows device manager)
Programmer: AVRISP mkII (also tried AVRISP)
Here’s the error I get:
Arduino: 1.6.4 (Windows 7), Board: "SparkFun Pro Micro, ATmega32U4 (5V, 16 MHz)"
In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\PluggableUSB.cpp:21:0:
C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\PluggableUSB.h:35:22: error: 'USBSetup' has not been declared
virtual bool setup(USBSetup& setup) = 0;
^
C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\PluggableUSB.h:37:29: error: 'USBSetup' has not been declared
virtual int getDescriptor(USBSetup& setup) = 0;
^
C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\PluggableUSB.h:57:21: error: 'USBSetup' has not been declared
int getDescriptor(USBSetup& setup);
^
C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\PluggableUSB.h:58:14: error: 'USBSetup' has not been declared
bool setup(USBSetup& setup);
^
Error compiling.
What am I missing?