Skip to content

Commit

Permalink
Update flake inputs (arduino-cli 1.1.1)
Browse files Browse the repository at this point in the history
  • Loading branch information
SFrijters committed Dec 6, 2024
1 parent 0ad9b41 commit 58c0fe5
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ $ make -C blink upload

## nix develop

`nix develop` provides a reproducible development environment via a [Nix flake](flake.nix): `arduino-cli` and other system packages are pinned via Nix, but `arduino-cli` still downloads its own libraries. These are in turn pinned via the the [build profile](https://arduino.github.io/arduino-cli/1.0/sketch-project-file/) in the [sketch.yaml](blink/sketch.yaml) file.
`nix develop` provides a reproducible development environment via a [Nix flake](flake.nix): `arduino-cli` and other system packages are pinned via Nix, but `arduino-cli` still downloads its own libraries. These are in turn pinned via the the [build profile](https://arduino.github.io/arduino-cli/1.1/sketch-project-file/) in the [sketch.yaml](blink/sketch.yaml) file.

For NixOS: make sure the user is in the `dialout` group to access the serial port.

Expand All @@ -24,15 +24,15 @@ users.users.<user>.extraGroups = [ "dialout" ];

## arduino-cli

Current version pinned via `nixpkgs`: 1.0.4.
Current version pinned via `nixpkgs`: 1.1.1.

Use `make` for some predefined options to compile and upload the sketch.

You may need to modify the options at the top of the [Makefile](blink/Makefile) to make the upload work.

You may need to modify the options in [sketch.yaml](blink/sketch.yaml) to make it work on a different device (fqbn/platform). In its original state it's set up for the Wemos D1 Mini.

Hints to compile / upload from command line without the `Makefile`: https://arduino.github.io/arduino-cli/1.0/getting-started/ .
Hints to compile / upload from command line without the `Makefile`: https://arduino.github.io/arduino-cli/1.1/getting-started/ .

## Cache directory

Expand Down
2 changes: 1 addition & 1 deletion blink/sketch.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# https://arduino.github.io/arduino-cli/1.0/sketch-project-file/
# https://arduino.github.io/arduino-cli/1.1/sketch-project-file/
profiles:
blink:
fqbn: esp8266:esp8266:d1_mini
Expand Down
12 changes: 6 additions & 6 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

# The variables starting with underscores are custom,
# the ones starting with ARDUINO are used by arduino-cli.
# See https://arduino.github.io/arduino-cli/1.0/configuration/ .
# See https://arduino.github.io/arduino-cli/1.1/configuration/ .

# Store everything that arduino-cli downloads in a directory
# reserved for this project, and following the XDG specification,
Expand Down

0 comments on commit 58c0fe5

Please sign in to comment.