Project

arduino-mk

0.0
No commit activity in last 3 years
No release in over 3 years
Compile and upload Arduino sketches with Ruby.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

>= 0
 Project Readme

arduino-mk

Compile and upload Arduino sketches with Ruby.

Usage

arduino = Arduino.new(board: "uno")

if arduino.upload("/path/to/project")
  puts "Sketch uploaded successfully!"
else
  puts arduino.error
end

To test if your project compiles without uploading:

if arduino.compiles?("/path/to/project")
  puts "Sketch compiles successfully!"
else
  puts arduino.error
end

To reset your Arduino:

if arduino.reset
  puts "Arduino reset successfully!"
else
  puts arduino.error
end

Further configuration

To include additional Makefile configuration:

arduino = Arduino.new(board: "uno", arduino_dir: "/path/to/arduino/libs")

The path of the default Makefile is available at:

Arduino.makefile

You can use this as reference.