circuitpython/ports
robert-hh 7952694a3c rp2/machine_pwm: Add duty_x() checks and return 0 if PWM is not started.
Changes in this commit:
- Limit duty_u16() to 65535 and duty_ns() to the period duration.
- Return 0 for pwm.freq() if the frequency has not been set yet.
- Return 0 for pwm.duty_us16() and duty_ns() unless both frequency and
  duty cycle have been set.
- Initialize the pin to PWM at the very end of the constructor, to avoid
  possible glitches on the pin when setting up the PWM.
2023-05-04 13:18:58 +10:00
..
bare-arm bare-arm/mpconfigport.h: Disable remaining optional features. 2021-11-01 14:23:06 +11:00
cc3200 all: Fix cases of Python variable assigned but never used. 2023-05-02 16:36:05 +10:00
embed embed: Fix arguments to mp_raw_code_load_mem. 2023-03-13 12:35:12 +11:00
esp32 esp32,esp8266: Add support for the Espressif ESP-NOW protocol. 2023-05-01 16:47:21 +10:00
esp8266 esp8266/machine_pwm: Implement duty_u16() and duty_ns() for consistency. 2023-05-04 13:17:55 +10:00
mimxrt mimxrt/machine_pwm: Start PWM only if freq and duty are set. 2023-05-04 13:09:39 +10:00
minimal all: Fix spelling mistakes based on codespell check. 2023-04-27 18:03:06 +10:00
nrf all: Fix cases of Python variable assigned but never used. 2023-05-02 16:36:05 +10:00
pic16bit ports: Implement simple write polling for stdout. 2023-03-23 13:51:17 +11:00
powerpc all: Fix spelling mistakes based on codespell check. 2023-04-27 18:03:06 +10:00
qemu-arm shared/runtime/gchelper: Drop cpu directive from ARM asm helpers. 2023-01-28 15:51:38 +11:00
renesas-ra renesas-ra/modutime: Use extmod version of time module. 2023-04-27 15:11:51 +10:00
rp2 rp2/machine_pwm: Add duty_x() checks and return 0 if PWM is not started. 2023-05-04 13:18:58 +10:00
samd samd/machine_pwm: Add init() method to PWM and simplify the PWM code. 2023-05-04 13:10:38 +10:00
stm32 all: Fix cases of Python variable assigned but never used. 2023-05-02 16:36:05 +10:00
teensy all: Fix spelling mistakes based on codespell check. 2023-04-27 18:03:06 +10:00
unix all: Fix spelling mistakes based on codespell check. 2023-04-27 18:03:06 +10:00
webassembly webassembly/modutime: Use extmod version of time module. 2023-04-27 15:11:52 +10:00
windows unix/modutime: Use extmod version of time module. 2023-04-27 15:11:52 +10:00
zephyr zephyr/modutime: Use extmod version of time module. 2023-04-27 15:11:52 +10:00