Skip to content

Commit 061d3a1

Browse files
authored
Merge pull request #4911 from DavePutz/issue_4908
Fix for issue #4908 - pulseout leaving line high
2 parents 57f898b + ab1d742 commit 061d3a1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ports/raspberrypi/common-hal/pulseio/PulseOut.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
#include "py/runtime.h"
3232
#include "shared-bindings/pulseio/PulseOut.h"
3333
#include "shared-bindings/pwmio/PWMOut.h"
34+
#include "shared-bindings/microcontroller/__init__.h"
3435
#include "common-hal/pwmio/PWMOut.h"
3536
#include "supervisor/shared/translate.h"
3637
#include "src/rp2_common/hardware_pwm/include/hardware/pwm.h"
@@ -105,5 +106,7 @@ void common_hal_pulseio_pulseout_send(pulseio_pulseout_obj_t *self, uint16_t *pu
105106
// signal.
106107
RUN_BACKGROUND_TASKS;
107108
}
109+
// Short delay to give pin time to settle before disabling PWM
110+
common_hal_mcu_delay_us(25);
108111
pwm_set_enabled(pwmout_obj->slice,false);
109112
}

0 commit comments

Comments
 (0)