forked from maaadc/singsang
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
changes: * use most recent M5Core2 library
see https://github.com/m5stack/M5Core2/releases/tag/0.1.6 see schreibfaul1/ESP32-audioI2S#410 needs SpeakerEnable=false in M5.begin(...) * fixed bat status * enhanced GUI; add prev, add play/pause, re-aranged other widgets to free space * store index of song played last to resume on power-on ! hack and works only upt to 255 songs (just 1 byte of 4 byte int is stored) ! missing is recognition whether it is the same SD * default volume 8 (instead of 0) libraries: M5Core2 (0.1.6/cb65d23) can be installed by Library Manager (deps do not need to be installed) ESP32-audioI2S (c612a07, newer than 3.0.0/c395d0f) needs to be manually installed
- Loading branch information
Showing
14 changed files
with
139 additions
and
25 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Empty file.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#ifndef SINGSANG_PAUSE_SONG_WIDGET_HPP | ||
#define SINGSANG_PAUSE_SONG_WIDGET_HPP | ||
|
||
#include "base_widget.hpp" | ||
|
||
namespace singsang | ||
{ | ||
class CPauseSongWidget : public CBaseWidget | ||
{ | ||
public: | ||
CPauseSongWidget() : CBaseWidget(270, 120, 40, 40) {} | ||
|
||
void update() {} | ||
|
||
void draw(const bool f_updateOnly) | ||
{ | ||
M5.Lcd.drawPngFile(SPIFFS, "/icon-caret-right.png", m_positionX, | ||
m_positionY, m_sizeX, m_sizeY); | ||
} | ||
}; | ||
|
||
} // namespace singsang | ||
|
||
#endif // SINGSANG_PAUSE_SONG_WIDGET_HPP |
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#ifndef SINGSANG_PREV_SONG_WIDGET_HPP | ||
#define SINGSANG_PREV_SONG_WIDGET_HPP | ||
|
||
#include "base_widget.hpp" | ||
|
||
namespace singsang | ||
{ | ||
class CPrevSongWidget : public CBaseWidget | ||
{ | ||
public: | ||
CPrevSongWidget() : CBaseWidget(10, 200, 40, 40) {} | ||
|
||
void update() {} | ||
|
||
void draw(const bool f_updateOnly) | ||
{ | ||
M5.Lcd.drawPngFile(SPIFFS, "/icon-track-prev.png", m_positionX, | ||
m_positionY, m_sizeX, m_sizeY); | ||
} | ||
}; | ||
|
||
} // namespace singsang | ||
|
||
#endif // SINGSANG_PREV_SONG_WIDGET_HPP |
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