Skip to content

Commit 936228d

Browse files
committed
camera: Rename variable.
1 parent 7c42b18 commit 936228d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Diff for: libraries/Camera/examples/CameraCaptureZoomPan/CameraCaptureZoomPan.ino

+5-5
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
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

3333
constexpr uint16_t ZOOM_WINDOW_WIDTH = 320;
3434
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;
3737

3838
FrameBuffer frameBuffer;
3939
uint32_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
}

0 commit comments

Comments
 (0)