mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
12 lines
275 B
C
12 lines
275 B
C
#include "framebuffer.h"
|
|
#include <ion.h>
|
|
#include <assert.h>
|
|
|
|
void ion_set_pixel(uint8_t x, uint8_t y, uint8_t color) {
|
|
assert(x <= FRAMEBUFFER_WIDTH);
|
|
assert(y <= FRAMEBUFFER_HEIGHT);
|
|
|
|
char * byte = FRAMEBUFFER_ADDRESS + ((y*FRAMEBUFFER_WIDTH)+x);
|
|
*byte = color;
|
|
}
|