/** * @brief Draw one by one all objects of scene using DMA2D operation in polling mode * @param object * @retval None */ static void anime_draw_scene(anime_object_t object) { anime_draw_object(battery_20x35, 50, 50, 0xFF, object); anime_draw_object(logo_compo_134x124, 666, 356, 0xFF, object); anime_draw_object(icon_camera_60x60, 209, 159, 0xFF, object); gauge1_128x126.animation++; switch(gauge1_128x126.animation) { case 1 : anime_draw_object(gauge1_128x126, 336, 177, 0xFF, object); break; case 2 : anime_draw_object(gauge2_128x126, 336, 177, 0xFF, object); break; default : anime_draw_object(gauge3_128x126, 336, 177, 0xFF, object); gauge1_128x126.animation = 0; break; } /* of switch(gauge1_128x126.animation) */ clouds1_124x44.animation++; switch(clouds1_124x44.animation) { case 1 : anime_draw_object(clouds1_124x44, 600, 50, 0xFF, object); break; case 2 : anime_draw_object(clouds2_124x44, 600, 50, 0xFF, object); break; default : anime_draw_object(clouds3_124x44, 600, 50, 0xFF, object); clouds1_124x44.animation = 0; break; } /* of switch(clouds1_124x44.animation) */ anime_draw_object(drop_29x35, 300, 400, 0xFF, object); anime_draw_object(thermo_25x35, 340, 400, 0xFF, object); anime_draw_object(gyro_36x36, 370, 400, 0xFF, object); anime_draw_object(bluetooth_30x35, 415, 400, 0xFF, object); }
/** * @brief Draw one by one all objects of scene using DMA2D operation in polling mode * @param object * @retval None */ static void anime_draw_scene(anime_object_t object) { #ifdef USE_CAMERA_IN_ANIMATION /* Draw camera buffer in the middle of object and shifted by 0 in x with transparency to fully opaque (0xFF) */ anime_draw_object(anime_cam_frame_buffer, 0, 0, 0xFF, object); #endif /* USE_CAMERA_IN_ANIMATION */ anime_draw_object(battery_20x35, 50, 50, 0xFF, object); anime_draw_object(logo_compo_134x124, 666, 356, 0xFF, object); anime_draw_object(icon_camera_60x60, 209, 159, 0xFF, object); gauge1_128x126.animation++; switch(gauge1_128x126.animation) { case 1 : anime_draw_object(gauge1_128x126, 336, 177, 0xFF, object); break; case 2 : anime_draw_object(gauge2_128x126, 336, 177, 0xFF, object); break; default : anime_draw_object(gauge3_128x126, 336, 177, 0xFF, object); gauge1_128x126.animation = 0; break; } /* of switch(gauge1_128x126.animation) */ clouds1_124x44.animation++; switch(clouds1_124x44.animation) { case 1 : anime_draw_object(clouds1_124x44, 600, 50, 0xFF, object); break; case 2 : anime_draw_object(clouds2_124x44, 600, 50, 0xFF, object); break; default : anime_draw_object(clouds3_124x44, 600, 50, 0xFF, object); clouds1_124x44.animation = 0; break; } /* of switch(clouds1_124x44.animation) */ anime_draw_object(drop_29x35, 300, 400, 0xFF, object); anime_draw_object(thermo_25x35, 340, 400, 0xFF, object); anime_draw_object(gyro_36x36, 370, 400, 0xFF, object); anime_draw_object(bluetooth_30x35, 415, 400, 0xFF, object); }