Skip to content

Commit

Permalink
Clean up (#16)
Browse files Browse the repository at this point in the history
* Remove unused dependency from Platformio's library.json

* Bump version for the next release
  • Loading branch information
baldram authored Jul 28, 2018
1 parent fc15200 commit 6e9b41a
Show file tree
Hide file tree
Showing 7 changed files with 569 additions and 466 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Then initialize the player and use as in following example:
player.begin();
player.setVolume(VOLUME);
player.switchToMp3Mode();
player.playChunk(helloMp3, sizeof(helloMp3));
player.playChunk(sampleMp3, sizeof(sampleMp3));
```

For complete code please check [examples](https://github.com/baldram/ESP_VS1053_Library/tree/master/examples) folder.
Expand Down
8 changes: 4 additions & 4 deletions examples/Mp3PlayerDemo/Mp3PlayerDemo.ino
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@
// This ESP_VS1053_Library
#include <VS1053.h>

// Please find helloMp3.h file here:
// github.com/baldram/ESP_VS1053_Library/blob/master/examples/Mp3PlayerDemo/helloMp3.h
#include "helloMp3.h"
// Please find SampleMp3.h file here:
// github.com/baldram/ESP_VS1053_Library/blob/master/examples/Mp3PlayerDemo/SampleMp3.h
#include "SampleMp3.h"

// Wiring of VS1053 board (SPI connected in a standard way)
#define VS1053_CS D1
Expand Down Expand Up @@ -70,6 +70,6 @@ void loop() {
Serial.println("Playing sound... ");

// play mp3 flow each 3s
player.playChunk(helloMp3, sizeof(helloMp3));
player.playChunk(sampleMp3, sizeof(sampleMp3));
delay(3000);
}
561 changes: 561 additions & 0 deletions examples/Mp3PlayerDemo/SampleMp3.h

Large diffs are not rendered by default.

451 changes: 0 additions & 451 deletions examples/Mp3PlayerDemo/helloMp3.h

This file was deleted.

9 changes: 1 addition & 8 deletions library.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ESP_VS1053_Library",
"version": "1.0.8",
"version": "1.0.8a",
"keywords": "vs1053, esp8266, esp32, nodemcu, codec, mp3",
"description": "This is a driver library for VS1053 MP3 Codec Breakout adapted for Espressif ESP8266 and ESP32 boards",
"authors": [
Expand All @@ -17,13 +17,6 @@
},
"frameworks": "arduino",
"platforms": ["espressif32", "espressif8266"],
"dependencies": [
{
"name": "ArduinoLog",
"frameworks": "arduino",
"platforms": "espressif8266"
}
],
"examples": [
"[Ee]xamples/*.cpp",
"[Ee]xamples/*.ino",
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=VS1053 Library for ESP8266/ESP32
version=1.0.8
version=1.0.8a
author=Baldram
maintainer=Baldram <[email protected]>
sentence=This is a driver library for VS1053 MP3 Codec Breakout adapted for Espressif ESP8266 and ESP32 boards
Expand Down
2 changes: 1 addition & 1 deletion src/VS1053.h
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ class VS1053 {
return (digitalRead(dreq_pin) == HIGH);
}

void switchToMp3Mode(void);
void switchToMp3Mode();
};

#endif

0 comments on commit 6e9b41a

Please sign in to comment.