Skip to content

Commit

Permalink
make it work with teensy 3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
orgua committed Oct 15, 2016
1 parent 914502c commit 51ba7e6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/OneWireHub.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ OneWireHub::OneWireHub(uint8_t pin)
slave_list[i] = nullptr;

// prepare pin
DIRECT_MODE_INPUT(pin_baseReg, pin_bitMask);
pinMode(pin, INPUT); // first port-access should by done by this FN, does more than DIRECT_MODE_....
DIRECT_WRITE_LOW(pin_baseReg, pin_bitMask);

// debug:
#if USE_GPIO_DEBUG
Expand Down

0 comments on commit 51ba7e6

Please sign in to comment.