mirror of
https://github.com/geekammo/MicroView-Arduino-Library.git
synced 2026-02-20 03:21:30 +01:00
Merge branch 'user_screen_access'
Add function to get a pointer to the start of the RAM screen buffer for direct write and read access.
This commit is contained in:
@@ -1340,6 +1340,14 @@ 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
|
||||
// -------------------------------------------------------------------------------------
|
||||
|
||||
@@ -192,6 +192,7 @@ public:
|
||||
uint8_t getLCDHeight(void);
|
||||
void setColor(uint8_t color);
|
||||
void setDrawMode(uint8_t mode);
|
||||
uint8_t *screenBuffer(void);
|
||||
|
||||
// Font functions
|
||||
uint8_t getFontWidth(void);
|
||||
|
||||
Reference in New Issue
Block a user