Keyboard.write() has no effect [pro micro 3.3V]

Hey guys,

I’m having problems with my pro micro 3.3V using the Keyboard tools.
Neither Keyboard.write() nor Keyboard.print() has any effect.
I tried USB2.0 and USB3.0 ports on Windows 7 and Windows 10.

My sketch is as follows:

#include <Keyboard.h>

int RXLED = 17;

void setup()
{
 // Keyboard.begin(); //didn't change anything
}


void loop()
{
 for (int i=0; i <= 10; i++){
  digitalWrite(RXLED, LOW);
  delay(500);
  digitalWrite(RXLED, HIGH);
  delay(500);
 }
 Keyboard.write('0');
 Keyboard.print("test");
 for (int i=0; i <= 10; i++){
  digitalWrite(RXLED, LOW);
  delay(250);
  digitalWrite(RXLED, HIGH);
  delay(250);
 }
 
 while(1){}
}

I added some LED blinking to be sure, that the sketch is running properly.

I hope somebody either can help me in finding the problem or can advice me, how to troubleshoot further.

Thanks in advance!

The Keyboard.begin() statement is definitely required.

What application is active on the PC? That is, what are you sending the keystrokes to?

Thank you Paul, for your quick reply!
sparkfun tutorial doesn’t mention, that Keyboard.begin() is necessary…

I just have my cursor active in any text field. I tried the editor and the browser url bar.

nobody had same issues or have any hint for me? :(

I tried the code on an Arduino Lonardo, where it works flawlessly. I'm very confused.. :confused: