I want to reduce clutter in the code by saving the bitmap as its own file. So I created "bitmap.cpp" in the same directory as my main .ino file and added
#include "bitmap.cpp"
to my includes with everything else the same.
I get the error: "multiple definitions of bitmap" while it's processing the .o files.
Thoughts?
EDIT: Solved by simply changing the extension to .h not .cpp
I want to reduce clutter in the code by saving the bitmap as its own file. So I created "bitmap.cpp" in the same directory as my main .ino file and added
#include "bitmap.cpp"
to my includes with everything else the same.
I get the error: "multiple definitions of bitmap" while it's processing the .o files.
Thoughts?
EDIT: Solved by simply changing the extension to .h not .cpp
Hi could you post your whole sketch need a program like this one, I am new to arduino. thanks in advance.