oid Graphics_::Rectangle(int x, int y, int width, int height, int color)
{
// Clip
int right = x + width;
int bottom = y + height;
right = min(right,(int)Graphics.Width());
bottom = min(bottom,(int)Graphics.Height());
x = max(x,0);
y = max(y,0);
width = right - x;
height = bottom - y;
if (width <= 0 || height <= 0)
return;
LCD.SetBounds(x,y,width,height);
LCD.Fill(color,(u32)width*height);
}
and then i find this in lcd.h:
class LCD_
{
public:
static void Init();
static int Width();
static int Height();
static void Rectangle(int x, int y, int width, int height, int color);
static void SetBounds(int x, int y, int width, int height);
static void Fill(int color, u32 count);
static void Blit(const u8* data, u32 count);
static void BlitIndexed(const u8* data, const u8* palette, u32 count);
static void Scroll(int y);
static void Direction(u8 landscape, u8 dx = 1, u8 dy = 1);
};
extern LCD_ LCD;
and no lcd.c or lcd.cpp
so i dont know what draws it all.
can any help me making the libary from adafruit as fast as this?
cuz i cant find what it makes it that fast.
Ok yes now i found it too.
Now is he using a special technique or somthing cuz i dont understand it.
Can anyone explain?
And the file graphics .cpp doesnt do all the work.
It also does lcd.init();
But where can i find the functions for lcd.
I can find the file where i can see them in lcd.h but not what they are doing.
For example i cannot see how it initialize the display.