blob: b437619e5990372f87e64de0a116d50930ca7e44 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#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);
}
}
|