PxMatrix icon indicating copy to clipboard operation
PxMatrix copied to clipboard

'class PxMATRIX' has no member named 'copyBuffer' Error

Open andre9017 opened this issue 5 years ago • 1 comments

Hi there,

I'm totally new to everything Arduino (new to anything technical) so please bear with me.

I'm working on this opensource display project here: https://github.com/alfo/GlowingSquare/tree/master/GlowingSquare_Flight

In the display file I'm getting the error:

In file included from C:\Users\areih\Documents\Arduino\GlowingSquare_Flight\GlowingSquare_Flight.ino:43:0:

sketch\display.h: In function 'void displayOffline()':

display.h:64:11: error: 'class PxMATRIX' has no member named 'copyBuffer'

display.copyBuffer();

       ^

In file included from C:\Users\areih\Documents\Arduino\GlowingSquare_Flight\GlowingSquare_Flight.ino:43:0:

sketch\display.h: In function 'void drawStaticAndScrollingText(uint8_t, long unsigned int, String, String, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t)':

display.h:132:13: error: 'class PxMATRIX' has no member named 'copyBuffer'

 display.copyBuffer();

         ^

display.h:148:11: error: 'class PxMATRIX' has no member named 'copyBuffer'

display.copyBuffer();

'class PxMATRIX' has no member named 'copyBuffer'`

Any help would be much appreciated

andre9017 avatar Jul 26 '20 14:07 andre9017

Hi, copybuffer() was just recently added to the PxMatrix library. It looks like you're using an older version of the code that has no copybuffer() in it. You may try to update your libraries or just download PxMatrix.h from this repository and place it in your projects include folder.

xsrf avatar Jul 29 '20 19:07 xsrf