Skip to content

OneWire and pinMode as INPUT(_PULLUP) #447

Closed
@jh1995

Description

@jh1995

Since May 6th 2015, the pin chosen for OneWire communication has been changed from INPUT to INPUT_PULLUP mode. This breaks existing circuits and introduces a level of hardware randomness.

The OneWire bus specification requires a well defined pull-up resistor, 4k7. With the ESP8266 internal pullup active, the resistor value becomes chip dependant, somehow unknown and hard to define for complex installations with many 1wire slaves. Not counting that existing implementations with an external resistor need a hardware mod to work with newer code.

Please roll back the definition at line 122 in OneWire.cpp and restore pinMode as INPUT. Then add an optional parameter, a function() or a #define that lets the programmer override the default INPUT value.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions