HID flowcode 8 arduino leonardo
Moderator: Benj
-
- Posts: 18
- Joined: Mon Feb 25, 2013 10:15 am
- Has thanked: 3 times
- Been thanked: 4 times
HID flowcode 8 arduino leonardo
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.
- Attachments
-
- test flowcode 8 arduino leonardo.fcfx
- (9.08 KiB) Downloaded 215 times
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: HID flowcode 8 arduino leonardo
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.
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.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
- Posts: 18
- Joined: Mon Feb 25, 2013 10:15 am
- Has thanked: 3 times
- Been thanked: 4 times
Re: HID flowcode 8 arduino leonardo
I still have problems. See attachments.
- Attachments
-
- Error USBHID2.JPG (94.42 KiB) Viewed 2176 times
-
- Error USBHID1.JPG (151.61 KiB) Viewed 2176 times
-
- compiler.JPG (45.4 KiB) Viewed 2176 times