Skip to main content

Pulseio

Library

Stemi pulseio library exposes everything from the original pulseio library in addition to modifying two classes (PulseOut and PulseIn). Check out official pulseio documentation here.

pulseio.py
class PulseIn:
... # all other pulseio methods and properties

@staticmethod
def deinit_all():
...


class PulseOut:
... # all other pulseio methods and properties

@staticmethod
def deinit_all():
...

Explanations

ReturnsDescription
deinit_allReleases all pins that were used through stemi.pulseio

Example

from stemi.pulseio import PulseIn
import board

a = PulseIn(board.IO12)
b = PulseIn(board.IO11)

PulseIn.deinit_all() # deinitializes both a and b