arduino leonardo

I am using the shield motor L293D and when I compile it marks me “error compiling for the card arduino leonardo” what happens?

You need to scroll up the black console window at the bottom of the Arduino IDE window to see the detailed error output that tells you what the actual problem was.

When you encounter an error you’ll see a button on the right side of the orange bar “Copy error messages”. Click that button. Paste the error in a message here USING CODE TAGS (</> button on the toolbar).

It would also be a good idea to show us what program you are trying to compile when you get the error(s).

Steve

Arduino:1.8.5 (Windows 7), Tarjeta:“Arduino Leonardo”

C:\Program Files\Arduino\libraries\AFMotor\AFMotor.cpp:136:5: error: #error “This chip is not supported!”

#error “This chip is not supported!”

^

C:\Program Files\Arduino\libraries\AFMotor\AFMotor.cpp:173:5: error: #error “This chip is not supported!”

#error “This chip is not supported!”

^

C:\Program Files\Arduino\libraries\AFMotor\AFMotor.cpp:205:5: error: #error “This chip is not supported!”

#error “This chip is not supported!”

^

C:\Program Files\Arduino\libraries\AFMotor\AFMotor.cpp:226:5: error: #error “This chip is not supported!”

#error “This chip is not supported!”

^

C:\Program Files\Arduino\libraries\AFMotor\AFMotor.cpp:259:5: error: #error “This chip is not supported!”

#error “This chip is not supported!”

^

C:\Program Files\Arduino\libraries\AFMotor\AFMotor.cpp:279:5: error: #error “This chip is not supported!”

#error “This chip is not supported!”

^

C:\Program Files\Arduino\libraries\AFMotor\AFMotor.cpp:314:5: error: #error “This chip is not supported!”

#error “This chip is not supported!”

^

C:\Program Files\Arduino\libraries\AFMotor\AFMotor.cpp:334:5: error: #error “This chip is not supported!”

#error “This chip is not supported!”

^

In file included from c:\program files\arduino\hardware\tools\avr\avr\include\avr\io.h:99:0,

from c:\program files\arduino\hardware\tools\avr\avr\include\avr\pgmspace.h:90,

from C:\Program Files\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28,

from C:\Program Files\Arduino\libraries\AFMotor\AFMotor.cpp:7:

C:\Program Files\Arduino\libraries\AFMotor\AFMotor.cpp: In constructor ‘AF_Stepper::AF_Stepper(uint16_t, uint8_t)’:

C:\Program Files\Arduino\libraries\AFMotor\AFMotor.h:43:31: error: ‘CS20’ was not declared in this scope

#define MOTOR12_64KHZ _BV(CS20) // no prescale

^

C:\Program Files\Arduino\libraries\AFMotor\AFMotor.h:53:33: note: in expansion of macro ‘MOTOR12_64KHZ’

#define STEPPER1_PWM_RATE MOTOR12_64KHZ // PWM rate for stepper 1

^

C:\Program Files\Arduino\libraries\AFMotor\AFMotor.cpp:438:14: note: in expansion of macro ‘STEPPER1_PWM_RATE’

initPWM1(STEPPER1_PWM_RATE);

^

exit status 1
Error compilando para la tarjeta Arduino Leonardo.

Este reporte podría tener más información con
“Mostrar salida detallada durante la compilación”
opción habilitada en Archivo → Preferencias.

tiketono:
Arduino:1.8.5 (Windows 7), Tarjeta:"Arduino Leonardo"

C:\Program Files\Arduino\libraries\AFMotor\AFMotor.cpp:136:5: error: #error "This chip is not supported!"

#error "This chip is not supported!"

As you have not posted the program it is not possible for us to know what is on line 136.

...R

#include <AFMotor.h>

AF_DCMotor motor1(1);

void setup()
{
motor1.setSpeed(250);
}

void loop()
{
motor1.run(FORWARD);
}

THIS IS TE CODE

It seems like you have no real interest in getting help.

The code in Reply #5 is NOT the code that produced the error messages in Reply #3

Also, please post your program using the code button </> so it looks like this. It makes it much easier for people to help you. See How to use the Forum.

…R

Just from a quick look at the error reports it seems that the version of AFMotor that you have does not support the ATmega32u4 used in the Leonardo. There may be other versions around that do support it but I guess Adafruit would be the best people to tell you about that.

Steve

muchas gracias Steve y robin no seas gruñon, no todos somos expertos como tuu