Skip to content
Snippets Groups Projects
Commit 884572ed authored by q3k's avatar q3k
Browse files

wip

parent 8e714cce
No related branches found
No related tags found
No related merge requests found
......@@ -320,11 +320,6 @@ API(API_DISP_CLOSE, int epic_disp_close());
* to be shown on the display
*/
API(API_DISP_UPDATE, int epic_disp_update());
/**
* Returns the back framebuffer (the display buffer that's currently inactive
* that will be shown after the next call to ``epic_disp_update``.
*/
API(API_DISP_FRAMEBUFFER, uint16_t *epic_disp_framebuffer());
/**
* Prints a string into the display framebuffer
......
......@@ -16,8 +16,17 @@ int main(void) {
float theta = 0.0f;
int i = 0;
for (;;) {
FB_Draw(framebuffer, theta);
epic_disp_update_fb(framebuffer);
struct disp_framebuffer *fb = epic_disp_framebuffer();
//FB_Draw((uint16_t*)fb->fb, theta);
uint16_t red = 0b0000011111100000;
for (int y = 0; y < DISP_HEIGHT; y++) {
for (int x = 0; x < DISP_WIDTH; x++) {
fb->fb[y][x][0] = red >> 8;
fb->fb[y][x][1] = red & 0xFF;
}
}
epic_disp_update();
theta += 0.1f;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment