Closed stevealexandre closed 3 years ago
It does not help if you open the issue again. You need to use the 4 pin header of the 16u2, not the "normal" arduino pins. https://github.com/NicoHood/HoodLoader2/wiki/Arduino-Uno-Mega-16u2-Pinout
You must understand, that you are controlling 2 MCUs now, not a single one.
Hi everyone,
I have flash my uno with hoodloader2 but trying to use the keyboard still not working. When I'm pressing the button, the text is not print and nothing happen.
void setup() { // make pin 2 an input and turn on the // pullup resistor so it goes high unless // connected to ground: pinMode(2, INPUT_PULLUP); Keyboard.begin(); }
void loop() { //if the button is pressed if (digitalRead(2) == LOW) { //Send the message Keyboard.print("Hello!"); } }