Image Zoom In/out Sample. This program uses GraphicsFramework library and GP2Y0A21YK sensor. Please use distance sensor in the range of 10-30cm.

Dependencies:   GR-PEACH_video GraphicsFramework R_BSP mbed-rtos mbed

Fork of RGA_HelloWorld by Renesas

About GP2Y0A21YK

GP2Y0A21YK is a distance sensor and can be controlled by using the AnalogIn.
The range of this sensor is 10-80cm.

About wiring

SensorGR-PEACH
White wireA0
Orange wireGND
Black wire5.0V
Revision:
1:a07212e32dcb
Parent:
0:84e4649e7707
Child:
3:841987280a7f
diff -r 84e4649e7707 -r a07212e32dcb rga_func.h
--- a/rga_func.h	Wed Jan 20 02:35:42 2016 +0000
+++ b/rga_func.h	Wed Jan 20 08:09:15 2016 +0000
@@ -31,8 +31,8 @@
 #define IMAGE_HEIGHT_ZOOM_FUNC              233      // Image height of Zoom function
 
 #define DISSOLVE_MAX_NUM                    256
-#define SCROLL_MAX_NUM                      IMAGE_WIDTH_SCROLL_FUNC - IMG_DRAW_WIDTH
-#define ZOOM_MAX_NUM                        IMAGE_HEIGHT_ZOOM_FUNC / 2
+#define SCROLL_MAX_NUM                      (IMAGE_WIDTH_SCROLL_FUNC - IMG_DRAW_WIDTH)
+#define ZOOM_MAX_NUM                        (IMAGE_HEIGHT_ZOOM_FUNC / 2)
 #define ROTATION_MAX_NUM                    360
 #define ACCELERATE_MAX_NUM                  256