Nano output through USB

Hello

I have a sketch that someone else created that works. It is using a Nano to output through a MIDI connector. Now I would like to try this by using USB Type MIDI.

Is there a way to do this on the Nano board? When I select board type, i am not able to choose USB TYPE. I can compile it using a Teensy 2.0 board. If I select any other Teensy board I get the following error: Compilation error: 'long int time' redeclared as different kind of entity

This the actual line: long time = 0; // the last time the output pin was toggled

Thanks
Rob

Welcome to the forum

From the error message it sounds like you have both a function named time and a variable named time

Change the name of the variable

You ran into a conflict with the POSIX time() function: time - cppreference.com

Use a different name for your variable, or add it to a namespace.

The Arduino Nano does not support MIDI over USB. See e.g. Control Surface: MIDI over USB

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.