Arduino: Difference between revisions

Qweered (talk | contribs)
m add titles to links
Tim (talk | contribs)
Add instructions for adding "dialout" group to allow uploading sketches in Arduino IDE 2.x without permission errors
Line 6: Line 6:


The Arduino IDE 2.x is available in nixpkgs as <code>arduino-ide</code>
The Arduino IDE 2.x is available in nixpkgs as <code>arduino-ide</code>
When trying to upload to your board, you may get the following error:
<code>Cannot perform port reset: 1200-bps touch: opening port at 1200bps: Permission denied
No device found on ttyACM0</code>
This is a serial port permissions issue. Add your user to the <code>dialout</code> group, rebuild your system, then log out and back in or reboot to apply:<syntaxhighlight lang="nix">
{
  users.users.<myuser>.extraGroups = [ "dialout" ];
}
</syntaxhighlight>


== Arduino IDE 1.x ==
== Arduino IDE 1.x ==