Skip to content

Arduino

Andy Arvanitis edited this page Mar 19, 2019 · 8 revisions

WIP

Example Makefile

Example blink.purs

Example blink_ffi.cpp

Prerequisites

  • Familiarity with Arduino and its IDE (and installed)
  • Boost libraries installed (using your system's package manager is easiest)
  • This fork of ArduinoSTL cloned somewhere
  • Some of these files copied and others removed:
       $ cp -R $(ARDUINO_IDE_BASE)/Java/hardware/arduino/avr/cores/arduino $(FFI_SRC)/
       $ rm $(FFI_SRC)/arduino/hooks.cpp
       $ rm $(FFI_SRC)/arduino/main.cpp

Notes/warnings

  • The sample "blink" program above was only tested on a recent Arduino Uno
  • Most Arduino devices have very little flash and RAM (the Uno has 2 KB RAM), so it's probably very easy to write a program which can exceed either
  • This setup was tested on macOS Mojave
Clone this wiki locally