mirror of
https://github.com/meshtastic/firmware.git
synced 2025-06-22 04:54:47 +00:00
change default pins for codec2 to work on TLORA 2.1-1.8
This commit is contained in:
parent
671e6cde44
commit
803858ab0a
@ -21,8 +21,9 @@
|
|||||||
1) Enable the module by setting audio.codec2_enabled to 1.
|
1) Enable the module by setting audio.codec2_enabled to 1.
|
||||||
2) Set the pins (audio.mic_pin / audio.amp_pin) for your preferred microphone and amplifier GPIO pins.
|
2) Set the pins (audio.mic_pin / audio.amp_pin) for your preferred microphone and amplifier GPIO pins.
|
||||||
On tbeam, recommend to use:
|
On tbeam, recommend to use:
|
||||||
audio.mic_chan 7 (GPIO 35)
|
audio.mic_chan 6 (GPIO 34)
|
||||||
audio.amp_pin 25 (GPIO 25)
|
audio.amp_pin 14
|
||||||
|
audio.ptt_pin 39
|
||||||
3) Set audio.timeout to the amount of time to wait before we consider
|
3) Set audio.timeout to the amount of time to wait before we consider
|
||||||
your voice stream as "done".
|
your voice stream as "done".
|
||||||
4) Set audio.bitrate to the desired codec2 rate (CODEC2_3200, CODEC2_2400, CODEC2_1600, CODEC2_1400, CODEC2_1300, CODEC2_1200, CODEC2_700, CODEC2_700B)
|
4) Set audio.bitrate to the desired codec2 rate (CODEC2_3200, CODEC2_2400, CODEC2_1600, CODEC2_1400, CODEC2_1300, CODEC2_1200, CODEC2_700, CODEC2_700B)
|
||||||
@ -33,8 +34,8 @@
|
|||||||
* Will not work on NRF and the Linux device targets.
|
* Will not work on NRF and the Linux device targets.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define AMIC 7
|
#define AMIC 6
|
||||||
#define AAMP 25
|
#define AAMP 14
|
||||||
#define PTT_PIN 39
|
#define PTT_PIN 39
|
||||||
|
|
||||||
#define AUDIO_MODULE_RX_BUFFER 128
|
#define AUDIO_MODULE_RX_BUFFER 128
|
||||||
|
Loading…
Reference in New Issue
Block a user