arduino-core

Version, currently main branch1 version
  • main branchlatestSep 9, 2024

github.com/ysbaddaden/arduino-core.cr

Program Arduino boards and AVR microcontrollers in general

10 stars
0 dependents
License: Apache-2.0

Installation

# Add this to your shard.yml
dependencies:
  arduino-core:
    github: ysbaddaden/arduino-core.cr
    branch: main

main is a branch, not a release, so this tracks it rather than pinning a version.

Then run:

shards install

shard.yml

Crystal
no constraint declared
License
Apache-2.0
Author
name <julien@portalier.com>

Dependencies

Runtime Dependencies

  • nano*github: ysbaddaden/nanolib.cr, branch: main

README

# Arduino

A shard to program Arduino boards and AVR microcontrollers in general with the
Crystal programming language.

## Status

Dump of an experimental build of the arduino core library + initial bindings.

## Requirements

Debian, Ubuntu and derivates:

```console
$ sudo apt install gcc-avr avr-libc avrdude arduino-core picocom
```

While picocom isn't required, it will be helpful for accessing the `Serial`
console.

## Usage

See `Makefile` to build `libarduino.a` from arduino-core for your board. The
Makefile is preconfigured for Ubuntu and the Arduino Uno board.

See `Makefile` and the `samples` folder for example programs based on the
official Arduino skteches.

## License

Distributed under the Apache-2.0 license.