diff --git a/README.rst b/README.rst index 07a8c97..08c0df7 100644 --- a/README.rst +++ b/README.rst @@ -48,7 +48,7 @@ In most cases you just need a couple of imports. # Change servo settings. crickit.servo_1.actuation_range = 135 - crickit.servo_1.set_pulse_widths(min_pulse=850, max_pulse=2100) + crickit.servo_1.set_pulse_width_range(min_pulse=850, max_pulse=2100) # You can assign a device to a variable to get a shorter name. servo_2 = crickit.servo_2 diff --git a/examples/crickit_multi_example.py b/examples/crickit_multi_example.py index 9237c05..c9c1891 100644 --- a/examples/crickit_multi_example.py +++ b/examples/crickit_multi_example.py @@ -11,7 +11,7 @@ # Change servo settings. crickit.servo_1.actuation_range = 135 -crickit.servo_1.set_pulse_widths(min_pulse=850, max_pulse=2100) +crickit.servo_1.set_pulse_width_range(min_pulse=850, max_pulse=2100) # You can assign a device to a variable to get a shorter name. servo_2 = crickit.servo_2