Skip to content

markspanbroek/nim-platformio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nim for PlatformIO

A plugin for PlatformIO that allows you to use the Nim programming language for embedded development.

Installation

To add Nim support to a PlatformIO project, edit platformio.ini and add the following dependency:

lib_deps =
  https://github.com/markspanbroek/nim-platformio

Also, make sure that Nim is installed, and that the nim executable is visible on the PATH.

Usage

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.

About

Nim support in PlatformIO

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published