Small fix at spixel.
This commit is contained in:
parent
2b1f4fa1b3
commit
6cd9a9a4e6
|
@ -7,6 +7,9 @@
|
|||
|
||||
/******* DISPLAY *******/
|
||||
|
||||
#define SWIDTH 128
|
||||
#define SHEIGHT 64
|
||||
|
||||
enum {SWHITE = 0, SBLACK};
|
||||
|
||||
/* void sclear(void);
|
||||
|
|
|
@ -27,7 +27,9 @@ void supdate() {
|
|||
}
|
||||
|
||||
void spixel(int x, int y, int color) {
|
||||
_Bdisp_SetPoint_VRAM(x, y, color);
|
||||
if(x>=0 && x<SWIDTH && y>=0 && y<SHEIGHT){
|
||||
_Bdisp_SetPoint_VRAM(x, y, color);
|
||||
}
|
||||
}
|
||||
|
||||
void srect(int x1, int y1, int x2, int y2) {
|
||||
|
|
|
@ -7,6 +7,9 @@
|
|||
|
||||
/******* DISPLAY *******/
|
||||
|
||||
#define SWIDTH 128
|
||||
#define SHEIGHT 64
|
||||
|
||||
enum {SWHITE = 0, SBLACK};
|
||||
|
||||
/* void sclear(void);
|
||||
|
|
Binary file not shown.
Loading…
Reference in New Issue