Just testing displaying images for the lequel

Dependencies:   PokittoLib

main.cpp

Committer:
Vampirics
Date:
21 months ago
Revision:
18:09c54d06944e
Parent:
17:2bf164ef973d

File content as of revision 18:09c54d06944e:

#include "Pokitto.h"
#include "loverushtitle.h"

Pokitto::Core mygame;

int main () 
{
    mygame.begin();
    mygame.display.load565Palette(loverushtitle_pal); //load the palette for the image
    mygame.display.bgcolor=1; // set color 1 (purple) as background
    /* the "while" loop runs as long as the program is running */
    while (mygame.isRunning()) {
        /* mygame.update() is processed whenever it is time to update the screen */
        if (mygame.update()) {
            mygame.display.drawBitmap(0,0,loverushtitle); // draw the pokitto_icon graphic
            }
        }
 
    return 0; // this is "good programming manners". Program informs it ended without errors
}