When I upload the code to Arduino nano I get a permission error on Ubuntu 24.
Code:
void setup() {
// put your setup code here, to run once:
pinMode(2, OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
digitalWrite(2, HIGH);
}
Error:
Sketch uses 724 bytes (2%) of program storage space. Maximum is 30720 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 2039 bytes for local variables. Maximum is 2048 bytes.
avrdude: ser_open(): can't open device "/dev/ttyUSB0": Permission denied
Failed uploading: uploading error: exit status 1
If I open the IDE with sudo command, the IDE has just a blank screen. It is not opening the program file.
How to resolve this error?
When I upload the code to Arduino nano I get a permission error on Ubuntu 24.
Code:
Error:
If I open the IDE with sudo command, the IDE has just a blank screen. It is not opening the program file. How to resolve this error?