-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
doc: add audio page
- Loading branch information
Showing
6 changed files
with
23 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
``Audio``: Звук (I2S) | ||
===================== | ||
|
||
.. doxygenclass:: lilka::Audio | ||
:members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -99,6 +99,7 @@ | |
.. toctree:: | ||
:maxdepth: 1 | ||
|
||
audio | ||
battery | ||
buzzer | ||
controller | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,22 @@ | ||
#pragma once | ||
|
||
#include <I2S.h> | ||
#include "lilka/config.h" | ||
|
||
namespace lilka { | ||
|
||
/// Клас для ініціалізації аудіо. | ||
/// | ||
/// Цей клас лише встановлює піни для I2S і відтворює тестовий звук. | ||
/// | ||
/// Для роботи з аудіо використовуйте клас I2S напряму: https://espressif-docs.readthedocs-hosted.com/projects/arduino-esp32/en/latest/api/i2s.html#sample-code | ||
class Audio { | ||
public: | ||
Audio(); | ||
/// Налаштоувує піни для I2S і відтворює тестовий звук. | ||
/// \warning Цей метод викликається автоматично при виклику `lilka::begin()`. | ||
void begin(); | ||
}; | ||
|
||
extern Audio audio; | ||
|
||
// extern I2SClass i2s; | ||
|
||
} // namespace lilka |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters