Skip to content

Commit

Permalink
Merge pull request #17 from martinroger/ESP_LOG-conversion
Browse files Browse the repository at this point in the history
Esp log conversion
  • Loading branch information
martinroger authored Nov 29, 2024
2 parents f9e10f4 + 5e0dce2 commit 85aae66
Show file tree
Hide file tree
Showing 5 changed files with 395 additions and 616 deletions.
34 changes: 17 additions & 17 deletions include/L0x00.h
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
#define L0x00_RequestExtendedInterfaceMode 0x03
#define L0x00_EnterExtendedInterfaceMode 0x05
#define L0x00_RequestiPodName 0x07
#define L0x00_RequestiPodSoftwareVersion 0x09
#define L0x00_RequestiPodSerialNum 0x0B
#define L0x00_RequestiPodModelNum 0x0D
#define L0x00_RequestLingoProtocolVersion 0x0F
#define L0x00_IdentifyDeviceLingoes 0x13
#define L0x00_RetAccessoryInfo 0x28
#define L0x00_RequestExtendedInterfaceMode 0x03
#define L0x00_EnterExtendedInterfaceMode 0x05
#define L0x00_RequestiPodName 0x07
#define L0x00_RequestiPodSoftwareVersion 0x09
#define L0x00_RequestiPodSerialNum 0x0B
#define L0x00_RequestiPodModelNum 0x0D
#define L0x00_RequestLingoProtocolVersion 0x0F
#define L0x00_IdentifyDeviceLingoes 0x13
#define L0x00_RetAccessoryInfo 0x28

//Possible values for L0x00 0x02 iPodAck
#define iPodAck_OK 0x00
#define iPodAck_CmdFailed 0x02
#define iPodAck_BadParam 0x04
#define iPodAck_UnknownID 0x05
#define iPodAck_CmdPending 0x06
#define iPodAck_TimedOut 0x0F
#define iPodAck_CmdUnavail 0x10
#define iPodAck_LingoBusy 0x14
#define iPodAck_OK 0x00
#define iPodAck_CmdFailed 0x02
#define iPodAck_BadParam 0x04
#define iPodAck_UnknownID 0x05
#define iPodAck_CmdPending 0x06
#define iPodAck_TimedOut 0x0F
#define iPodAck_CmdUnavail 0x10
#define iPodAck_LingoBusy 0x14
4 changes: 1 addition & 3 deletions include/esPod.h
Original file line number Diff line number Diff line change
Expand Up @@ -103,15 +103,13 @@ class esPod
private:
//Serial to the listening device
Stream& _targetSerial;
#ifdef DEBUG_MODE
HardwareSerial& _debugSerial;
#endif

//Packet-related
byte _prevRxByte = 0x00;
byte _rxBuf[1024] = {0x00};
uint32_t _rxLen = 0;
uint32_t _rxCounter = 0;
bool _rxInProgress = false;


//Device metadata
Expand Down
50 changes: 9 additions & 41 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
; https://docs.platformio.org/page/projectconf.html

[platformio]
default_envs = nodeMCUESP32S_externalDAC

[env]
platform = https://github.com/pioarduino/platform-espressif32/releases/download/51.03.07/platform-espressif32.zip
Expand All @@ -19,13 +18,13 @@ framework = arduino
[env:audioKitA1S_v2-2]
board = esp32dev
lib_deps =
https://github.com/pschatzmann/ESP32-A2DP.git @ ^1.8.3
tttapa/Arduino Filters @ ^1.0.0
https://github.com/pschatzmann/arduino-audio-tools.git @ ^0.9.8
https://github.com/pschatzmann/arduino-audio-driver.git @ ^0.1.0
https://github.com/pschatzmann/ESP32-A2DP.git@^1.8.4
https://github.com/pschatzmann/arduino-audio-tools.git@^0.9.9
https://github.com/pschatzmann/arduino-audio-driver.git@^0.1.0
build_flags =
-D AUDIOKIT
-D ENABLE_A2DP
-D BOARD_HAS_PSRAM
;-D CORE_DEBUG_LEVEL=5
monitor_speed = 115200

Expand All @@ -34,60 +33,29 @@ board = esp32dev
build_type = debug
board_build.partitions = min_spiffs.csv
lib_deps =
https://github.com/pschatzmann/ESP32-A2DP.git@1.8.4+sha.95ac918
; tttapa/Arduino Filters @ ^1.0.0
https://github.com/pschatzmann/arduino-audio-tools.git@0.9.9+sha.b6c3025
https://github.com/pschatzmann/arduino-audio-driver.git@0.1.0+sha.0fe3454
https://github.com/pschatzmann/ESP32-A2DP.git@^1.8.4
https://github.com/pschatzmann/arduino-audio-tools.git@^0.9.9
https://github.com/pschatzmann/arduino-audio-driver.git@^0.1.0
build_flags =
-D AUDIOKIT
-D ENABLE_A2DP
-D USE_SD
-D CORE_DEBUG_LEVEL=0
;-D CONFIG_ARDUHAL_LOG_COLORS
; -D USE_ESP_IDF_LOG
-D CORE_DEBUG_LEVEL=0
; -DTAG="\"ARDUINO\""
; -D CONFIG_LOG_MAXIMUM_LEVEL=4
; -D CONFIG_MASTER_LOG_LEVEL=4
-D BOARD_HAS_PSRAM
monitor_speed = 115200

[env:nodeMCUESP32S]
lib_deps =
https://github.com/pschatzmann/ESP32-A2DP.git
tttapa/Arduino Filters
https://github.com/pschatzmann/arduino-audio-tools.git
monitor_speed = 115200
build_flags =
-D USE_INTERNAL_DAC
-D ENABLE_A2DP
board = nodemcu-32s

[env:nodeMCUESP32S_externalDAC]
lib_deps =
https://github.com/pschatzmann/ESP32-A2DP.git
tttapa/Arduino Filters
https://github.com/pschatzmann/arduino-audio-tools.git
monitor_speed = 115200
build_flags =
-D USE_EXTERNAL_DAC_UDA1334A
-D ENABLE_A2DP
-D REFRESH_INTERVAL=10
board = nodemcu-32s

[env:nodeMCUESP32S_externalDAC-SerialDebug]
extends = env:nodeMCUESP32S_externalDAC
build_flags =
-D USE_EXTERNAL_DAC_UDA1334A
-D ENABLE_A2DP
-D DEBUG_MODE
-D REFRESH_INTERVAL=10

[env:nodeMCU_ESP32S_external_RELEASE]
lib_deps =
https://github.com/pschatzmann/ESP32-A2DP.git @ 1.8.3
tttapa/Arduino Filters @ 1.0.0
https://github.com/pschatzmann/arduino-audio-tools.git @ 0.9.8
monitor_speed = 115200
build_flags =
-D USE_EXTERNAL_DAC_UDA1334A
-D ENABLE_A2DP
board = nodemcu-32s
Loading

0 comments on commit 85aae66

Please sign in to comment.