Просмотр исходного кода

Fixing default pixel test mode to use rainbox

ICPad
Jacob Alexander 8 лет назад
Родитель
Сommit
62ba0c558b
1 измененных файлов: 3 добавлений и 20 удалений
  1. 3
    20
      Macro/PixelMap/pixel.c

+ 3
- 20
Macro/PixelMap/pixel.c Просмотреть файл

case PixelTest_Pixel_Test: case PixelTest_Pixel_Test:
// Start from the top of the Animation Stack // Start from the top of the Animation Stack
// TODO // TODO
dbug_print("YSSS");
// XXX Temp - Play rainbow // XXX Temp - Play rainbow
Pixel_pixelProcess( rainbow_frames[rainbow_pos], rainbow_framesizes[rainbow_pos] ); Pixel_pixelProcess( rainbow_frames[rainbow_pos], rainbow_framesizes[rainbow_pos] );
rainbow_pos++; rainbow_pos++;
Pixel_testMode = PixelTest_Off;


if ( rainbow_pos >= sizeof( rainbow_frames ) / 2 )
if ( rainbow_pos > 33 )
{ {
rainbow_pos = 0; rainbow_pos = 0;
goto pixel_process_done; goto pixel_process_done;
break; break;
} }


// Start from the top of the Animation Stack
// TODO

/*
// XXX Temp - Play rainbow
Pixel_pixelProcess( rainbow_frames[rainbow_pos], rainbow_framesizes[rainbow_pos] );
rainbow_pos++;
Pixel_testMode = PixelTest_Off;

if ( rainbow_pos >= sizeof( rainbow_framesizes ) / 2 )
{
rainbow_pos = 0;
}
*/


pixel_process_done: pixel_process_done:
// Frame is now ready to send // Frame is now ready to send
Pixel_FrameState = FrameState_Ready; Pixel_FrameState = FrameState_Ready;
Pixel_FrameState = FrameState_Update; Pixel_FrameState = FrameState_Update;


// Disable test modes by default, start at position 0 // Disable test modes by default, start at position 0
Pixel_testMode = PixelTest_Off;
Pixel_testMode = PixelTest_Pixel_Test; // TODO Remove when better default available
//Pixel_testMode = PixelTest_Off;


// Clear animation stack // Clear animation stack
Pixel_AnimationStack.size = 0; Pixel_AnimationStack.size = 0;