Would you like to react to this message? Create an account in a few clicks or log in to continue.

You are not connected. Please login or register

#error The Joystick library can only be used with a USB MCU (e.g. Arduino Leonardo, Arduino Micro, etc.).

Go down  Message [Page 1 of 1]

GusLanYear



Hola soy nuevo disculpar las molestias.
Adjunto imagen Y ARCHIVOS para Arduino Leonardo.

Da error que me aparece en la libreria que está incluida, he puesto en el archivo principal la ruta del compilador bien, y en REAL me compila bien y funciona.
Trato de hacer con simulador lo mismo que en real para modificar cambios pero no logro que compile en simulador a causa de ese error.

Agradezco cualquier ayuda.

Detecting libraries used...

"C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10813 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\standard" "C:\\Users\\adolf\\AppData\\Local\\simulide\\codeeditor\\buildIno\\sketch\\RCUSB4.ino.cpp" -o nul -DARDUINO_LIB_DISCOVERY_PHASE

Alternatives for AVRPort23.h: []

ResolveLibrary(AVRPort23.h)

 -> candidates: []

C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Joystick.h:16:2: error: #error The Joystick library can only be used with a USB MCU (e.g. Arduino Leonardo, Arduino Micro, etc.).



    ERROR!!! Compilation Failed



#error The Joystick library can only be used with a USB MCU (e.g. Arduino Leonardo, Arduino Micro, etc.). Error13




EN EL IDE en real no hay problema: ¿PORQUE?

#error The Joystick library can only be used with a USB MCU (e.g. Arduino Leonardo, Arduino Micro, etc.). Ide10



Saludos

Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum