Skip to content
Snippets Groups Projects
Commit 8c4a99df authored by q3k's avatar q3k
Browse files

Merge branch 'q3k/fb2' into q3k/cube

parents a41354c2 dfaa104f
No related branches found
No related tags found
No related merge requests found
Pipeline #1555 failed
......@@ -279,17 +279,19 @@ struct disp_framebuffer {
* That is, for every (x, y) coordinate, there are two uint8_ts
* storing 16 bits of pixel data.
*
* TODO(q3k): document (x, y) in relation to chirality
*
* **Example: fill framebuffer with red**:
*
* .. code-block:: cpp
*
* struct disp_framebuffer **fb;
* epic_disp_framebuffer(fb);
* struct disp_framebuffer *fb;
* epic_disp_framebuffer(&fb);
* uint16_t red = 0b1111100000000000;
* 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;
* fb->fb[y][x][0] = red >> 8;
* fb->fb[y][x][1] = red & 0xFF;
* }
* }
* epic_disp_update();
......
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