Skip to content

Commit

Permalink
doc: add images for each component
Browse files Browse the repository at this point in the history
  • Loading branch information
and3rson committed Jul 4, 2024
1 parent be78ba6 commit 1e248aa
Show file tree
Hide file tree
Showing 25 changed files with 44 additions and 5 deletions.
5 changes: 5 additions & 0 deletions docs/_static/custom.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// window.addEventListener('load', function() {
// lightbox.options({
// 'imageFadeDuration': 0,
// })
// });
38 changes: 34 additions & 4 deletions docs/assembly/components.rst
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
----------------

.. list-table:: Базовий комплект
:widths: 5 10 15 10 15 10 10 10 15
:widths: 5 10 15 10 15 10 10 10 15 1
:header-rows: 1

* - К-сть
Expand All @@ -48,6 +48,7 @@
- |mouser| Mouser
- Ціна в |ua|
- Примітка
- Зображення

* - 1
- BZ1
Expand All @@ -58,6 +59,7 @@
-
- 5
-
- .. thumbnail:: ./images/parts/buzzer.jpg

* - 3
- C1, C2, C3
Expand All @@ -68,6 +70,7 @@
-
- 9
- Можна комплектувати `з цього набору <https://arduino.ua/prod2798-nabor-mnogosloinih-keramicheskih-kondensatorov-180-sht>`__
- .. thumbnail:: ./images/parts/cap.jpg

* - 1
- J1
Expand All @@ -78,6 +81,7 @@
-
- 12
-
- .. thumbnail:: ./images/parts/usb.jpg

* - 1
- J2
Expand All @@ -88,6 +92,7 @@
-
- 5
- Варіант з AliExpress містить пари тато+мама, тому задовольняє ``J2`` та ``U2J1``
- .. thumbnail:: ./images/parts/header.jpg

* - 1
- J3
Expand All @@ -98,6 +103,7 @@
-
- 24
-
- .. thumbnail:: ./images/parts/sd.jpg

* - 1
- R1
Expand All @@ -108,6 +114,7 @@
-
- 3
-
- .. thumbnail:: ./images/parts/r10k.jpg

* - 1
- R2
Expand All @@ -118,6 +125,7 @@
-
- 2
-
- .. thumbnail:: ./images/parts/r100k.jpg

* - 1
- SW1-SW8
Expand All @@ -130,6 +138,7 @@
-
- 36
- В комплекті від arduino.ua лише 6 шт
- .. thumbnail:: ./images/parts/12mm.jpg

* - 2
- SW9, SW10
Expand All @@ -140,6 +149,7 @@
-
- 4
-
- .. thumbnail:: ./images/parts/6mm.jpg

* - 1
- SW11
Expand All @@ -150,6 +160,7 @@
-
- 10
- Кнопка має бути кутова
- .. thumbnail:: ./images/parts/toggle.jpg

* - 1
- SW12
Expand All @@ -160,6 +171,7 @@
-
- 2
-
- .. thumbnail:: ./images/parts/6mm.jpg

* - 1
- U1
Expand All @@ -171,6 +183,7 @@
- `Посилання <https://eu.mouser.com/ProductDetail/Espressif-Systems/ESP32-S3-WROOM-1-N16R8>`__
- 200
-
- .. thumbnail:: ./images/parts/mcu.jpg

* - 1
- U2
Expand All @@ -181,6 +194,7 @@
-
- 176
-
- .. thumbnail:: ./images/parts/display.jpg

* - 1
- U2J1
Expand All @@ -191,6 +205,7 @@
-
- 7
- Варіант з AliExpress містить пари тато+мама, тому задовольняє ``J2`` та ``U2J1``
- .. thumbnail:: ./images/parts/socket.jpg

* - 1
- U3
Expand All @@ -201,6 +216,7 @@
- `Посилання <https://eu.mouser.com/ProductDetail/Texas-Instruments/TLV1117LV33DCYR>`__
- 26
-
- .. thumbnail:: ./images/parts/reg.jpg

* - Разом
-
Expand All @@ -215,14 +231,15 @@
<script>calculateTotal(document.querySelector('#total-base'), 8);
</script>
-
-

.. _battery:

Компоненти для батареї
----------------------

.. list-table:: Компоненти для батареї
:widths: 5 10 15 10 15 10 10 10 15
:widths: 5 10 15 10 15 10 10 10 15 1
:header-rows: 1

