Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/markspanbroek/nim-arduino
Arduino bindings for Nim
https://github.com/markspanbroek/nim-arduino
Last synced: about 2 months ago
JSON representation
Arduino bindings for Nim
- Host: GitHub
- URL: https://github.com/markspanbroek/nim-arduino
- Owner: markspanbroek
- Created: 2021-01-10T15:38:39.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-05-28T09:16:24.000Z (over 3 years ago)
- Last Synced: 2024-06-09T22:32:30.205Z (4 months ago)
- Language: Nim
- Size: 3.91 KB
- Stars: 25
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
Arduino for Nim
===============Provides [Nim][1] bindings for most [Arduino functions][2].
Installation
------------Can only be used in an environment where the `` C++ header is
available, for instance [PlatformIO][3] with the [Nim plugin][4].Use the following snippet in `platformio.ini` to add the Nim bindings for
Arduino to PlatformIO:```ini
lib_deps =
https://github.com/markspanbroek/nim-arduino
```Example
-------`src/main.nim`:
```nim
import pkg/nim-arduino/arduinosetup:
pinMode(LED_BUILTIN, OUTPUT)loop:
digitalWrite(LED_BUILTIN, HIGH)
delay(1000)
digitalWrite(LED_BUILTIN, LOW)
delay(1000)
```[1]: https://nim-lang.org
[2]: https://arduino.cc/reference
[3]: https://platformio.org
[4]: https://github.com/markspanbroek/nim-platformio