Release 1.11 is not yet out. But I have just put another prerelease on the download page.
Let me know if the sleep function works. I added it some hours ago.
I read the news for 1.11: New release v1.11 is available for download:
Support for T6963
Support for Arduino Due Sleep Mode
4x mode for ST7920
New C++ interface for ST7920
but i not find how i have to do for use the function sleepon and sleepoff.
I'm looking for text "sleepon" in all archives of library and I not find it.
I put the code in my sketch and when i compile it say me:
ProAACon_V115.ino: In function 'void SCRApagaPantalla()':
ProAACon_V115:702: error: 'class U8GLIB_DOGM128' has no member named 'sleepOn'
ProAACon_V115.ino: In function 'void SCREnciendePantalla()':
ProAACon_V115:709: error: 'class U8GLIB_DOGM128' has no member named 'sleepOff'
My functions are:
///////////////////////////////////////////////////////////////
// APAGAMOS LA PANTALLA
///////////////////////////////////////////////////////////////
void SCRApagaPantalla(){
scru8g.sleepOn();
}
///////////////////////////////////////////////////////////////
// ENCENDEMOS LA PANTALLA
///////////////////////////////////////////////////////////////
void SCREnciendePantalla(){
scru8g.sleepOff();
}