From 76eea3af12394b6560149af0970982fb07e69809 Mon Sep 17 00:00:00 2001 From: Jim Martens Date: Thu, 25 Jun 2015 11:32:59 +0200 Subject: [PATCH] [ES] Fixed screen buffer size MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-óff-by: Jim Martens --- es/blatt5/uebung5-1/uebung5-1.ino | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/es/blatt5/uebung5-1/uebung5-1.ino b/es/blatt5/uebung5-1/uebung5-1.ino index f5a0788..2346408 100644 --- a/es/blatt5/uebung5-1/uebung5-1.ino +++ b/es/blatt5/uebung5-1/uebung5-1.ino @@ -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;