#49787 - wizardy - Tue Aug 02, 2005 2:17 pm
I'm using just one screen, and want to turn the other off to don't waste battery, but haven't been able to find out how. Does anyone know how to do this?
Thanks.
Thanks.
Code: |
int main(){ vramSetMainBanks(VRAM_A_MAIN_BG, VRAM_B_MAIN_SPRITE, VRAM_C_SUB_BG, VRAM_D_SUB_SPRITE); videoSetMode(MODE_0_2D); videoSetModeSub(MODE_0_2D); irqInitHandler(irqDefaultHandler); irqSet(IRQ_VBLANK, irqVBlank); while(1){ uint16 sc = 0x0000; if((~(*(volatile uint16*)0x04000130)) & 0x0001){ //Press A to... sc = 0x0001; //...turn on both screens. } if((~(*(volatile uint16*)0x04000130)) & 0x0002){ //Press B to... sc |= 0x0002; //...enable Main 2D } if((~(*(volatile uint16*)0x04000130)) & 0x0004){ //Press Select to... sc |= 0x0200; //...enable Sub 2D } POWER_CR = sc; swiWaitForVBlank(); } } |