I recently bought myself a Arduino Uno board, connected to my computer installed the IDE and drivers. All went well, uploaded some scripts to my board, no problems at all. but now I am getting this error, can't get it off.
avrdude: ser_open(): can't open device "\\.\COM4": Access is denied.
I've checked into device manager if COM4 is still the right port, but it is indeed the right port, maybe my code is wrong? running out of ideas:3
int LED = 0;
int green = 1;
void setup() {
pinMode(LED, OUTPUT);
pinMode(green, OUTPUT);
}
void loop() {
digitalWrite(LED, HIGH);
delay(500);
digitalWrite(LED, LOW);
delay(500);
digitalWrite(green, HIGH);
delay(500);
digitalWrite(green, LOW);
delay(500);
}