Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix conflict (AUD-621) #13

Open
wants to merge 15 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 4 additions & 0 deletions ai-examples/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Examples

This directory contains a growing number of simple example projects for esp-adf. These are intended to show basic esp-adf functionality, and to provide you can use for your own projects.

2 changes: 2 additions & 0 deletions ai-examples/cli/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
PROJECT_NAME := cli_app
include $(ADF_PATH)/project.mk
32 changes: 32 additions & 0 deletions ai-examples/cli/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Uart Console example
This example shows how to use `periph_console` to control `esp_audio` APIs and system APIs.
To run this example you need ESP32 LyraT or compatible board:

- Setup Wi-Fi SSID and Password by console, refer to system commands join.
- Insert a microSD card loaded with 'test.wav', 'test.mp3', 'test.aac', 'test.ts' and 'test.m4a' into board's slot.
- Connect speakers or headphones to the board.

## Support Commands
### Audio Commands
- play n: Play music with given index
- play URI: Play music by given URI, e.g.'play file://sdcard/test.mp3'.
- pause: Pause the playing music
- resume: Resume the paused music
- stop: Stop the playing music.
- setvol: Set volume
- getvol: Get volume
- getpos: Get current position in seconds.

### System Commands
- reboot: Restart system
- free: Get the free memory
- stat: Show the processor time amongst FreeRTOS tasks
- tasks: Get information about running tasks
- join: Connect Wi-Fi with ssid and password
- wifi: Get connected AP SSID

### Note:
- To run _stat_ command, CONFIG_FREERTOS_GENERATE_RUN_TIME_STATS must be enabled by make menuconfig Component Config -> FreeRTOS ->Enable FreeRTOS to collect run time stats.
- To run _tasklist_ command, CONFIG_FREERTOS_USE_TRACE_FACILITY must be enabled by make menuconfig Component Config -> FreeRTOS ->Enable FreeRTOS trace facility and Enable FreeRTOS stats formatting functions
- To run aac decoder, CONFIG_FREERTOS_HZ should be 1000Hz.

3 changes: 3 additions & 0 deletions ai-examples/cli/main/component.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#
# Main Makefile. This is basically the same as a component makefile.
#
Loading