Skip to content

Commit

Permalink
Update libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
sh123 committed Mar 15, 2023
1 parent e1128a3 commit c6f14c6
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 18 deletions.
2 changes: 1 addition & 1 deletion include/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#define CFG_VERSION 2

// Comment out for SX127X module usage
#define USE_SX126X
//#define USE_SX126X

// Check your module name at https://github.com/jgromes/RadioLib/wiki/Modules
#ifdef USE_SX126X
Expand Down
2 changes: 1 addition & 1 deletion include/version.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#ifndef VERSION_H
#define VERSION_H

#define LORADV_VERSION "1.0.4"
#define LORADV_VERSION "1.0.5"

#endif // VERSION_H
15 changes: 10 additions & 5 deletions platformio.ini
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
[platformio]
description = ESP32 LoRA DV Codec2 handheld transceiver
default_envs = esp32dev
default_envs = esp32dev_sx126x

[env]
platform = espressif32 @ 5.2.0
platform = espressif32 @ 6.1.0
framework = arduino
monitor_speed = 115200
board_build.partitions = min_spiffs.csv
board_build.f_cpu = 240000000L
upload_protocol = esptool
lib_deps =
hideakitai/DebugLog @ 0.6.6
contrem/arduino-timer @ 2.3.1
jgromes/RadioLib @ 5.5.0
contrem/arduino-timer @ 3.0.0
jgromes/RadioLib @ 5.7.0
rlogiacco/CircularBuffer @ 1.3.3
sh123/esp32_codec2 @ 1.0.3
adafruit/Adafruit SSD1306 @ 2.5.7
Expand All @@ -22,5 +22,10 @@ check_flags =
cppcheck: --suppress=*:*.pio\* --inline-suppr -DCPPCHECK
check_skip_packages = yes

[env:esp32dev]
[env:esp32dev_sx126x]
board = esp32dev
build_flags =
-D USE_SX126X

[env:esp32dev_sx127x]
board = esp32dev
22 changes: 11 additions & 11 deletions src/audio_task.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ void AudioTask::installAudio(int bytesPerSample) const
.sample_rate = CfgAudioSampleRate,
.bits_per_sample = I2S_BITS_PER_SAMPLE_16BIT,
.channel_format = I2S_CHANNEL_FMT_ONLY_LEFT,
.communication_format = (i2s_comm_format_t)(I2S_COMM_FORMAT_I2S | I2S_COMM_FORMAT_I2S_MSB),
.intr_alloc_flags = ESP_INTR_FLAG_LEVEL1,
.communication_format = (i2s_comm_format_t)(I2S_COMM_FORMAT_STAND_I2S),
.intr_alloc_flags = 0,
.dma_buf_count = 8,
.dma_buf_len = bytesPerSample,
.use_apll=0,
.tx_desc_auto_clear= true,
.fixed_mclk=-1
.use_apll = false,
.tx_desc_auto_clear = true,
.fixed_mclk = -1
};
i2s_pin_config_t i2sSpeakerPinConfig = {
.bck_io_num = config_->AudioSpkPinBclk_,
Expand All @@ -61,14 +61,14 @@ void AudioTask::installAudio(int bytesPerSample) const
.mode = (i2s_mode_t)(I2S_MODE_MASTER | I2S_MODE_RX),
.sample_rate = CfgAudioSampleRate,
.bits_per_sample = I2S_BITS_PER_SAMPLE_16BIT,
.channel_format = I2S_CHANNEL_FMT_ONLY_RIGHT,
.communication_format = (i2s_comm_format_t)(I2S_COMM_FORMAT_I2S | I2S_COMM_FORMAT_I2S_MSB),
.intr_alloc_flags = ESP_INTR_FLAG_LEVEL1,
.channel_format = I2S_CHANNEL_FMT_ONLY_LEFT,
.communication_format = (i2s_comm_format_t)(I2S_COMM_FORMAT_STAND_I2S),
.intr_alloc_flags = 0,
.dma_buf_count = 8,
.dma_buf_len = bytesPerSample,
.use_apll=0,
.tx_desc_auto_clear= true,
.fixed_mclk=-1
.use_apll = false,
.tx_desc_auto_clear = true,
.fixed_mclk = -1
};
i2s_pin_config_t i2sMicPinConfig = {
.bck_io_num = config_->AudioMicPinSck_,
Expand Down

0 comments on commit c6f14c6

Please sign in to comment.