Browse Source

cleanup

main
Hendrik Langer 7 years ago
parent
commit
d1d720e780
  1. 2
      platformio.ini
  2. 6
      src/mp3.cpp
  3. 2
      src/mp3.h
  4. 2
      src/rotary.h

2
platformio.ini

@ -15,7 +15,7 @@ board = heltec_wifi_lora_32
board_f_cpu = 240000000L
board_f_flash = 80000000L
framework = arduino
;build_flags = -DLOG_LOCAL_LEVEL=ESP_LOG_VERBOSE -DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_VERBOSE -DDEBUG_INT_ALLOC_DECISIONS=1
build_flags = -DLOG_LOCAL_LEVEL=ESP_LOG_VERBOSE -DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_VERBOSE -DDEBUG_INT_ALLOC_DECISIONS=1
; -DCONFIG_ESP32_RTC_CLOCK_SOURCE_EXTERNAL_CRYSTAL=y
board_build.partitions = min_spiffs.csv
; http://docs.platformio.org/en/latest/platforms/espressif32.html#partition-tables https://github.com/espressif/arduino-esp32/tree/master/tools/partitions

6
src/mp3.cpp

@ -143,8 +143,12 @@ void MP3::mp3_decoder_task(void *pvParameters) {
audiobuffer = buff;
buff->RegisterStatusCB(StatusCallback, (void*)"buffer");
if (out == NULL) {
out = new AudioOutputI2S(I2S_NUM_0, false);
out = new AudioOutputI2S(I2S_NUM_0, AudioOutputI2S::EXTERNAL_I2S, AudioOutputI2S::APLL_DISABLE);
out->SetPinout(12, 13, 25);
//out->SetRate(44100);
//out->SetBitsPerSample(I2S_BITS_PER_SAMPLE_16BIT);
//out->SetChannels(I2S_CHANNEL_STEREO);
//out->SetOutputModeMono(true);
}
if (rtttl_len > 0) {
decoder = new AudioGeneratorRTTTL();

2
src/mp3.h

@ -28,7 +28,7 @@ class MP3 {
int getVolume();
bool playing = false;
bool aborted = false;
int volume = 20;
int volume = 4;
bool volumeChanged = true;
uint32_t getBuffFill(void);
bool fromProgmem;

2
src/rotary.h

@ -3,7 +3,7 @@
#include <Arduino.h>
#include <functional>
#include <ClickEncoder.h>
//#include <ClickEncoder.h>
// usually the rotary encoders three pins have the ground pin in the middle
enum PinAssignments {

Loading…
Cancel
Save