Skip to content

Commit d25c1aa

Browse files
committed
docs/openmvcam: Documentation checkpoint.
1 parent ebe8f10 commit d25c1aa

49 files changed

Lines changed: 8602 additions & 661 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

docs/conf.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676

7777
# General information about the project.
7878
project = "MicroPython"
79-
copyright = "- The MicroPython Documentation is Copyright © 2014-2026, Damien P. George, Paul Sokolovsky, and contributors"
79+
copyright = "- The MicroPython Documentation is Copyright © 2014-2026, Damien P. George, Paul Sokolovsky, OpenMV LLC, and contributors"
8080

8181
# The version info for the project you're documenting, acts as replacement for
8282
# |version| and |release|, also used in various other places throughout the
@@ -115,6 +115,8 @@
115115
"library/omv.uftpd.rst",
116116
"library/omv.utelnet.rst",
117117
"library/omv.uping.rst",
118+
"library/omv.umalloc.rst",
119+
"library/omv.cpufreq.rst",
118120
"library/esp.rst",
119121
"library/espnow.rst",
120122
"library/esp32.rst",

docs/library/index.rst

Lines changed: 10 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,17 @@ library.
8787

8888
.. _micropython_lib_micropython:
8989

90-
MicroPython-specific libraries
91-
------------------------------
90+
OpenMV Cam libraries
91+
--------------------
9292

93-
Functionality specific to the MicroPython implementation is available in
94-
the following libraries.
93+
The following sections describe the libraries available on each
94+
OpenMV-supported board, including both the MicroPython-specific
95+
built-ins and OpenMV's own extensions.
96+
97+
Common modules
98+
~~~~~~~~~~~~~~
99+
100+
Built into the firmware on every OpenMV camera board.
95101

96102
.. toctree::
97103
:maxdepth: 1
@@ -106,21 +112,6 @@ the following libraries.
106112
openamp.rst
107113
uctypes.rst
108114
vfs.rst
109-
110-
Libraries specific to the OpenMV Cam
111-
------------------------------------
112-
113-
The following sections describe the libraries available on each
114-
OpenMV-supported board.
115-
116-
Common OpenMV modules
117-
~~~~~~~~~~~~~~~~~~~~~
118-
119-
Built into the firmware on every OpenMV camera board.
120-
121-
.. toctree::
122-
:maxdepth: 1
123-
124115
omv.csi.rst
125116
omv.sensor.rst
126117
omv.image.rst
@@ -133,7 +124,6 @@ Built into the firmware on every OpenMV camera board.
133124
omv.imu.rst
134125
omv.omv.rst
135126
omv.crc.rst
136-
omv.umalloc.rst
137127
omv.ml.rst
138128
omv.ulab.rst
139129
logging.rst
@@ -176,7 +166,6 @@ for which boards include each one.
176166

177167
pyb.rst
178168
stm.rst
179-
omv.cpufreq.rst
180169
mimxrt.rst
181170
omv.alif.rst
182171

