Can't upload code on Arduino micro

So I was trying to test the keyboard functionalities of the micro and I wrote this code. But now it just keeps writing hello until I unplug the Arduino. Then if I try to upload a new code It doesn't let me do anything and it gives me errors. What can I do?

const int buttonPin = 4;
#include "Keyboard.h"
void setup() {
pinMode(buttonPin, INPUT);

void loop() {
int buttonState = digitalRead(buttonPin);
if (buttonState = HIGH);


The problem is that mine does'nt have a reset button. Is this one

What version IDE are you using?
Do you have Pro Micro selected in the IDE as the controller/

Thanks.. Tom.. :slight_smile:


Thank you so much now it works

The problem is that mine does’nt have a reset button. Is this one

It appears to have a reset pin though