Image scroll Sample. This program uses GraphicsFramework library and Si1143 sensor.
Dependencies: GR-PEACH_video GraphicsFramework R_BSP SI1143 mbed-rtos mbed
Fork of RGA_HelloWorld by
rga_func.h
00001 /* 00002 Permission is hereby granted, free of charge, to any person obtaining a copy 00003 of this software and associated documentation files (the "Software"), to deal 00004 in the Software without restriction, including without limitation the rights 00005 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 00006 copies of the Software, and to permit persons to whom the Software is 00007 furnished to do so, subject to the following conditions: 00008 00009 The above copyright notice and this permission notice shall be included in 00010 all copies or substantial portions of the Software. 00011 00012 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 00013 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 00014 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 00015 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 00016 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 00017 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 00018 THE SOFTWARE. 00019 */ 00020 00021 #ifndef RGA_FUNC_H 00022 #define RGA_FUNC_H 00023 00024 #include "RGA.h" 00025 00026 #define IMG_DRAW_WIDTH (241) 00027 #define IMG_DRAW_HEIGHT (180) 00028 #define IMAGE_WIDTH_SCROLL_FUNC (352) // Image width of Scroll function 00029 #define IMAGE_HEIGHT_SCROLL_FUNC (233) // Image height of Scroll function 00030 00031 #define SCROLL_STEP_NUM (30) // minimum 1 00032 00033 enum { 00034 DIREC_NON, 00035 DIREC_UP, 00036 DIREC_DOWN, 00037 DIREC_LEFT, 00038 DIREC_RIGHT 00039 }; 00040 00041 00042 extern void Set_RGAObject(frame_buffer_t* frmbuf_info); 00043 void RGA_Func_DrawTopScreen(frame_buffer_t* frmbuf_info, const graphics_image_t* image); 00044 void RGA_Func_Scroll(frame_buffer_t* frmbuf_info, const graphics_image_t* image_old, const graphics_image_t* image_new, 00045 int direction, float32_t scroll); 00046 00047 #endif
Generated on Thu Jul 14 2022 22:34:42 by 1.7.2