File tree 1 file changed +5
-5
lines changed
libraries/Camera/examples/CameraCaptureZoomPan
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 2
2
* This example shows how to use the Nicla Vision to capture images from the camera
3
3
* with a zoom window and send them over the serial port.
4
4
* The zoom window will move from left to right and top to bottom
5
- * in the predefined steps of pixels (ZOOM_X_STEPS and ZOOM_Y_STEPS ).
5
+ * in the predefined steps of pixels (ZOOM_X_STEP and ZOOM_Y_STEP ).
6
6
*
7
7
* Whenever the board sends a frame over the serial port, the blue LED will blink.
8
8
*
@@ -32,8 +32,8 @@ Camera cam(galaxyCore);
32
32
33
33
constexpr uint16_t ZOOM_WINDOW_WIDTH = 320 ;
34
34
constexpr uint16_t ZOOM_WINDOW_HEIGHT = 240 ;
35
- constexpr uint16_t ZOOM_X_STEPS = 100 ;
36
- constexpr uint16_t ZOOM_Y_STEPS = 100 ;
35
+ constexpr uint16_t ZOOM_X_STEP = 100 ;
36
+ constexpr uint16_t ZOOM_Y_STEP = 100 ;
37
37
38
38
FrameBuffer frameBuffer;
39
39
uint32_t currentZoomX = 0 ;
@@ -111,11 +111,11 @@ void loop() {
111
111
112
112
if (request == 1 ){
113
113
sendFrame ();
114
- currentZoomX += ZOOM_X_STEPS ;
114
+ currentZoomX += ZOOM_X_STEP ;
115
115
116
116
if (currentZoomX > maxZoomX){
117
117
currentZoomX = 0 ;
118
- currentZoomY += ZOOM_Y_STEPS ;
118
+ currentZoomY += ZOOM_Y_STEP ;
119
119
if (currentZoomY > maxZoomY){
120
120
currentZoomY = 0 ;
121
121
}
You can’t perform that action at this time.
0 commit comments