diff --git a/usr/examples/04-Image-Filters/advanced_frame_differencing.py b/usr/examples/04-Image-Filters/advanced_frame_differencing.py index 23d08f23e..cd2af5c73 100644 --- a/usr/examples/04-Image-Filters/advanced_frame_differencing.py +++ b/usr/examples/04-Image-Filters/advanced_frame_differencing.py @@ -15,7 +15,7 @@ sensor.reset() # Initialize the camera sensor. sensor.set_pixformat(sensor.GRAYSCALE) # or sensor.RGB565 sensor.set_framesize(sensor.QVGA) # or sensor.QQVGA (or others) sensor.skip_frames(10) # Let new settings take affect. -sensor.set_whitebal(False) # Turn off white balance. +sensor.set_auto_whitebal(False) # Turn off white balance. clock = time.clock() # Tracks FPS. if not "temp" in os.listdir(): os.mkdir("temp") # Make a temp directory diff --git a/usr/examples/04-Image-Filters/basic_frame_differencing.py b/usr/examples/04-Image-Filters/basic_frame_differencing.py index 6ad26240d..4fcd893d9 100644 --- a/usr/examples/04-Image-Filters/basic_frame_differencing.py +++ b/usr/examples/04-Image-Filters/basic_frame_differencing.py @@ -12,7 +12,7 @@ sensor.reset() # Initialize the camera sensor. sensor.set_pixformat(sensor.RGB565) # or sensor.GRAYSCALE sensor.set_framesize(sensor.QVGA) # or sensor.QQVGA (or others) sensor.skip_frames(10) # Let new settings take affect. -sensor.set_whitebal(False) # Turn off white balance. +sensor.set_auto_whitebal(False) # Turn off white balance. clock = time.clock() # Tracks FPS. if not "temp" in os.listdir(): os.mkdir("temp") # Make a temp directory diff --git a/usr/examples/05-Snapshot/snapshot_on_movement.py b/usr/examples/05-Snapshot/snapshot_on_movement.py index ab63fb61f..8ba7837f8 100644 --- a/usr/examples/05-Snapshot/snapshot_on_movement.py +++ b/usr/examples/05-Snapshot/snapshot_on_movement.py @@ -14,7 +14,7 @@ sensor.reset() # Initialize the camera sensor. sensor.set_pixformat(sensor.RGB565) # or sensor.GRAYSCALE sensor.set_framesize(sensor.QVGA) # or sensor.QQVGA (or others) sensor.skip_frames(10) # Let new settings take affect. -sensor.set_whitebal(False) # Turn off white balance. +sensor.set_auto_whitebal(False) # Turn off white balance. if not "temp" in os.listdir(): os.mkdir("temp") # Make a temp directory diff --git a/usr/examples/06-Video-Recording/gif_on_movement.py b/usr/examples/06-Video-Recording/gif_on_movement.py index fbbc60e67..e73022953 100644 --- a/usr/examples/06-Video-Recording/gif_on_movement.py +++ b/usr/examples/06-Video-Recording/gif_on_movement.py @@ -18,7 +18,7 @@ sensor.reset() # Initialize the camera sensor. sensor.set_pixformat(sensor.RGB565) # or sensor.GRAYSCALE sensor.set_framesize(sensor.QQVGA) # or sensor.QVGA (or others) sensor.skip_frames(10) # Let new settings take affect. -sensor.set_whitebal(False) # Turn off white balance. +sensor.set_auto_whitebal(False) # Turn off white balance. if not "temp" in os.listdir(): os.mkdir("temp") # Make a temp directory diff --git a/usr/examples/06-Video-Recording/mjpeg_on_movement.py b/usr/examples/06-Video-Recording/mjpeg_on_movement.py index 077ed43ad..8986c53f8 100644 --- a/usr/examples/06-Video-Recording/mjpeg_on_movement.py +++ b/usr/examples/06-Video-Recording/mjpeg_on_movement.py @@ -19,7 +19,7 @@ sensor.reset() # Initialize the camera sensor. sensor.set_pixformat(sensor.RGB565) # or sensor.GRAYSCALE sensor.set_framesize(sensor.QVGA) # or sensor.QQVGA (or others) sensor.skip_frames(10) # Let new settings take affect. -sensor.set_whitebal(False) # Turn off white balance. +sensor.set_auto_whitebal(False) # Turn off white balance. if not "temp" in os.listdir(): os.mkdir("temp") # Make a temp directory diff --git a/usr/examples/09-Feature-Detection/qrcodes with_lens_corr.py b/usr/examples/09-Feature-Detection/qrcodes_with_lens_corr.py similarity index 97% rename from usr/examples/09-Feature-Detection/qrcodes with_lens_corr.py rename to usr/examples/09-Feature-Detection/qrcodes_with_lens_corr.py index acc7b68e3..4c85ba19a 100644 --- a/usr/examples/09-Feature-Detection/qrcodes with_lens_corr.py +++ b/usr/examples/09-Feature-Detection/qrcodes_with_lens_corr.py @@ -17,7 +17,7 @@ sensor.reset() sensor.set_pixformat(sensor.GRAYSCALE) sensor.set_framesize(sensor.QVGA) sensor.skip_frames(10) -sensor.set_gain_ctrl(False) +sensor.set_auto_gain(False) clock = time.clock() while(True): diff --git a/usr/examples/09-Feature-Detection/qrcodes_with_lens_zoom.py b/usr/examples/09-Feature-Detection/qrcodes_with_lens_zoom.py index c1782a5f1..5d3088aaf 100644 --- a/usr/examples/09-Feature-Detection/qrcodes_with_lens_zoom.py +++ b/usr/examples/09-Feature-Detection/qrcodes_with_lens_zoom.py @@ -18,7 +18,7 @@ sensor.set_pixformat(sensor.GRAYSCALE) sensor.set_framesize(sensor.VGA) sensor.set_windowing((640//2 - 200//2, 480//2 - 200//2, 200, 200)) sensor.skip_frames(10) -sensor.set_gain_ctrl(False) +sensor.set_auto_gain(False) clock = time.clock() while(True): diff --git a/usr/examples/10-Color-Tracking/blob_detection.py b/usr/examples/10-Color-Tracking/blob_detection.py index 7678822db..6498f67e5 100644 --- a/usr/examples/10-Color-Tracking/blob_detection.py +++ b/usr/examples/10-Color-Tracking/blob_detection.py @@ -15,7 +15,7 @@ sensor.reset() # Initialize the camera sensor. sensor.set_pixformat(sensor.RGB565) # use RGB565. sensor.set_framesize(sensor.QQVGA) # use QQVGA for speed. sensor.skip_frames(10) # Let new settings take affect. -sensor.set_whitebal(False) # turn this off. +sensor.set_auto_whitebal(False) # turn this off. clock = time.clock() # Tracks FPS. while(True): diff --git a/usr/examples/10-Color-Tracking/line_following.py b/usr/examples/10-Color-Tracking/line_following.py index 991ff509a..3d14b4577 100644 --- a/usr/examples/10-Color-Tracking/line_following.py +++ b/usr/examples/10-Color-Tracking/line_following.py @@ -34,7 +34,7 @@ sensor.reset() # Initialize the camera sensor. sensor.set_pixformat(sensor.GRAYSCALE) # use grayscale. sensor.set_framesize(sensor.QQVGA) # use QQVGA for speed. sensor.skip_frames(10) # Let new settings take affect. -sensor.set_whitebal(False) # turn this off. +sensor.set_auto_whitebal(False) # turn this off. clock = time.clock() # Tracks FPS. while(True): diff --git a/usr/examples/10-Color-Tracking/marker_tracking.py b/usr/examples/10-Color-Tracking/marker_tracking.py index adede6644..2636b4430 100644 --- a/usr/examples/10-Color-Tracking/marker_tracking.py +++ b/usr/examples/10-Color-Tracking/marker_tracking.py @@ -26,7 +26,7 @@ sensor.reset() # Initialize the camera sensor. sensor.set_pixformat(sensor.RGB565) # use RGB565. sensor.set_framesize(sensor.QQVGA) # use QQVGA for speed. sensor.skip_frames(10) # Let new settings take affect. -sensor.set_whitebal(False) # turn this off. +sensor.set_auto_whitebal(False) # turn this off. clock = time.clock() # Tracks FPS. while(True):