Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connection diagram #13

Closed
uw5elk opened this issue May 10, 2024 · 3 comments
Closed

Connection diagram #13

uw5elk opened this issue May 10, 2024 · 3 comments

Comments

@uw5elk
Copy link

uw5elk commented May 10, 2024

Hello. Is there a diagram for connecting all the modules to the main board?

@uw5elk
Copy link
Author

uw5elk commented May 10, 2024

In particular, to which pins to connect the display?

@sh123
Copy link
Owner

sh123 commented Jul 13, 2024

@uw5elk, ssd1306 display library is using Wire module, which uses esp32 SCL (GPIO22) and SDA (GPIO21) pinouts, other pinouts are numbered in include/config.h file as

// lora
#define LORA_RST                    26
#define LORA_IRQ                    12
#define CFG_LORA_PIN_SS             SS
#define CFG_LORA_PIN_RST            LORA_RST
#define CFG_LORA_PIN_A              LORA_IRQ    // (sx127x - dio0, sx126x/sx128x - dio1)
#define CFG_LORA_PIN_B              14          // (sx127x - dio1, sx126x/sx128x - busy)
#define CFG_LORA_PIN_RXEN           32          // (sx127x - unused, sx126x - RXEN pin number)
#define CFG_LORA_PIN_TXEN           33          // (sx127x - unused, sx126x - TXEN pin number)

// ptt button
#define CFG_PTT_BTN_PIN             39          // pin for ptt button

// rotary encoder
#define CFG_ENCODER_PIN_A           17
#define CFG_ENCODER_PIN_B           16
#define CFG_ENCODER_PIN_BTN         34

// i2s speaker
#define CFG_AUDIO_SPK_PIN_BCLK      26
#define CFG_AUDIO_SPK_PIN_LRC       13
#define CFG_AUDIO_SPK_PIN_DIN       25

// i2s mic
#define CFG_AUDIO_MIC_PIN_SD        2
#define CFG_AUDIO_MIC_PIN_WS        15
#define CFG_AUDIO_MIC_PIN_SCK       4

// battery monitor
#define CFG_AUDIO_BATTERY_MON_PIN   36

image

@sh123 sh123 closed this as completed Jul 13, 2024
@uw5elk
Copy link
Author

uw5elk commented Jul 13, 2024

Дякую

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants