arduino

Arduino bindings for Nim

Pure Nim score 15/100 · tests present · no docs generated

Summary

Latest Version 0.3.0
License MIT
CI Status Failing
Downloads 0
Last Indexed 2026-09-01 07:18

Authors

  • nim-arduino authors

Installation

nimble install arduino
choosenim install arduino
git clone https://github.com/markspanbroek/nim-arduino

OS Compatibility

Platform Linux macOS Windows FreeBSD OpenBSD NetBSD Android iOS WASM Embedded
arduino - - - - - - -

Dependencies

Package Version Optional
nim >= 1.4.2 & < 2.0.0 No

Source

Repository https://github.com/markspanbroek/nim-arduino
Homepage https://github.com/markspanbroek/nim-arduino
Registry Source nimble_official

README

Arduino for Nim

Provides Nim bindings for most Arduino functions.

Installation

Can only be used in an environment where the <Arduino.h> C++ header is available, for instance PlatformIO with the Nim plugin.

Use the following snippet in platformio.ini to add the Nim bindings for Arduino to PlatformIO:

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

Example

src/main.nim:

import pkg/nim-arduino/arduino

setup:
  pinMode(LED_BUILTIN, OUTPUT)

loop:
  digitalWrite(LED_BUILTIN, HIGH)
  delay(1000)
  digitalWrite(LED_BUILTIN, LOW)
  delay(1000)