Skip to content

PulseOut constructor sometimes leaves the line high #5016

@dmcomm

Description

@dmcomm

CircuitPython version

Adafruit CircuitPython 7.0.0-alpha.4-115-g3c25d8e2a on 2021-07-18; Raspberry Pi Pico with rp2040

Code/REPL

import board
import pulseio
import pwmio
import time

while(True):
	pwm = pwmio.PWMOut(board.GP0, frequency=38000, duty_cycle=2**15)
	pulseOut = pulseio.PulseOut(pwm)
	time.sleep(5)
	pulseOut.deinit()
	pwm.deinit()
	time.sleep(1)

Behavior

Sometimes the line is high after creating the PulseOut object. I guess the same cause as #4908 . Though sounds like some of this code might be going away in #3264 .

Description

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugrp2040Raspberry Pi RP2040

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions