Coder Social home page Coder Social logo

hnaderi / arduino-nix-template Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sfrijters/arduino-nix-template

0.0 0.0 0.0 27 KB

A template for building reproducible Arduino sketches with the help of Nix with flakes

C++ 26.18% Nix 48.27% Makefile 25.55%

arduino-nix-template's Introduction

Arduino sketches with Nix

This is a template for building reproducible Arduino sketches with the help of Nix, with flakes enabled.

Quickstart

$ nix develop
$ make -C blink compile
$ make -C blink upload

nix develop

nix develop provides a reproducible development environment via a Nix flake: 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 in the sketch.yaml file.

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

users.users.<user>.extraGroups = [ "dialout" ];

arduino-cli

Current version pinned via nixpkgs: 0.31.0.

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 to make the upload work.

You may need to modify the options in 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 theMakefile: https://arduino.github.io/arduino-cli/0.31/getting-started/ .

arduino-nix-template's People

Contributors

sfrijters avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.