Platformio: Difference between revisions

From NixOS Wiki
imported>Mic92
add platformio page
 
imported>Mic92
add platformio page
Line 1: Line 1:
[Platformio https://platformio.org/] is a SDK/toolchain manager for various microcontrollers  and and embedded platforms i.e. esp32.
[https://platformio.org/ PlatformIO] is a SDK/toolchain manager for various microcontrollers  and and embedded platforms i.e. esp32.


== Basic development environment ==
== Basic development environment ==
Line 18: Line 18:
== Use in vscode ==
== Use in vscode ==


To use the nix-shell provided platformio rather the builtin one first open <code>vscode</code> within the nix-shell
To use the nix-shell provided PlatformIO rather the builtin one first open <code>vscode</code> within the nix-shell
and also modify it's <code>settings.json</code> to also contain the following line:
and also modify it's <code>settings.json</code> to also contain the following line:



Revision as of 09:07, 1 November 2021

PlatformIO is a SDK/toolchain manager for various microcontrollers and and embedded platforms i.e. esp32.

Basic development environment

{ pkgs ? import <nixpkgs> {} }:
let
in
  pkgs.mkShell {
    buildInputs = [
      pkgs.platformio
      # optional: needed as a programmer i.e. for esp32
      # pkgs.avrdude
    ];
}

Use in vscode

To use the nix-shell provided PlatformIO rather the builtin one first open vscode within the nix-shell and also modify it's settings.json to also contain the following line:

{
      "platformio-ide.useBuiltinPIOCore": false,
}