1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-16 11:21:18 +03:00

OneWire set up as INPUT_PULLUP

This commit is contained in:
Markus Sattler
2015-05-04 18:08:16 +02:00
parent d004faff68
commit 895cbed6b8

View File

@ -119,7 +119,7 @@ sample code bearing this copyright.
OneWire::OneWire(uint8_t pin) OneWire::OneWire(uint8_t pin)
{ {
pinMode(pin, INPUT); pinMode(pin, INPUT_PULLUP);
bitmask = PIN_TO_BITMASK(pin); bitmask = PIN_TO_BITMASK(pin);
baseReg = PIN_TO_BASEREG(pin); baseReg = PIN_TO_BASEREG(pin);
#if ONEWIRE_SEARCH #if ONEWIRE_SEARCH