1
0
mirror of https://github.com/2martens/uni.git synced 2026-05-06 19:36:26 +02:00

[ES] Fixed screen buffer size

Signed-óff-by: Jim Martens <github@2martens.de>
This commit is contained in:
2015-06-25 11:32:59 +02:00
parent be413ec73e
commit 76eea3af12

View File

@ -7,10 +7,10 @@ int dcPin = 5;
// constants // constants
int divider = 84; int divider = 84;
int maxBufferIndex = 288; int maxBufferIndex = 504;
// buffer // buffer
char screenBuffer[288]; char screenBuffer[504];
void setup() void setup()
{ {
@ -84,7 +84,7 @@ void setPixel(int x, int y, int value)
{ {
int bank = x / 8; int bank = x / 8;
int relativeRow = x - bank * 8; int relativeRow = x - bank * 8;
int bankStartIndex = bank * 48; int bankStartIndex = bank * 84;
int index = bankStartIndex + y; int index = bankStartIndex + y;
char bitValue = 0x0; char bitValue = 0x0;