Skip to content

Latest commit

 

History

History
35 lines (29 loc) · 1.97 KB

README.md

File metadata and controls

35 lines (29 loc) · 1.97 KB

ArduinoSketchUploader

This is port from christophediericx .Net library using java code Java library IntelHexFormatReader This repository contains a Java library that can be used to upload a compiled sketch (.HEX) directly to an Arduino board over USB. It talks to the boards bootloader over the serial (USB) connection, much like avrdude does (when invoked from the Arduino IDE, or from the command line).

ArduinoSketchUploader

Compatibility

The library has been tested with the following configurations:

Arduino Model MCU Bootloader protocol
Mega 2560 ATMega2560 STK500v2
Micro ATMega32U4 AVR109
Uno (R3) ATMega328P STK500v1

How to use in your application

Create object implement ISerialPortStream interface,then usage anonymous or passing clazz generics for ArduinoSketchUploader object : Anonymous:

ArduinoSketchUploader<SerialPortStreamImpl> uploader = new ArduinoSketchUploader<SerialPortStreamImpl>(optionsMega,logger,progress) {};

Clazz generics:

ArduinoSketchUploader<SerialPortStreamImpl> uploader = new ArduinoSketchUploader<SerialPortStreamImpl>(
			SerialPortStreamImpl.class, optionsUno, logger, progress) ;

Check "Test" for more example.

Arduino Hex Uploader Android App

Like and support the project

Buy Me A Coffee

Thanks