|
Post by brunovr on Feb 8, 2014 6:38:14 GMT -8
Hi, is possible to switch off the display (not black color, but turnoff led light). how ?
I want to preserve it for a long period of unuse…..
Yes, i'm working about GUI for Home, this is a touch for game, but is very beautifull for everything !
|
|
|
Post by jamesbowman on Feb 8, 2014 14:29:10 GMT -8
You can turn off the backlight with:
GD.wr(REG_PWM_DUTY, 0);
The backlight is actually dimmable, so to fade out over 1/4 second:
for (int i = 127; i >= 0; i--) { GD.wr(REG_PWM_DUTY, i); delay(2); } For a little more power saving, you can turn off the LCD's circuits and stop the GPU's display output:
GD.wr(REG_GPIO, 0); GD.wr(REG_PCLK, 0); And restore them all with:
GD.wr(REG_PWM_DUTY, 128); GD.wr(REG_GPIO, 0x80); GD.wr(REG_PCLK, 5);
|
|
|
Post by brunovr on Feb 9, 2014 3:14:16 GMT -8
You can turn off the backlight with: GD.wr(REG_PWM_DUTY, 0);
The backlight is actually dimmable, so to fade out over 1/4 second: for (int i = 127; i >= 0; i--) { GD.wr(REG_PWM_DUTY, i); delay(2); } Very Very Very WONDERFULL !!!!!!!  Thank's ! --
|
|
|
Post by aaronpbrooks on Mar 12, 2014 19:37:52 GMT -8
Is it also possible, then, to disable the backlight flashing on at startup from within the code?
|
|
|
Post by jamesbowman on Mar 15, 2014 16:06:33 GMT -8
I have been unable to find out how to do this - the FT800 initialization sequence is in GD2.begin() and the low-level init is in transports/wiring.h. If someone discovers a reliable way of preventing the backlight flash, mail me! Thanks.
|
|
|
Post by GBOP on Sept 24, 2015 7:07:08 GMT -8
Was anybody able to figure out how to stop the back light flashing on start-up?
|
|
|
Post by mangy_dog on Feb 10, 2018 15:46:17 GMT -8
Ive been looking at the library begin function and it looks like james has put in a pwm control to try and hide the the flashing by turning off the backlight... However, it appears that the eve ignores it and flashes anyway... Maybe its a flaw in the design of the eve chip itself...
|
|