Page 1 of 1

HID flowcode 8 arduino leonardo

Posted: Sun Feb 24, 2019 1:33 pm
by kris Werbrouck
I want to use the HID component in flowcode 8 with a arduino leonardo. Programming the arduino leonardo is possible, but there is no output.

Re: HID flowcode 8 arduino leonardo

Posted: Mon Feb 25, 2019 6:04 pm
by Benj
Hello,

The AVR/Arduino devices require a slight build modification to include the USB libraries.

Here is the documentation on how to perform the modification.



To compile to an AVR device using USB you must point the compiler to a different batch file to allow it to include the various USB libraries in the compilation.

Simply click on Build -> Compiler Options.

Click on the AVR/Arduino -> Default item and then click the save icon at the top right hand side of the window.

Give the new setting a name e.g. AVRUSB and click OK.

Click on the new item AVR/Arduino -> AVRUSB and ensure that it is ticked as the default compiler for the AVR/Arduino platform.


Change the compiler location from this.
$(compileravr)batchfiles\avra.bat

To this.
$(compileravr)batchfiles\avra_usb.bat


Change the compiler Parameters from this
$(chip:l) "$(outdir)" "$(target)" "$(outdir)$(target).c" "$(outdir)$(target).lst"

To one of the following based on your USB type.
$(chip:l) "$(outdir)" "$(target)" Serial
$(chip:l) "$(outdir)" "$(target)" HID
$(chip:l) "$(outdir)" "$(target)" Slave - Not Currently Supported
$(chip:l) "$(outdir)" "$(target)" MIDI - Not Currently Supported


Let us know how you get on.

Re: HID flowcode 8 arduino leonardo

Posted: Wed Mar 13, 2019 9:18 pm
by kris Werbrouck
I still have problems. See attachments.