File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
libraries/Camera/examples/CameraCaptureZoomPan Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 22 * This example shows how to use the Nicla Vision to capture images from the camera
33 * with a zoom window and send them over the serial port.
44 * 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 ).
66 *
77 * Whenever the board sends a frame over the serial port, the blue LED will blink.
88 *
@@ -32,8 +32,8 @@ Camera cam(galaxyCore);
3232
3333constexpr uint16_t ZOOM_WINDOW_WIDTH = 320 ;
3434constexpr 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 ;
3737
3838FrameBuffer frameBuffer;
3939uint32_t currentZoomX = 0 ;
@@ -111,11 +111,11 @@ void loop() {
111111
112112 if (request == 1 ){
113113 sendFrame ();
114- currentZoomX += ZOOM_X_STEPS ;
114+ currentZoomX += ZOOM_X_STEP ;
115115
116116 if (currentZoomX > maxZoomX){
117117 currentZoomX = 0 ;
118- currentZoomY += ZOOM_Y_STEPS ;
118+ currentZoomY += ZOOM_Y_STEP ;
119119 if (currentZoomY > maxZoomY){
120120 currentZoomY = 0 ;
121121 }
You can’t perform that action at this time.
0 commit comments