diff --git a/microfx_src/include/microfx/microfx.h b/microfx_src/include/microfx/microfx.h index 4371e95..04bbced 100644 --- a/microfx_src/include/microfx/microfx.h +++ b/microfx_src/include/microfx/microfx.h @@ -7,6 +7,9 @@ /******* DISPLAY *******/ +#define SWIDTH 128 +#define SHEIGHT 64 + enum {SWHITE = 0, SBLACK}; /* void sclear(void); diff --git a/microfx_src/src/microfx.c b/microfx_src/src/microfx.c index b62ed51..1b35081 100644 --- a/microfx_src/src/microfx.c +++ b/microfx_src/src/microfx.c @@ -27,7 +27,9 @@ void supdate() { } void spixel(int x, int y, int color) { - _Bdisp_SetPoint_VRAM(x, y, color); + if(x>=0 && x=0 && y