OneWireNoResistor icon indicating copy to clipboard operation
OneWireNoResistor copied to clipboard

Additional change is required

Open cems2 opened this issue 5 years ago • 0 comments

need to change the pinmode in the ::begin or it doesn't pull up!

void OneWire::begin(uint8_t pin)
{
	pinMode(pin, INPUT_PULLUP);  // need to make this change or doesn't pull up
	bitmask = PIN_TO_BITMASK(pin);
	baseReg = PIN_TO_BASEREG(pin);
#if ONEWIRE_SEARCH
	reset_search();
#endif
}

cems2 avatar Jun 01 '20 04:06 cems2