Pages: [1]   Go Down
Author Topic: U8GLIB: sleepOn/Off not working  (Read 427 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Jr. Member
**
Karma: 0
Posts: 64
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I'm using the "SainSmart 12864 128x64 Graphic Blue LCD Display Module Backlight For Arduino UNO R3 Duemilanove MEGA2560 MEGA1280 AVR" with the Mega 2560 and the display works fine but u8g.sleepOn() does not work. Does anyone have any suggestions on what to do to get it to work?

I'm using v1.11 of the U8GLIB which is suppose to have support for sleepOn/Off.

If I put a power transistor between the mega's +5v and Vcc on the display to turn it on and off will that damage the display with SDA and SCL lines still active?
« Last Edit: April 28, 2013, 07:20:58 pm by sparkfuntoday » Logged

Germany
Offline Offline
Edison Member
*
Karma: 137
Posts: 1515
If you believe something is right, you won't see what's wrong (David Straker).
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

These sleep functions are only available for some display types. What is your exact constructor line?

Quote
If I put a power transistor between the mega's +5v and Vcc on the display to turn it on and off will that damage the display with SDA and SCL lines still active?

Probably not, but you need to reinit the display. You can use u8g.begin() for this. All other settings are also lost...

Oliver
Logged

Pages: [1]   Go Up
Jump to: