Views: 1,611,767 | Main | Rules/FAQ | Memberlist | Active users | Last posts | Calendar | Stats | Online users | Search | 12-03-24 05:18 PM |
Guest: |
Main - Posts by CTurt |
CTurt |
| ||
Newcomer Normal user Level: 4 Posts: 1/2 EXP: 165 Next: 114 Since: 07-22-15 Last post: 3421 days ago Last view: 3421 days ago |
My app 3DS Controller doesn't use the top screen at all, and only the bottom screen occasionally for the on screen keyboard functionality.
So, to conserve battery power, I would like to disable backlight. Is this possible? |
CTurt |
| ||
Newcomer Normal user Level: 4 Posts: 2/2 EXP: 165 Next: 114 Since: 07-22-15 Last post: 3421 days ago Last view: 3421 days ago |
Worked it out.
#ifndef REG_LCDBACKLIGHTMAIN #define REG_LCDBACKLIGHTMAIN (u32)(0x1ED02240 - 0x1EB00000) #endif #ifndef REG_LCDBACKLIGHTSUB #define REG_LCDBACKLIGHTSUB (u32)(0x1ED02A40 - 0x1EB00000) #endif static u32 brightnessMain; static u32 brightnessSub; void disableBacklight() { u32 off = 0; GSPGPU_ReadHWRegs(NULL, REG_LCDBACKLIGHTMAIN, &brightnessMain, 4); GSPGPU_ReadHWRegs(NULL, REG_LCDBACKLIGHTSUB, &brightnessSub, 4); GSPGPU_WriteHWRegs(NULL, REG_LCDBACKLIGHTMAIN, &off, 4); GSPGPU_WriteHWRegs(NULL, REG_LCDBACKLIGHTSUB, &off, 4); } void enableBacklight() { GSPGPU_WriteHWRegs(NULL, REG_LCDBACKLIGHTMAIN, &brightnessMain, 4); GSPGPU_WriteHWRegs(NULL, REG_LCDBACKLIGHTSUB, &brightnessSub, 4); } |
Main - Posts by CTurt |
Page rendered in 0.016 seconds. (2048KB of memory used) MySQL - queries: 22, rows: 63/63, time: 0.010 seconds. Acmlmboard 2.064 (2018-07-20) © 2005-2008 Acmlm, Xkeeper, blackhole89 et al. |