Skip to content

LyraT board, unable to release pin 18 for I2C (temperature usermod) #216

Open

Description

@lucas66a

What happened?

Hi, I've just received a LyraT board to access the line in, attempting to configure as below.
The temperature user mod is disabled but am unable to select pin 18 for I2C, shows as unavailable and associated with Temperature. Temperate user mod is disabled, tried to set Temperature usermod to undefined, seems to hang when saving, same when selecting other unused pins.
Pinmanager shows Temp as enabled = false.

Using the V14.5.0 beta

Type: ES8388

Pin I2S SD: 35

Pin I2S WS: 25

Pin I2S SCK: 5

Pin I2S MCLK: 0

Pin I2C: 18

Pin I2C SCL: 23

Squelch: 5

Gain: 20

AGC: Normal

To Reproduce Bug

Attempt to select pin for I2C, shows unavailable and associated with the Temperature user mod which is disabled.

Expected Behavior

I expected to be able to select pin 18 once having disabled temperature.

Install Method

From MoonModules Release Page

What version/release of MM WLED?

build 2412180 WLEDMM esp32_4MB_M.bon

Which microcontroller/board are you seeing the problem on?

ESP32

Relevant log/trace output

Anything else?

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Activity

  1. added
    bug
    on Jan 20, 2025
  2. netmindz commented on Sep 20, 2025

    @netmindz
    Collaborator

    Just assign temperature to a different pin

  3. added
    hardware
    workaround
    on Oct 23, 2025
  4. changed the title [-]LyraT board, unable to release pin 19[/-] [+]LyraT board, unable to release pin 18 for I2C (temperature usermod)[/+] on Oct 23, 2025
  5. softhack007 commented on Oct 23, 2025

    @softhack007
    Collaborator

    Unfortunately usermods always "grab" PINs that are configured for them, even when the usermod is disabled. WLED-MM has inherited this behaviour from upstream. We have worked around this "pin stealing" problem in some cases, but did not succeed for all usermods. The safest solution is to change problematic usermod pins either to "-1" (unassigned) or to an unused pin, then reboot.

    I2C pins have an additional problem - the I2C driver can be started but it cannot be stopped by our software. So to re-assign I2C pins, a reboot is needed after changing the pin assignment. The same could be true for the temperature sensor pin, which is driven by external library called "onewire".

  6. added this to the 14.8.1 milestone on Dec 23, 2025
  7. added
    backburner
    on Dec 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    backburnerbughardwareworkaround

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions