Skip to content

Commit 5a2d870

Browse files
authored
Merge pull request #6741 from tannewt/remove_pulseout_pwm_param
Remove PWMOut parameter to PulseOut
2 parents 9a44e12 + 35f3773 commit 5a2d870

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

shared-bindings/onewireio/OneWire.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,6 @@
4242
//|
4343
//| :param ~microcontroller.Pin pin: Pin connected to the OneWire bus
4444
//|
45-
//| .. note:: The OneWire class is available on `busio` and `bitbangio` in CircuitPython
46-
//| 7.x for backwards compatibility but will be removed in CircuitPython 8.0.0.
47-
//|
4845
//| Read a short series of pulses::
4946
//|
5047
//| import onewireio

shared-bindings/pulseio/PulseOut.c

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,6 @@
4848
//| :param int frequency: Carrier signal frequency in Hertz
4949
//| :param int duty_cycle: 16-bit duty cycle of carrier frequency (0 - 65536)
5050
//|
51-
//| For backwards compatibility, ``pin`` may be a PWMOut object used as the carrier. This
52-
//| compatibility will be removed in CircuitPython 8.0.0.
53-
//|
5451
//| Send a short series of pulses::
5552
//|
5653
//| import array
@@ -82,14 +79,6 @@ STATIC mp_obj_t pulseio_pulseout_make_new(const mp_obj_type_t *type, size_t n_ar
8279
const mcu_pin_obj_t *pin = args[ARG_pin].u_obj;
8380
mp_int_t frequency = args[ARG_frequency].u_int;
8481
mp_int_t duty_cycle = args[ARG_duty_cycle].u_int;
85-
if (mp_obj_is_type(args[ARG_pin].u_obj, &pwmio_pwmout_type)) {
86-
pwmio_pwmout_obj_t *pwmout = args[ARG_pin].u_obj;
87-
duty_cycle = common_hal_pwmio_pwmout_get_duty_cycle(pwmout);
88-
frequency = common_hal_pwmio_pwmout_get_frequency(pwmout);
89-
pin = common_hal_pwmio_pwmout_get_pin(pwmout);
90-
// Deinit the pin so we can use it.
91-
common_hal_pwmio_pwmout_deinit(pwmout);
92-
}
9382
validate_obj_is_free_pin(MP_OBJ_FROM_PTR(pin));
9483
pulseio_pulseout_obj_t *self = m_new_obj(pulseio_pulseout_obj_t);
9584
self->base.type = &pulseio_pulseout_type;

0 commit comments

Comments
 (0)