Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ianharrigan/hxarduino

hxArduino - custom haxe generator to create arduino specific c++
https://github.com/ianharrigan/hxarduino

arduino haxe

Last synced: about 1 month ago
JSON representation

hxArduino - custom haxe generator to create arduino specific c++

Awesome Lists containing this project

README

        

# hxArduino

* Includes basic Arduino externs (`Arduino`, `LiquidCrystal`, `MemoryFree`, see: `/lib`)
* Custom C++ generator
* Compiler utility class to compile & link generated c++
* Installer utility class to push to Arduino device
* Monintor utility class to start reading from serial com port via hxSerial for program traces

# Usage

* `haxelib install hxArduino`
* `haxe -lib hxArduino -cp src -no-output -main Main`
* `haxelib run hxArduino -test`

# Notes
* Must have an `ARDUINO_HOME` environment variable set (eg: `C:\\PROGRA~2\\Arduino`)
* Currently skips alot of haxe "internal" classes (no point in trying to generated them till generator is at least all wired up)
* main.cpp (not generated) makes assumption that there is a `Main.h` and a `Main` c++ class in entry point, eg:

See examples for various examples