* - К-сть
Expand All @@ -234,6 +251,7 @@
- |mouser| Mouser
- Ціна в |ua|
- Примітка
- Зображення

* - 1
- D1
Expand All @@ -244,6 +262,7 @@
-
- 6
-
- .. thumbnail:: ./images/parts/1n4001.jpg

* - 1
- J4
Expand All @@ -254,6 +273,7 @@
-
- 16
- Бажано брати варіант з micro USB (займає менше місця, а гніздо USB Type-C вже є на платі Лілки)
- .. thumbnail:: ./images/parts/tp4056.jpg

* - 1
- Q1
Expand All @@ -265,6 +285,7 @@
- `Посилання <https://eu.mouser.com/ProductDetail/Infineon-Technologies/IRLML6401TRPBF>`__
- 4
-
- .. thumbnail:: ./images/parts/irlml6401.jpg

* - 1
- R3
Expand All @@ -275,6 +296,7 @@
-
- 2
-
- .. thumbnail:: ./images/parts/r100k.jpg

* - 1
- R4
Expand All @@ -285,6 +307,7 @@
-
- 2.1
-
- .. thumbnail:: ./images/parts/r33k.jpg

* - 1
- \-
Expand All @@ -294,7 +317,8 @@
-
-
- 116
-
- Рекомендуємо брати невелику батарею (6x30x48), щоб вона помістилась в корпус
- .. thumbnail:: ./images/parts/lipo.jpg

* - Разом
-
Expand All @@ -309,14 +333,15 @@
<script>calculateTotal(document.querySelector('#total-battery'), 8);
</script>
-
-

.. _audio:

Компоненти для звуку
--------------------

.. list-table:: Компоненти для звуку
:widths: 5 10 15 10 15 10 10 10 15
:widths: 5 10 15 10 15 10 10 10 15 1
:header-rows: 1

* - К-сть
Expand All @@ -328,6 +353,7 @@
- |mouser| Mouser
- Ціна в |ua|
- Примітка
- Зображення

* - 1
- J5
Expand All @@ -338,6 +364,7 @@
- `Посилання <https://eu.mouser.com/ProductDetail/Adafruit/3006>`__
- 92
-
- .. thumbnail:: ./images/parts/max98357.jpg

* - 1
- \-
Expand All @@ -348,6 +375,7 @@
-
- 17
- Або гніздо (див. наст. пункт), або будь-який інший динамік на ваш розсуд
- .. thumbnail:: ./images/parts/speaker.jpg

* - 1
- \-
Expand All @@ -358,6 +386,7 @@
-
- 8
- Лише якщо ви вирішили використовувати навушники замість динаміка
- .. thumbnail:: ./images/parts/jack.jpg

* - Разом
-
Expand All @@ -372,6 +401,7 @@
<script>calculateTotal(document.querySelector('#total-audio'), 8);
</script>
-
-

.. _other:

Expand Down
Binary file added docs/assembly/images/parts/12mm.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assembly/images/parts/1n4001.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assembly/images/parts/6mm.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assembly/images/parts/buzzer.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assembly/images/parts/cap.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assembly/images/parts/display.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assembly/images/parts/header.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assembly/images/parts/irlml6401.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assembly/images/parts/jack.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assembly/images/parts/lipo.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assembly/images/parts/max98357.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assembly/images/parts/mcu.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assembly/images/parts/r100k.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assembly/images/parts/r10k.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assembly/images/parts/r33k.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assembly/images/parts/reg.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assembly/images/parts/sd.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assembly/images/parts/socket.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assembly/images/parts/speaker.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assembly/images/parts/toggle.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assembly/images/parts/tp4056.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assembly/images/parts/usb.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 5 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,12 @@
""",
}

# -- Custom CSS --------------------------------------------------------------
# -- Custom CSS/JS -----------------------------------------------------------


def setup(app):
app.add_css_file("extra_style.css")
# app.add_js_file("custom.js")


# -- Breathe configuration ---------------------------------------------------
Expand Down Expand Up @@ -102,3 +103,6 @@ def setup(app):
hoverxref_role_types = {
"term": "tooltip",
}

# -- Images ------------------------------------------------------------------
extensions.append("sphinxcontrib.images")

0 comments on commit 1e248aa

Please sign in to comment.