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);
Keyboard.begin();
}
void loop() {
int buttonState = digitalRead(buttonPin);
if (buttonState = HIGH);
Keyboard.print("HELLO");
}