I got a Make It Robotics Starter Kit and Arduino Uno and put the Line-Following Robot together. Got Arduino IDE and put MakitRobitics.cpp and MakeItRobitics.h in a MakeItRobotic file under a Sketch library. Get error compiling.
I got a Make It Robotics Starter Kit and Arduino Uno and put the Line-Following Robot together. Got Arduino IDE and put MakitRobitics.cpp and MakeItRobitics.h in a MakeItRobotic file under a Sketch library. Get error compiling.
Hello,
better if you put the link where did you got the two files. In a general base, as these are .c and .h files I suppose that are not the sketch parts but a library file and its related include file. So there are two options. If these are parts of a library you should put both of them in the library folder of your arduino IDE (a Arduino/libraries subfolder in your Documents folder in a normal installation). Then including the .h in your .ino sketch (it is not needed to put the .h file itself nor the .c in the sketch folder created by the IDE) you have automatically available the library methods and features in the .ino sketch.
In the second case, if these files are not part of a library, should anyway added as further files with the .ino sketch resulting:
Anyway, let us know what is the source and probably the mystery can be solved faster,
Hello,
better if you put the link where did you got the two files. In a general base, as these are .c and .h files I suppose that are not the sketch parts but a library file and its related include file. So there are two options. If these are parts of a library you should put both of them in the library folder of your arduino IDE (a Arduino/libraries subfolder in your Documents folder in a normal installation). Then including the .h in your .ino sketch (it is not needed to put the .h file itself nor the .c in the sketch folder created by the IDE) you have automatically available the library methods and features in the .ino sketch.
In the second case, if these files are not part of a library, should anyway added as further files with the .ino sketch resulting:
Anyway, let us know what is the source and probably the mystery can be solved faster,