mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-06 05:21:22 +03:00
OneWire set up as INPUT_PULLUP
This commit is contained in:
parent
1e392dab6f
commit
63d0748135
@ -119,7 +119,7 @@ sample code bearing this copyright.
|
||||
|
||||
OneWire::OneWire(uint8_t pin)
|
||||
{
|
||||
pinMode(pin, INPUT);
|
||||
pinMode(pin, INPUT_PULLUP);
|
||||
bitmask = PIN_TO_BITMASK(pin);
|
||||
baseReg = PIN_TO_BASEREG(pin);
|
||||
#if ONEWIRE_SEARCH
|
||||
|
Loading…
x
Reference in New Issue
Block a user