From 0c92777bdd285cd10431fb9307bfdf7d54773dc6 Mon Sep 17 00:00:00 2001 From: Martino Facchin Date: Mon, 19 Dec 2016 17:54:23 +0100 Subject: Add Arduino UNO Wifi board Both serial and OTA upload methods OTA upload uses the ESP8266 method with a custom upload tool (https://github.com/arduino/arduinoOTA) --- platform.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'platform.txt') diff --git a/platform.txt b/platform.txt index c260539..a8ab169 100644 --- a/platform.txt +++ b/platform.txt @@ -95,6 +95,8 @@ tools.avrdude.path={runtime.tools.avrdude.path} tools.avrdude.cmd.path={path}/bin/avrdude tools.avrdude.config.path={path}/etc/avrdude.conf +tools.avrdude.network_cmd={runtime.tools.arduinoota.path}/bin/arduinoota + tools.avrdude.upload.params.verbose=-v tools.avrdude.upload.params.quiet=-q -q # tools.avrdude.upload.verify is needed for backwards compatibility with IDE 1.6.8 or older, IDE 1.6.9 or newer overrides this value @@ -119,8 +121,10 @@ tools.avrdude.bootloader.pattern="{cmd.path}" "-C{config.path}" {bootloader.verb tools.avrdude_remote.upload.pattern=/usr/bin/run-avrdude /tmp/sketch.hex {upload.verbose} -p{build.mcu} +tools.avrdude.upload.network_pattern={network_cmd} -address {serial.port} -port {upload.network.port} -sketch "{build.path}/{build.project_name}.hex" -upload {upload.network.endpoint_upload} -sync {upload.network.endpoint_sync} -reset {upload.network.endpoint_reset} -sync_exp {upload.network.sync_return} + # USB Default Flags # Default blank usb manufacturer will be filled in at compile time # - from numeric vendor ID, set to Unknown otherwise build.usb_manufacturer="Unknown" -build.usb_flags=-DUSB_VID={build.vid} -DUSB_PID={build.pid} '-DUSB_MANUFACTURER={build.usb_manufacturer}' '-DUSB_PRODUCT={build.usb_product}' +build.usb_flags=-DUSB_VID={build.vid} -DUSB_PID={build.pid} '-DUSB_MANUFACTURER={build.usb_manufacturer}' '-DUSB_PRODUCT={build.usb_product}' \ No newline at end of file -- cgit v1.2.3-18-g5258