@@ -228,7 +217,6 @@ OpenMV N6 (STM32N6 — STMicroelectronics' first NPU-equipped MCU):
228217

229218
* :mod:`pyb` — functions related to the board
230219
* :mod:`stm` — functionality specific to STM32 MCUs
231-
* :mod:`cpufreq` — CPU frequency control
232220
* :mod:`ssd1306` — OLED driver
233221
* :mod:`tb6612` — TB6612 motor driver
234222

@@ -263,7 +251,6 @@ OpenMV Pure Thermal:
263251

264252
* :mod:`pyb` — functions related to the board
265253
* :mod:`stm` — functionality specific to STM32 MCUs
266-
* :mod:`cpufreq` — CPU frequency control
267254
* :mod:`tfp410` — DVI/HDMI serializer
268255
* :mod:`ft5x06` — capacitive touchscreen driver
269256
* :mod:`dht` — DHT11 and DHT22 temperature/humidity sensors
@@ -280,7 +267,6 @@ Legacy STM32-based OpenMV camera boards:
280267

281268
* :mod:`pyb` — functions related to the board
282269
* :mod:`stm` — functionality specific to STM32 MCUs
283-
* :mod:`cpufreq` — CPU frequency control
284270
* :mod:`dht` — DHT11 and DHT22 temperature/humidity sensors
285271
* :mod:`onewire` — 1-Wire bus protocol
286272
* :mod:`ds18x20` — DS18x20 temperature sensor driver
@@ -295,7 +281,6 @@ Arduino Giga R1 WiFi:
295281

296282
* :mod:`pyb` — functions related to the board
297283
* :mod:`stm` — functionality specific to STM32 MCUs
298-
* :mod:`cpufreq` — CPU frequency control
299284
* :mod:`dht` — DHT11 and DHT22 temperature/humidity sensors
300285
* :mod:`onewire` — 1-Wire bus protocol
301286
* :mod:`neopixel` — control of WS2812 / NeoPixel LEDs
@@ -309,7 +294,6 @@ Arduino Portenta H7:
309294

310295
* :mod:`pyb` — functions related to the board
311296
* :mod:`stm` — functionality specific to STM32 MCUs
312-
* :mod:`cpufreq` — CPU frequency control
313297
* :mod:`dht` — DHT11 and DHT22 temperature/humidity sensors
314298
* :mod:`ds18x20` — DS18x20 temperature sensor driver
315299
* :mod:`onewire` — 1-Wire bus protocol
@@ -325,7 +309,6 @@ Arduino Nicla Vision:
325309

326310
* :mod:`pyb` — functions related to the board
327311
* :mod:`stm` — functionality specific to STM32 MCUs
328-
* :mod:`cpufreq` — CPU frequency control
329312
* :mod:`lsm6dsox` — LSM6DSOX 6-axis IMU
330313
* :mod:`dht` — DHT11 and DHT22 temperature/humidity sensors
331314
* :mod:`ds18x20` — DS18x20 temperature sensor driver

docs/library/machine.Counter.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ Constructors
9696
Stops the Counter, disabling any interrupts and releasing hardware resources.
9797
A Soft Reset should deinitialize all Counter objects.
9898

99-
.. method:: value(value: int | None = None, /) -> int
99+
.. method:: value(value: int = ..., /) -> int
100100

101101
Get, and optionally set, the counter value as a signed integer.
102102
Implementations must aim to do the get and set atomically (i.e. without
@@ -116,7 +116,7 @@ Constructors
116116
the counter (i.e. to measure the counts since the last call), and this will
117117
avoid this problem.
118118

119-
.. method:: cycles(value: int | None = None, /) -> int
119+
.. method:: cycles(value: int = ..., /) -> int
120120

121121
Get or set the current cycles counter of the counter as signed 16 bit integer.
122122
The value represents the overflow or underflow events of the count range.

docs/library/machine.Encoder.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,14 +98,14 @@ Constructors
9898
Stops the Encoder, disabling any interrupts and releasing hardware resources.
9999
A Soft Reset should deinitialize all Encoder objects.
100100

101-
.. method:: value(value: int | None = None, /) -> int
101+
.. method:: value(value: int = ..., /) -> int
102102

103103
Get, and optionally set, the encoder value as a signed integer.
104104
Implementations should aim to do the get and set atomically.
105105

106106
See :meth:`machine.Counter.value` for details about overflow of this value.
107107

108-
.. method:: cycles(value: int | None = None, /) -> int
108+
.. method:: cycles(value: int = ..., /) -> int
109109

110110
Get or set the current cycles counter of the counter as signed 16 bit integer.
111111
The value represents the overflow or underflow events of the count range.

docs/library/machine.LED.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Constructors
4747

4848
Toggles the LED state.
4949

50-
.. method:: value(v: int | None = None) -> int | None
50+
.. method:: value(v: int = ...) -> int | None
5151

5252
If ``v`` is given, sets the LED to the given value. If ``v`` is not given,
5353
returns the current LED value.

docs/library/machine.PWM.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Constructors
5454

5555
Disable the PWM output.
5656

57-
.. method:: freq(value: int | None = None, /) -> int | None
57+
.. method:: freq(value: int = ..., /) -> int | None
5858

5959
Get or set the current frequency of the PWM output.
6060

@@ -63,7 +63,7 @@ Constructors
6363
With a single *value* argument the frequency is set to that value in Hz. The
6464
method may raise a ``ValueError`` if the frequency is outside the valid range.
6565

66-
.. method:: duty_u16(value: int | None = None, /) -> int | None
66+
.. method:: duty_u16(value: int = ..., /) -> int | None
6767

6868
Get or set the current duty cycle of the PWM output, as an unsigned 16-bit
6969
value in the range 0 to 65535 inclusive.
@@ -73,7 +73,7 @@ Constructors
7373
With a single *value* argument the duty cycle is set to that value, measured
7474
as the ratio ``value / 65535``.
7575

76-
.. method:: duty_ns(value: int | None = None, /) -> int | None
76+
.. method:: duty_ns(value: int = ..., /) -> int | None
7777

7878
Get or set the current pulse width of the PWM output, as a value in nanoseconds.
7979

docs/library/machine.Pin.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ Constructors
116116

117117
Returns ``None``.
118118

119-
.. method:: value(x: Any | None = None, /) -> int | None
119+
.. method:: value(x: Any = ..., /) -> int | None
120120

121121
This method allows to set and get the value of the pin, depending on whether
122122
the argument ``x`` is supplied or not.
@@ -148,7 +148,7 @@ Constructors
148148

149149
When setting the value this method returns ``None``.
150150

151-
.. method:: __call__(x: Any | None = None, /) -> int | None
151+
.. method:: __call__(x: Any = ..., /) -> int | None
152152

153153
Pin objects are callable. The call method provides a (fast) shortcut to set
154154
and get the value of the pin. It is equivalent to Pin.value([x]).
@@ -217,21 +217,21 @@ Constructors
217217

218218
Availability: mimxrt, nrf, renesas-ra, rp2, samd, stm32, alif ports.
219219

220-
.. method:: mode(mode: int | None = None, /) -> int | None
220+
.. method:: mode(mode: int = ..., /) -> int | None
221221

222222
Get or set the pin mode.
223223
See the constructor documentation for details of the ``mode`` argument.
224224

225225
Availability: cc3200, stm32 ports.
226226

227-
.. method:: pull(pull: int | None = None, /) -> int | None
227+
.. method:: pull(pull: int = ..., /) -> int | None
228228

229229
Get or set the pin pull state.
230230
See the constructor documentation for details of the ``pull`` argument.
231231

232232
Availability: cc3200, stm32 ports.
233233

234-
.. method:: drive(drive: int | None = None, /) -> int | None
234+
.. method:: drive(drive: int = ..., /) -> int | None
235235

236236
Get or set the pin drive strength.
237237
See the constructor documentation for details of the ``drive`` argument.

docs/library/machine.RTC.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Constructors
2424
Methods
2525
-------
2626

27-
.. method:: datetime(datetimetuple: tuple | None = None, /) -> tuple | None
27+
.. method:: datetime(datetimetuple: tuple = ..., /) -> tuple | None
2828

2929
Get or set the date and time of the RTC.
3030

@@ -87,7 +87,7 @@ Constructors
8787
- ``wake`` specifies the sleep mode from where this interrupt can wake
8888
up the system.
8989

90-
.. method:: memory(data: bytes | None = None, /) -> bytes | None
90+
.. method:: memory(data: bytes = ..., /) -> bytes | None
9191

9292
``RTC.memory(data)`` will write *data* to the RTC memory, where *data* is any
9393
object which supports the buffer protocol (including `bytes`, `bytearray`,

docs/library/machine.Signal.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ Constructors
9696
Methods
9797
-------
9898

99-
.. method:: value(x: Any | None = None, /) -> int | None
99+
.. method:: value(x: Any = ..., /) -> int | None
100100

101101
This method allows to set and get the value of the signal, depending on whether
102102
the argument ``x`` is supplied or not.

docs/library/machine.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ Reset related functions
7171

7272
Get the reset cause. See :ref:`constants <machine_constants>` for the possible return values.
7373

74-
.. function:: bootloader(value: int | None = None, /) -> None
74+
.. function:: bootloader(value: int = ..., /) -> None
7575

7676
Reset the device and enter its bootloader. This is typically used to put the
7777
device into a state where it can be programmed with new firmware.
@@ -114,7 +114,7 @@ and then re-enabled to their previous state. For example::
114114
Power related functions
115115
-----------------------
116116

117-
.. function:: freq(hz: int | None = None, /) -> int
117+
.. function:: freq(hz: int = ..., /) -> int
118118

119119
Returns the CPU frequency in hertz.
120120

@@ -137,8 +137,8 @@ Power related functions
137137

138138
.. note:: This function is deprecated, use :func:`lightsleep()` instead with no arguments.
139139

140-
.. function:: lightsleep(time_ms: int | None = None, /) -> None
141-
deepsleep(time_ms: int | None = None, /) -> None
140+
.. function:: lightsleep(time_ms: int = ..., /) -> None
141+
deepsleep(time_ms: int = ..., /) -> None
142142

143143
Stops execution in an attempt to enter a low power state.
144144

0 commit comments

Comments
 (0)