UTFT and bitmaps [Solved]

I'm having a slight problem when drawing bitmaps with UTFT. This is more a confusion on imports than the UTFT library.

I can draw a bitmap just fine if I define the bitmap in the .ino file I'm using:

#include <UTFT.h>
unsigned short bitmap[0x99C0] ={bitmap info}
UTFT LCD(CTE28,38,39,40,41);
void setup()
{
  LCD.InitLCD();
  LCD.drawBitmap(0,0,320,123,bitmap)
}

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

wenzela:
I'm having a slight problem when drawing bitmaps with UTFT. This is more a confusion on imports than the UTFT library.

I can draw a bitmap just fine if I define the bitmap in the .ino file I'm using:

#include <UTFT.h>

unsigned short bitmap[0x99C0] ={bitmap info}
UTFT LCD(CTE28,38,39,40,41);
void setup()
{
  LCD.InitLCD();
  LCD.drawBitmap(0,0,320,123,bitmap)
}





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.