-
Notifications
You must be signed in to change notification settings - Fork 294
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change the partition format to FATFS, compatible with Arduino IDE #241
- Loading branch information
Showing
11 changed files
with
63 additions
and
47 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
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
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,5 +1,5 @@ | ||
/** | ||
* @file PlayMusicFromSPIFFS.ino | ||
* @file PlayMusicFromFATFS.ino | ||
* @author Lewis He ([email protected]) | ||
* @license MIT | ||
* @copyright Copyright (c) 2023 Shenzhen Xinyuan Electronic Technology Co., Ltd | ||
|
@@ -9,7 +9,7 @@ | |
#include <LilyGoLib.h> | ||
#include <LV_Helper.h> | ||
#include <AudioOutputI2S.h> | ||
#include <AudioFileSourceSPIFFS.h> | ||
#include <AudioFileSourceFATFS.h> | ||
#include <AudioGeneratorWAV.h> | ||
#include <AudioFileSourceFunction.h> | ||
#include <AudioGeneratorFLAC.h> | ||
|
@@ -23,7 +23,7 @@ | |
const uint8_t i2sPort = 1; | ||
|
||
AudioGeneratorWAV *wav = NULL; | ||
AudioFileSourceSPIFFS *file = NULL; | ||
AudioFileSourceFATFS *file = NULL; | ||
AudioOutputI2S *out = NULL; | ||
AudioGeneratorMP3 *mp3 = NULL; | ||
AudioFileSourceID3 *id3 = NULL; | ||
|
@@ -157,7 +157,7 @@ void setup(void) | |
Serial.begin(115200); | ||
|
||
// When initializing the watch, | ||
// SPIFFS has already been initialized internally | ||
// FFat has already been initialized internally | ||
watch.begin(); | ||
|
||
beginLvglHelper(); | ||
|
@@ -172,7 +172,7 @@ void setup(void) | |
lv_obj_t *label; | ||
|
||
label = lv_label_create(cont); | ||
lv_label_set_text(label, "PlayMusicFromSPIFFS"); | ||
lv_label_set_text(label, "PlayMusicFromFFat"); | ||
|
||
//Play wav Button | ||
lv_obj_t *btn1 = lv_btn_create(cont); | ||
|
@@ -210,7 +210,7 @@ void setup(void) | |
lv_label_set_text(label, "Play AAC"); | ||
lv_obj_center(label); | ||
|
||
file = new AudioFileSourceSPIFFS(); | ||
file = new AudioFileSourceFATFS(); | ||
|
||
// Set up the use of an external decoder | ||
out = new AudioOutputI2S(i2sPort, AudioOutputI2S::EXTERNAL_I2S); | ||
|
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 |
---|---|---|
|
@@ -23,7 +23,7 @@ | |
; src_dir = examples/peripheral/PMU_ADC | ||
; src_dir = examples/peripheral/PMU_Interrupt | ||
; src_dir = examples/peripheral/PlayMusicFromPROGMEM | ||
; src_dir = examples/peripheral/PlayMusicFromSPIFFS | ||
; src_dir = examples/peripheral/PlayMusicFromFATFS | ||
; src_dir = examples/peripheral/GPSFullExample | ||
; src_dir = examples/peripheral/GPSFactory | ||
|
||
|
@@ -153,8 +153,8 @@ boards_dir = ./board/LilyGoWatch-S3 | |
lib_extra_dirs = . | ||
upload_speed = 921600 | ||
monitor_speed = 115200 | ||
board_build.filesystem = spiffs | ||
board_build.partitions = default_16MB.csv | ||
board_build.filesystem = fatfs | ||
board_build.partitions = app3M_fat9M_16MB.csv | ||
|
||
[env:twatch-s3] | ||
platform = [email protected] | ||
|
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