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
About Si1143
Si1143 is a gesture sensor and can be controlled by using the I2C.
This can be detected from the shortest 1cm up to 200cm.
Si1143 emits three infrared LED that is mounted on a substrate, and detects the movement by measuring the reflected light from the external object.
- Datasheet of Si1143
http://www.silabs.com/Support%20Documents/TechnicalDocs/Si114x.pdf
About wiring
VDD | 3.3V |
SCL | D15 |
SDA | D14 |
GND | GND |
Diff: rga_func.cpp
- Revision:
- 1:a07212e32dcb
- Parent:
- 0:84e4649e7707
- Child:
- 3:841987280a7f
--- a/rga_func.cpp Wed Jan 20 02:35:42 2016 +0000 +++ b/rga_func.cpp Wed Jan 20 08:09:15 2016 +0000 @@ -22,8 +22,8 @@ #include "rga_func.h" #include "Images/BinaryImage_RZ_A1H.h" -#define ZOOM_SRC_CENTER_X IMAGE_WIDTH_ZOOM_FUNC / 2 -#define ZOOM_SRC_CENTER_Y IMAGE_HEIGHT_ZOOM_FUNC / 2 +#define ZOOM_SRC_CENTER_X (IMAGE_WIDTH_ZOOM_FUNC / 2) +#define ZOOM_SRC_CENTER_Y (IMAGE_HEIGHT_ZOOM_FUNC / 2) Canvas2D_ContextClass canvas2d;