I have adafruit motor shield installed in my Arduino library but when I try to #include <AFMotor.h> it is obviously not there because it doesn't change color or work. So where is my stupid mistake? Playing with Grinberg robot.
Bob kearbey
I have adafruit motor shield installed in my Arduino library but when I try to #include <AFMotor.h> it is obviously not there because it doesn't change color or work. So where is my stupid mistake? Playing with Grinberg robot.
Bob kearbey
I have adafruit motor shield installed in my Arduino library
Really? You have hardware in your library? How does renaming work? How does a directory listing work?
Welcome to the Forum. Please read the two posts
How to use this forum - please read. and
Read this before posting a programming question ...
We can't guess what's wrong without seeing your code. Please read the two posts at the top of this Forum on guidelines for posting here, especially the use of code tags which make the code look
like this
when posting source code files. It makes it easier to read, and can be copied with a single mouse click. Also, if you don't do it, some of the character sequences in the code can be misinterpred by the forum code as italics or funny emoticons.
Many questions can be answered by simply reading the documentation which is provided with the IDE, available under the help tab, or online here.
I´ve got te same problem
Arduino:1.8.9 (Windows 10), Tarjeta:"Arduino/Genuino Uno"
Programaci_n_del_robot__carro__final:1:21: error: AFMotor.h: No such file or directory
compilation terminated.
exit status 1
AFMotor.h: No such file or directory
Este informe podría contener más información con
"Mostrar salida detallada durante la compilación"
opción habilitada en Archivo -> Preferencias.
AFMotor.h: No such file or directory
Do you have the file and if so where is it located on your PC ?
Perhaps you meant to use Tools->Manage Libraries... to install "Adafruit Motor Shield library" or "Adafruit Motor Shield V2 library". Which Adafruit Motor Shield do you have?