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

ESPHome 6-VariousFeatures: "Pin 25 is used in multiple places" #233

Open
littleyoda opened this issue Jul 13, 2024 · 4 comments
Open

ESPHome 6-VariousFeatures: "Pin 25 is used in multiple places" #233

littleyoda opened this issue Jul 13, 2024 · 4 comments

Comments

@littleyoda
Copy link

https://github.com/witnessmenow/ESP32-Cheap-Yellow-Display/tree/main/Examples/ESPHome/6-VariousFeatures

I'm unable to compile the ESPHome example.
The Pin 25 is used in multiple places. (spi_touch/clk_pin and i2s_audio/i2s_bclk_pin)

spi:
 - id: spi_tft
   clk_pin: GPIO14
   mosi_pin: GPIO13
   miso_pin: GPIO12
 - id: spi_touch
   clk_pin: GPIO25
   mosi_pin: GPIO32
   miso_pin: GPIO39


i2s_audio:
  i2s_lrclk_pin: GPIO25
  i2s_bclk_pin: GPIO26

Failed config

spi: [source yellowtft1.yaml:176]
  
  Pin 25 is used in multiple places.
  - id: spi_tft
    clk_pin: 
      number: 14
      mode: 
        output: True
        input: False
        open_drain: False
        pullup: False
        pulldown: False
      inverted: False
      ignore_pin_validation_error: False
      ignore_strapping_warning: False
i2s_audio: [source yellowtft1.yaml:212]
  
  Pin 25 is used in multiple places.
  - i2s_lrclk_pin: 25
    i2s_bclk_pin: 26

@TitoTB
Copy link

TitoTB commented Jul 22, 2024

Same issue here!

@littleyoda
Copy link
Author

with the following change you can at least compile it.
However, I have not yet checked whether sharing the PIN makes sense.

spi:
  - id: spi_tft
    clk_pin: GPIO14
    mosi_pin: GPIO13
    miso_pin: GPIO12
  - id: spi_touch
    clk_pin: 
      number: GPIO25
      allow_other_uses: true
    mosi_pin: GPIO32
    miso_pin: GPIO39

i2s_audio:
  i2s_lrclk_pin:
      number: GPIO25
      allow_other_uses: true
  i2s_bclk_pin: GPIO26
```

@TitoTB
Copy link

TitoTB commented Jul 22, 2024

Thanks a lot!

I replace GPIO25 with GPIO27 and i can compile the code also.

However i just hear noise through the speaker. I don't know if it is the yaml configuration, the speaker, or the GPIO... any help?

@TitoTB
Copy link

TitoTB commented Jul 24, 2024

I tried both ways with no luck. I also tried with different speaker.

Has anyone achieve to connect and use a speaker with esphome?

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