ugfx/demos/modules/gdisp/gdisp_compiled_pictures/main.c
Andrew Hannam 64971549fd New GDISP image handling with demo
Images currently support Native and BMP (except RLE4,8 and 16 bit - due
to bugs)
Supports reading from Memory, BaseFileStream or real files (only on the
Win32 simulator).

Move gdisp_pictures demo to better refect its purpose.

Bug fixes for BMP RLE4,8 & 16 bit to come very soon
GIF support very soon.
2013-04-03 13:51:43 +10:00

26 lines
630 B
C

#include "ch.h"
#include "hal.h"
#include "gfx.h"
#include "matterhorn1.h"
#include "matterhorn2.h"
#include "fruits1.h"
int main(void) {
halInit();
chSysInit();
gdispInit();
gdispSetOrientation(GDISP_ROTATE_90);
while(1) {
gdispBlitArea(0, 0, fruits1.width, fruits1.height, (const pixel_t*)fruits1.pixel_data);
chThdSleepMilliseconds(3000);
gdispBlitArea(0, 0, matterhorn1.width, matterhorn1.height, (const pixel_t*)matterhorn1.pixel_data);
chThdSleepMilliseconds(3000);
gdispBlitArea(0, 0, matterhorn2.width, matterhorn2.height, (const pixel_t*)matterhorn2.pixel_data);
chThdSleepMilliseconds(3000);
}
}