- Joined
- Jun 2, 2007
- Messages
- 765
- Trophies
- 0
- Age
- 29
- Location
- The GREAT Southern Land :D
- Website
- Visit site
- XP
- 293
- Country
What did i do wrong in this code, i'm trying to make an app that when u press the A button it changes the colour of the top screen to a random colour
CODE// PALib Template Application
// Includes
#include    // Include for PA_Lib
u8 Colour1 = 31;
u8 Colour2 = 31;
u8 Colour3 = 31;
u32 max = 31;
int main()
{
ÂÂÂÂint i;
ÂÂÂÂconsoleDemoInit();
ÂÂÂÂvideoSetMode(MODE_FB0);
ÂÂÂÂvramSetBankA(VRAM_A_LCD);
ÂÂÂÂprintf("WELCOME TO SpYdEr's first DS app\n");
ÂÂÂÂprintf("Press A to change colour of the top screen\n");
ÂÂÂÂif (Pad.Newpress.Anykey)
Âu32 Colour1 = PA_RandMax(max);
ÂÂÂÂ
ÂÂÂÂfor(i = 0; i < 256 * 192; i++)
ÂVRAM_A = RGB15(Colour1,Colour2,Colour3);
ÂÂÂÂreturn 0;
}
CODE// PALib Template Application
// Includes
#include    // Include for PA_Lib
u8 Colour1 = 31;
u8 Colour2 = 31;
u8 Colour3 = 31;
u32 max = 31;
int main()
{
ÂÂÂÂint i;
ÂÂÂÂconsoleDemoInit();
ÂÂÂÂvideoSetMode(MODE_FB0);
ÂÂÂÂvramSetBankA(VRAM_A_LCD);
ÂÂÂÂprintf("WELCOME TO SpYdEr's first DS app\n");
ÂÂÂÂprintf("Press A to change colour of the top screen\n");
ÂÂÂÂif (Pad.Newpress.Anykey)
Âu32 Colour1 = PA_RandMax(max);
ÂÂÂÂ
ÂÂÂÂfor(i = 0; i < 256 * 192; i++)
ÂVRAM_A = RGB15(Colour1,Colour2,Colour3);
ÂÂÂÂreturn 0;
}