Skip to content

Commit 1bd0e11

Browse files
committed
FIx up examples page in the docs
1 parent 2e2b8cb commit 1bd0e11

File tree

2 files changed

+51
-9
lines changed

2 files changed

+51
-9
lines changed

docs/examples.rst

Lines changed: 51 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,41 +4,83 @@ Simple test
44
Ensure your device works with this simple test.
55

66
.. literalinclude:: ../examples/ov2640_simpletest.py
7-
:caption: examples/ov2640_simpletest.py
7+
:caption: ov2640_simpletest.py
88
:linenos:
99

10+
11+
LCD tests
12+
---------
13+
14+
Kaluga 1.3 with ili9341
15+
~~~~~~~~~~~~~~~~~~~~~~~
16+
1017
Display an image from the camera on the Kaluga 1.3 board, if it is fitted with an ili9341 display.
1118

1219
.. literalinclude:: ../examples/ov2640_displayio_kaluga1_3_ili9341.py
13-
:caption: ../examples/ov2640_displayio_kaluga1_3_ili9341.py
20+
:caption: ov2640_displayio_kaluga1_3_ili9341.py
1421
:linenos:
1522

23+
Kaluga 1.3 with st7789
24+
~~~~~~~~~~~~~~~~~~~~~~
25+
1626
Display an image from the camera on the Kaluga 1.3 board, if it is fitted with an st7789 display.
1727

1828
.. literalinclude:: ../examples/ov2640_displayio_kaluga1_3_st7789.py
19-
:caption: ../examples/ov2640_displayio_kaluga1_3_st7789.py
29+
:caption: ov2640_displayio_kaluga1_3_st7789.py
2030
:linenos:
2131

32+
Raspberry Pi Pico with st7789
33+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
34+
2235
Display an image from the camera connected to a Raspberry Pi Pico with an st7789 2" display
2336

2437
.. literalinclude:: ../examples/ov2640_displayio_pico_st7789_2in.py
25-
:caption: ../examples/ov2640_displayio_pico_st7789_2in.py
38+
:caption: ov2640_displayio_pico_st7789_2in.py
39+
:linenos:
40+
41+
Kaluga 1.3 with ili9341, direct display
42+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
43+
44+
Preview images on LCD, bypassing displayio for slightly higher framerate
45+
46+
.. literalinclude:: ../examples/ov2640_directio_kaluga1_3_ili9341.py
47+
:caption: ../examples/ov2640_directio_kaluga1_3_ili9341.py
2648
:linenos:
2749

28-
Save an image to internal flash on Kaluga 1.3
50+
51+
Image-saving tests
52+
------------------
53+
54+
Kaluga 1.3 with ili9341, internal flash
55+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
56+
57+
Preview images on LCD t hen save JPEG images to internal flash on Kaluga 1.3. Requires the second snippet of
58+
code to be saved as ``boot.py``.
2959

3060
.. literalinclude:: ../examples/ov2640_jpeg_kaluga1_3.py
31-
:caption: ../examples/ov2640_jpeg_kaluga1_3.py
61+
:caption: ov2640_jpeg_kaluga1_3.py
3262
:linenos:
3363

3464
``boot.py`` for the above program
3565

3666
.. literalinclude:: ../examples/ov2640_jpeg_kaluga1_3_boot.py
37-
:caption: ../examples/ov2640_jpeg_kaluga1_3_boot.py
67+
:caption: ov2640_jpeg_kaluga1_3_boot.py
3868
:linenos:
3969

40-
Preview images on LCD then save to SD on Kaluga 1.3 fitted with an ili9341 display
70+
Kaluga 1.3 with ili9341, external SD card
71+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
72+
73+
Preview images on LCD then save JPEG images to SD on Kaluga 1.3 fitted with an ili9341 display.
4174

4275
.. literalinclude:: ../examples/ov2640_jpeg_sd_kaluga1_3.py
43-
:caption: ../examples/ov2640_jpeg_sd_kaluga1_3.py
76+
:caption: ov2640_jpeg_sd_kaluga1_3.py
77+
:linenos:
78+
79+
Kaluga 1.3 with Adafruit IO
80+
~~~~~~~~~~~~~~~~~~~~~~~~~~~
81+
82+
Upload JPEG images to Adafruit IO. Requires that WIFI and Adafruit IO be configured in ``secrets.py``.
83+
84+
.. literalinclude:: ../examples/ov2640_aio_kaluga1_3.py
85+
:caption: ov2640_aio_kaluga1_3.py
4486
:linenos:
File renamed without changes.

0 commit comments

Comments
 (0)