/ docs / examples.rst
examples.rst
 1  Simple test
 2  ------------
 3  
 4  Ensure your device works with this simple test.
 5  
 6  .. literalinclude:: ../examples/ov2640_simpletest.py
 7      :caption: ov2640_simpletest.py
 8      :linenos:
 9  
10  
11  LCD tests
12  ---------
13  
14  Kaluga 1.3 with ili9341
15  ~~~~~~~~~~~~~~~~~~~~~~~
16  
17  Display an image from the camera on the Kaluga 1.3 board, if it is fitted with an ili9341 display.
18  
19  .. literalinclude:: ../examples/ov2640_displayio_kaluga1_3_ili9341.py
20      :caption: ov2640_displayio_kaluga1_3_ili9341.py
21      :linenos:
22  
23  Kaluga 1.3 with st7789
24  ~~~~~~~~~~~~~~~~~~~~~~
25  
26  Display an image from the camera on the Kaluga 1.3 board, if it is fitted with an st7789 display.
27  
28  .. literalinclude:: ../examples/ov2640_displayio_kaluga1_3_st7789.py
29      :caption: ov2640_displayio_kaluga1_3_st7789.py
30      :linenos:
31  
32  Raspberry Pi Pico with st7789
33  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
34  
35  Display an image from the camera connected to a Raspberry Pi Pico with an st7789 2" display
36  
37  .. literalinclude:: ../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
48      :linenos:
49  
50  
51  Image-saving tests
52  ------------------
53  
54  Kaluga 1.3 with ili9341, internal flash, JPEG
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``.
59  
60  .. literalinclude:: ../examples/ov2640_jpeg_kaluga1_3.py
61      :caption: ov2640_jpeg_kaluga1_3.py
62      :linenos:
63  
64  ``boot.py`` for the above program
65  
66  .. literalinclude:: ../examples/ov2640_jpeg_kaluga1_3_boot.py
67      :caption: ov2640_jpeg_kaluga1_3_boot.py
68      :linenos:
69  
70  Kaluga 1.3 with ili9341, external SD card, JPEG
71  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
72  
73  Preview images on LCD then save JPEG images to SD on Kaluga 1.3 fitted with an ili9341 display.
74  
75  .. literalinclude:: ../examples/ov2640_jpeg_sd_kaluga1_3.py
76      :caption: ov2640_jpeg_sd_kaluga1_3.py
77      :linenos:
78  
79  Kaluga 1.3 with ili9341, external SD card, BMP
80  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
81  
82  Preview images on LCD then save BMP images to SD on Kaluga 1.3 fitted with an ili9341 display.
83  
84  .. literalinclude:: ../examples/ov2640_bmp_sd_kaluga1_3.py
85      :caption: ov2640_bmp_sd_kaluga1_3.py
86      :linenos:
87  
88  
89  Kaluga 1.3 with Adafruit IO
90  ~~~~~~~~~~~~~~~~~~~~~~~~~~~
91  
92  Upload JPEG images to Adafruit IO.  Requires that WIFI and Adafruit IO be configured in ``secrets.py``.
93  
94  .. literalinclude:: ../examples/ov2640_aio_kaluga1_3.py
95      :caption: ov2640_aio_kaluga1_3.py
96      :linenos: