Add begin(pin) function

fixes #22
This commit is contained in:
PaulStoffregen
2018-03-15 08:24:59 -07:00
parent 62ecd059f7
commit 6ad660a943
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -144,7 +144,7 @@ sample code bearing this copyright.
#include "util/OneWire_direct_gpio.h"
OneWire::OneWire(uint8_t pin)
void OneWire::begin(uint8_t pin)
{
pinMode(pin, INPUT);
bitmask = PIN_TO_BITMASK(pin);