From 3b3c2ef44e3d3064615d03d9b06a6cdbc1b1a84a Mon Sep 17 00:00:00 2001 From: Dominic Buchstaller Date: Fri, 4 May 2018 22:07:29 +0200 Subject: [PATCH] Add fast update and double buffering --- PxMatrix.cpp | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/PxMatrix.cpp b/PxMatrix.cpp index eda3132..d0fa52b 100644 --- a/PxMatrix.cpp +++ b/PxMatrix.cpp @@ -311,12 +311,8 @@ void PxMATRIX::begin(uint8_t pattern) { // Precompute row offset values for (uint8_t yy=0; yy<_height;yy++) - { - //if (yy>0) _row_offset[yy]=((yy)%_pattern)*_send_buffer_size+_send_buffer_size-1; - //else - // _row_offset[yy]=_send_buffer_size-1; - } + } @@ -378,9 +374,6 @@ void PxMATRIX::display(uint16_t show_time) { for (uint8_t i=0;i<_pattern;i++) { - - - if (_fast_update){ set_mux((i+_pattern-1)%_pattern); digitalWrite(_LATCH_PIN,HIGH); @@ -397,18 +390,6 @@ void PxMATRIX::display(uint16_t show_time) { while ((micros()-start_time)