diff --git a/MicroView.cpp b/MicroView.cpp index e2887ad..e97b2fa 100644 --- a/MicroView.cpp +++ b/MicroView.cpp @@ -904,6 +904,14 @@ void MicroView::flipHorizontal(boolean flip) { } } +/** \brief Get pointer to screen buffer + + Return a pointer to the start of the RAM screen buffer for direct access. +*/ +uint8_t *MicroView::getScreenBuffer(void) { + return screenmemory; +} + /** \brief Parse command. Command stored in serCmd array will be parsed to performed draw functions. @@ -1340,14 +1348,6 @@ int MicroView::readSerial(void) return i; } -/** \brief Get pointer to screen buffer - - Return a pointer to the start of the RAM screen buffer for direct access. -*/ -uint8_t *MicroView::screenBuffer(void) { - return screenmemory; -} - // ------------------------------------------------------------------------------------- // MicroViewWidget Class - start // ------------------------------------------------------------------------------------- diff --git a/MicroView.h b/MicroView.h index 9aa9c7d..296956c 100644 --- a/MicroView.h +++ b/MicroView.h @@ -192,7 +192,7 @@ public: uint8_t getLCDHeight(void); void setColor(uint8_t color); void setDrawMode(uint8_t mode); - uint8_t *screenBuffer(void); + uint8_t *getScreenBuffer(void); // Font functions uint8_t getFontWidth(void); diff --git a/keywords.txt b/keywords.txt index 5fcc5fd..63680b3 100644 --- a/keywords.txt +++ b/keywords.txt @@ -63,7 +63,7 @@ setValue KEYWORD2 draw KEYWORD2 reDraw KEYWORD2 drawFace KEYWORD2 -screenBuffer KEYWORD2 +getScreenBuffer KEYWORD2 checkComm KEYWORD2 #######################################