draw_screen_buffer.h File Reference
Go to the source code of this file.
Define Documentation
#define DRAW_TOTAL_BUFFER_SIZE (DRAW_PIXELS_WIDE * DRAW_PIXELS_HIGH / DRAW_PIXELS_PER_BYTE) |
Function Documentation
uns8 get_draw_buffer |
( |
uns16 |
address |
) |
|
00033 {
00034
00035 if (address < 256) {
00036 return draw_buffer0[address];
00037 }
00038 #if DRAW_TOTAL_BUFFER_SIZE > 256
00039 else if (address < 512) {
00040 return draw_buffer1[address - 256];
00041 }
00042 #if DRAW_TOTAL_BUFFER_SIZE > 512
00043 else if (address < 768) {
00044 return draw_buffer2[address - 512];
00045 }
00046 #if DRAW_TOTAL_BUFFER_SIZE > 768
00047 else if (address < 1024) {
00048 return draw_buffer3[address - 768];
00049 }
00050 #endif
00051 #endif
00052 #endif
00053 }
void set_draw_buffer |
( |
uns16 |
address, |
|
|
uns8 |
data | |
|
) |
| | |
00055 {
00056
00057 if (address < 256) {
00058 draw_buffer0[address] = data;
00059 }
00060 #if DRAW_TOTAL_BUFFER_SIZE > 256
00061 else if (address < 512) {
00062 draw_buffer1[address - 256] = data;
00063 }
00064 #if DRAW_TOTAL_BUFFER_SIZE > 512
00065 else if (address < 768) {
00066 draw_buffer2[address - 512] = data;
00067 }
00068 #if DRAW_TOTAL_BUFFER_SIZE > 768
00069 else if (address < 1024) {
00070 draw_buffer3[address - 768] = data;
00071 }
00072 #endif
00073 #endif
00074 #endif
00075 }
Variable Documentation