A plugin for PlatformIO that allows you to use the Nim programming language for embedded development.
To add Nim support to a PlatformIO project, edit platformio.ini and add the following dependency:
lib_deps = https://github.com/markspanbroek/nim-platformioAlso, make sure that Nim is installed, and that the nim executable is visible on the PATH.
Add a file main.nim to the src folder of the PlatformIO project. Write your embedded code in this file.
A file panicoverride.nim is also required. If it's not present, then this plugin will create it.
Compilation of main.nim happens in two steps: first Nim is compiled to C++, and then these C++ files are compiled for your device. The intermediate C++ files are generated in the src/nimcache folder, so you might want to add that folder to your .gitignore file.
For an example using Arduino, check out Arduino for Nim.