Skip to content

Commit cae31d6

Browse files
committed
remove PWMOut from pulseio
1 parent d93a9a1 commit cae31d6

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

py/circuitpy_mpconfig.mk

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -234,9 +234,7 @@ CFLAGS += -DCIRCUITPY_PS2IO=$(CIRCUITPY_PS2IO)
234234
CIRCUITPY_PULSEIO ?= 1
235235
CFLAGS += -DCIRCUITPY_PULSEIO=$(CIRCUITPY_PULSEIO)
236236

237-
# For now we tie PWMIO to PULSEIO so they always both exist. In CircuitPython 7
238-
# we can enable and disable them separately once PWMOut is removed from `pulseio`.
239-
CIRCUITPY_PWMIO ?= $(CIRCUITPY_PULSEIO)
237+
CIRCUITPY_PWMIO ?= 1
240238
CFLAGS += -DCIRCUITPY_PWMIO=$(CIRCUITPY_PWMIO)
241239

242240
CIRCUITPY_RANDOM ?= 1

shared-bindings/pulseio/__init__.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,18 +33,13 @@
3333
#include "shared-bindings/pulseio/__init__.h"
3434
#include "shared-bindings/pulseio/PulseIn.h"
3535
#include "shared-bindings/pulseio/PulseOut.h"
36-
#include "shared-bindings/pwmio/PWMOut.h"
3736

3837
//| """Support for individual pulse based protocols
3938
//|
4039
//| The `pulseio` module contains classes to provide access to basic pulse IO.
4140
//| Individual pulses are commonly used in infrared remotes and in DHT
4241
//| temperature sensors.
4342
//|
44-
//|
45-
//| .. warning:: PWMOut is moving to `pwmio` and will be removed from `pulseio`
46-
//| in CircuitPython 7.
47-
//|
4843
//| All classes change hardware state and should be deinitialized when they
4944
//| are no longer needed if the program continues after use. To do so, either
5045
//| call :py:meth:`!deinit` or use a context manager. See
@@ -55,7 +50,6 @@ STATIC const mp_rom_map_elem_t pulseio_module_globals_table[] = {
5550
{ MP_ROM_QSTR(MP_QSTR___name__), MP_ROM_QSTR(MP_QSTR_pulseio) },
5651
{ MP_ROM_QSTR(MP_QSTR_PulseIn), MP_ROM_PTR(&pulseio_pulsein_type) },
5752
{ MP_ROM_QSTR(MP_QSTR_PulseOut), MP_ROM_PTR(&pulseio_pulseout_type) },
58-
{ MP_ROM_QSTR(MP_QSTR_PWMOut), MP_ROM_PTR(&pwmio_pwmout_type) },
5953
};
6054

6155
STATIC MP_DEFINE_CONST_DICT(pulseio_module_globals, pulseio_module_globals_table);

0 commit comments

Comments
 (0)