Add uView.screenBuffer() for access to screen RAM.

Returns a pointer to the start of the RAM screen buffer
for direct write and read access.
This commit is contained in:
Scott Allen
2014-08-16 21:56:47 -04:00
parent 95626610e1
commit b0e4a9600f
2 changed files with 9 additions and 0 deletions

View File

@@ -1327,6 +1327,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
// -------------------------------------------------------------------------------------