circuitpython/ports
robert-hh d693758ab2 samd/machine_pwm: Add the machine.PWM class.
Features are:
- 3 to 5 different frequency groups.
- Freq range of 1Hz - 24 MHz.
- Duty rate stays stable on freq change.

Keyword options to the PWM constructor:
- device=n Select a specific PWM device.  If no device is specified, a free
           device is chosen, if available at that pin.
- freq=nnnn
- duty_u16=nnnn
- duty_ns=nnnn
- invert=True/False Allowing two outputs on the same device/channel to have
                    complementary signals.

If both freq and duty are provided, PWM output will start immediately.

Pins at the same device have the same frequency.  If the PWM output number
exceeds the number of channels at the PWM device, the effctive channel_no
is output_no % channel_count.  So with a channel count of 4, output 7 is
assigned to channel 3.  Pins at a certain channel have the same frequency
and duty rate, but may be seperately inverted.
2022-10-06 22:42:55 +11:00
..
bare-arm bare-arm/mpconfigport.h: Disable remaining optional features. 2021-11-01 14:23:06 +11:00
cc3200 py/obj: Convert make_new into a mp_obj_type_t slot. 2022-09-19 19:06:15 +10:00
esp32 esp32/machine_hw_spi: Use auto DMA channel on S2, S3, C3 chips. 2022-10-04 17:43:48 +11:00
esp8266 top: Replace upip with mip everywhere. 2022-09-30 17:34:03 +10:00
mimxrt py/obj: Convert make_new into a mp_obj_type_t slot. 2022-09-19 19:06:15 +10:00
minimal tests/frozen: Move frozentest.mpy from ports/ to tests/. 2022-09-19 23:51:10 +10:00
nrf py/obj: Convert make_new into a mp_obj_type_t slot. 2022-09-19 19:06:15 +10:00
pic16bit py/obj: Convert make_new into a mp_obj_type_t slot. 2022-09-19 19:06:15 +10:00
powerpc tests/frozen: Move frozentest.mpy from ports/ to tests/. 2022-09-19 23:51:10 +10:00
qemu-arm py/objstr: Add hex/fromhex to bytes/memoryview/bytearray. 2022-08-12 12:44:30 +10:00
renesas-ra py/obj: Convert make_new into a mp_obj_type_t slot. 2022-09-19 19:06:15 +10:00
rp2 top: Replace upip with mip everywhere. 2022-09-30 17:34:03 +10:00
samd samd/machine_pwm: Add the machine.PWM class. 2022-10-06 22:42:55 +11:00
stm32 stm32/boards/NUCLEO_L152RE: Add NUCLEO-L152RE board support. 2022-09-25 23:56:41 +10:00
teensy py/obj: Convert make_new into a mp_obj_type_t slot. 2022-09-19 19:06:15 +10:00
unix top: Replace upip with mip everywhere. 2022-09-30 17:34:03 +10:00
webassembly javascript: Rename this port to 'webassembly'. 2022-08-22 12:03:39 +01:00
windows all: Update all manifest.py files to use new features. 2022-09-05 18:43:18 +10:00
zephyr py/obj: Convert make_new into a mp_obj_type_t slot. 2022-09-19 19:06:15 +10:00