1
0
mirror of https://github.com/2martens/uni.git synced 2026-05-06 11:26:25 +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
int divider = 84;
int maxBufferIndex = 288;
int maxBufferIndex = 504;
// buffer
char screenBuffer[288];
char screenBuffer[504];
void setup()
{
@ -84,7 +84,7 @@ void setPixel(int x, int y, int value)
{
int bank = x / 8;
int relativeRow = x - bank * 8;
int bankStartIndex = bank * 48;
int bankStartIndex = bank * 84;
int index = bankStartIndex + y;
char bitValue = 0x0;