Image rotation Sample. This program uses GraphicsFramework library and L3GD20 sensor.
Dependencies: GR-PEACH_video GraphicsFramework L3GD20 R_BSP mbed-rtos mbed
Fork of RGA_HelloWorld by
About L3GD20
L3GD20 is a 3-axis gyroscope sensor and can be controlled by using theI2C.
- Datasheet of L3GD20
http://www.st.com/content/ccc/resource/technical/document/datasheet/43/37/e3/06/b0/bf/48/bd/DM00036465.pdf/files/DM00036465.pdf/jcr:content/translations/en.DM00036465.pdf
About wiring
Sensor | GR-PEACH |
VDD | 3.3V |
SCL | D15 |
SDA | D14 |
SA0 | 3.3V |
CS | 3.3V |
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;