micropython/docs/library
IhorNehrutsa b491967bbd esp32/machine_pwm: Implement duty_u16() and duty_ns() PWM methods.
The methods duty_u16() and duty_ns() are implemented to match the existing
docs.  The duty will remain the same when the frequency is changed.
Standard ESP32 as well as S2, S3 and C3 are supported.

Thanks to @kdschlosser for the fix for rounding in resolution calculation.

Documentation is updated and examples expanded for esp32, including the
quickref and tutorial.  Additional notes are added to the machine.PWM docs
regarding limitations of hardware PWM.
2021-12-03 23:58:52 +11:00
..
_thread.rst docs/_thread: Add a placeholder docs for _thread module. 2017-11-10 00:09:43 +02:00
array.rst docs: Replace ufoo with foo in all docs. 2021-08-13 22:53:29 +10:00
binascii.rst docs: Replace ufoo with foo in all docs. 2021-08-13 22:53:29 +10:00
bluetooth.rst extmod/modbluetooth: Support gap_connect(None) to cancel a connection. 2021-12-01 11:56:37 +11:00
btree.rst docs: Replace ufoo with foo in all docs. 2021-08-13 22:53:29 +10:00
builtins.rst docs/library/builtins.rst: Add module title. 2021-08-17 11:26:24 +10:00
cmath.rst docs/library: Add CPython docs xref to each pertinent module. 2017-07-02 15:37:31 +03:00
collections.rst docs: Replace ufoo with foo in all docs. 2021-08-13 22:53:29 +10:00
cryptolib.rst docs: Replace ufoo with foo in all docs. 2021-08-13 22:53:29 +10:00
errno.rst docs: Replace ufoo with foo in all docs. 2021-08-13 22:53:29 +10:00
esp.rst docs/library: Clarify that the arg to esp.deepsleep is in microseconds. 2020-06-30 22:01:44 +10:00
esp32.rst docs: Replace ufoo with foo in all docs. 2021-08-13 22:53:29 +10:00
framebuf.rst docs/library/framebuf.rst: Adjust dimensions in example. 2021-11-17 14:36:33 +11:00
gc.rst docs/library: Add CPython docs xref to each pertinent module. 2017-07-02 15:37:31 +03:00
hashlib.rst docs: Replace ufoo with foo in all docs. 2021-08-13 22:53:29 +10:00
heapq.rst docs: Replace ufoo with foo in all docs. 2021-08-13 22:53:29 +10:00
index.rst docs/library/stm.rst: Document the stm module. 2021-10-14 23:19:08 +11:00
io.rst docs: Replace ufoo with foo in all docs. 2021-08-13 22:53:29 +10:00
json.rst docs: Replace ufoo with foo in all docs. 2021-08-13 22:53:29 +10:00
lcd160cr.rst docs: Change `\*` to `*` in argument lists. 2020-08-21 12:24:13 +10:00
machine.ADC.rst docs/library: Specify new machine.ADC class. 2019-09-04 15:35:09 +10:00
machine.ADCWiPy.rst docs: Change `\*` to `*` in argument lists. 2020-08-21 12:24:13 +10:00
machine.I2C.rst docs: Replace master/slave with controller/peripheral in I2C and SPI. 2021-07-18 11:19:44 +10:00
machine.I2S.rst docs/library/machine.I2S.rst: Specify that I2S.shift args are kw-only. 2021-09-13 18:21:46 +10:00
machine.PWM.rst esp32/machine_pwm: Implement duty_u16() and duty_ns() PWM methods. 2021-12-03 23:58:52 +11:00
machine.Pin.rst docs/library/machine.Pin.rst: Add Pin.ANALOG mode constant. 2021-11-30 22:33:18 +11:00
machine.RTC.rst docs/library/machine.RTC.rst: Document datetime method and fix ex code. 2021-06-12 22:53:49 +10:00
machine.SD.rst docs/machine: Add initial docs for new machine.SDCard class. 2019-06-03 00:42:24 +10:00
machine.SDCard.rst docs: Replace ufoo with foo in all docs. 2021-08-13 22:53:29 +10:00
machine.SPI.rst docs/library/machine.SPI.rst: Add example SPI usage. 2021-11-30 22:28:19 +11:00
machine.Signal.rst docs/library/machine.Signal.rst: Correct typo: usecases to use cases. 2020-10-20 17:21:30 +11:00
machine.Timer.rst docs/library/machine.Timer.rst: Document `period` and `callback` args. 2021-11-30 22:29:03 +11:00
machine.TimerWiPy.rst docs: Fix some spelling mistakes. 2021-05-04 22:58:00 +10:00
machine.UART.rst esp32/machine_uart: Add flow kw-arg to enable hardware flow control. 2021-08-04 13:52:15 +10:00
machine.WDT.rst docs/library: Fix docs for machine.WDT to specify millisecond timeout. 2020-05-02 22:55:48 +10:00
machine.rst docs: Add docs for machine.bitstream and neopixel module. 2021-08-19 22:50:32 +10:00
math.rst docs/library: Add CPython docs xref to each pertinent module. 2017-07-02 15:37:31 +03:00
micropython.rst docs: Fix Sphinx 3.x warnings, and enable warnings-as-errors on build. 2020-06-05 21:42:17 +10:00
neopixel.rst docs: Add docs for machine.bitstream and neopixel module. 2021-08-19 22:50:32 +10:00
network.CC3K.rst all: Replace busses with buses. 2021-05-20 23:22:03 +10:00
network.WIZNET5K.rst all: Replace busses with buses. 2021-05-20 23:22:03 +10:00
network.WLAN.rst docs: Replace ufoo with foo in all docs. 2021-08-13 22:53:29 +10:00
network.WLANWiPy.rst docs: Change `\*` to `*` in argument lists. 2020-08-21 12:24:13 +10:00
network.rst docs/library/network.rst: Simplify socket import. 2021-08-17 11:26:24 +10:00
os.rst docs/library/os.rst: Clarify littlefs requirements for block erase. 2021-09-10 15:21:12 +10:00
pyb.ADC.rst docs: Remove spaces on lines that are empty. 2019-12-04 15:02:54 +11:00
pyb.Accel.rst docs: Remove spaces on lines that are empty. 2019-12-04 15:02:54 +11:00
pyb.CAN.rst all: Replace busses with buses. 2021-05-20 23:22:03 +10:00
pyb.DAC.rst docs: Change `\*` to `*` in argument lists. 2020-08-21 12:24:13 +10:00
pyb.ExtInt.rst docs: Remove spaces on lines that are empty. 2019-12-04 15:02:54 +11:00
pyb.Flash.rst docs: Replace ufoo with foo in all docs. 2021-08-13 22:53:29 +10:00
pyb.I2C.rst docs: Replace master/slave with controller/peripheral in I2C and SPI. 2021-07-18 11:19:44 +10:00
pyb.LCD.rst docs: Remove spaces on lines that are empty. 2019-12-04 15:02:54 +11:00
pyb.LED.rst docs: Remove spaces on lines that are empty. 2019-12-04 15:02:54 +11:00
pyb.Pin.rst docs/library/pyb.Pin.rst: Update the arguments for Pin.init(). 2021-05-20 23:08:43 +10:00
pyb.RTC.rst docs,stm32: Fix minor typos in RTC docs, and->an. 2021-01-30 14:13:30 +11:00
pyb.SPI.rst docs: Replace master/slave with controller/peripheral in I2C and SPI. 2021-07-18 11:19:44 +10:00
pyb.Servo.rst docs/pyb.*: Use proper class case in method headers. 2016-06-08 16:21:28 +03:00
pyb.Switch.rst docs: Fix some references and RST markup to eliminate Sphinx warnings. 2018-03-15 15:50:51 +11:00
pyb.Timer.rst docs: Change `\*` to `*` in argument lists. 2020-08-21 12:24:13 +10:00
pyb.UART.rst all: Replace busses with buses. 2021-05-20 23:22:03 +10:00
pyb.USB_HID.rst docs: Change `\*` to `*` in argument lists. 2020-08-21 12:24:13 +10:00
pyb.USB_VCP.rst stm32/usb: Make irq's default trigger enable all events. 2021-06-23 16:11:37 +10:00
pyb.rst docs: Replace ufoo with foo in all docs. 2021-08-13 22:53:29 +10:00
random.rst docs/library/random.rst: Document the random module. 2021-10-13 16:56:37 +11:00
re.rst docs: Replace ufoo with foo in all docs. 2021-08-13 22:53:29 +10:00
rp2.Flash.rst docs: Replace ufoo with foo in all docs. 2021-08-13 22:53:29 +10:00
rp2.PIO.rst docs/library: Add initial API reference for rp2 module and its classes. 2021-05-08 18:02:04 +10:00
rp2.StateMachine.rst docs/library: Add initial API reference for rp2 module and its classes. 2021-05-08 18:02:04 +10:00
rp2.rst docs/library/rp2.rst: Update function asm_pio_encode to add sideset_opt. 2021-11-19 13:38:56 +11:00
select.rst docs: Replace ufoo with foo in all docs. 2021-08-13 22:53:29 +10:00
socket.rst docs: Replace ufoo with foo in all docs. 2021-08-13 22:53:29 +10:00
ssl.rst docs: Replace ufoo with foo in all docs. 2021-08-13 22:53:29 +10:00
stm.rst docs/library/stm.rst: Document the stm module. 2021-10-14 23:19:08 +11:00
struct.rst docs: Replace ufoo with foo in all docs. 2021-08-13 22:53:29 +10:00
sys.rst docs/library/sys.rst: Add docs for sys.settrace. 2021-11-19 15:30:34 +11:00
time.rst docs: Replace ufoo with foo in all docs. 2021-08-13 22:53:29 +10:00
uasyncio.rst docs/library/uasyncio.rst: Detail exception behaviour in cancel/timeout. 2021-11-30 21:43:06 +11:00
uctypes.rst docs: Replace ufoo with foo in all docs. 2021-08-13 22:53:29 +10:00
wipy.rst docs: Add usocket and ussl modules' documentation. 2015-10-21 15:30:56 +02:00
zephyr.DiskAccess.rst docs/library/zephyr: Add libraries specific to the Zephyr port. 2021-08-13 20:21:14 +10:00
zephyr.FlashArea.rst docs/library/zephyr: Add libraries specific to the Zephyr port. 2021-08-13 20:21:14 +10:00
zephyr.rst docs/library/zephyr: Add libraries specific to the Zephyr port. 2021-08-13 20:21:14 +10:00
zephyr.zsensor.rst docs/library/zephyr: Add libraries specific to the Zephyr port. 2021-08-13 20:21:14 +10:00
zlib.rst docs: Replace ufoo with foo in all docs. 2021-08-13 22:53:29 +10:00