Skip to content

Commit

Permalink
Update DW1000.cpp
Browse files Browse the repository at this point in the history
For ESP8266, the irq must be forced to be an input manually, see thotro#132.
  • Loading branch information
steffenmauch authored May 14, 2017
1 parent 8f76809 commit 1bd101e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/DW1000.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,8 @@ void DW1000Class::reselect(uint8_t ss) {
void DW1000Class::begin(uint8_t irq, uint8_t rst) {
// generous initial init/wake-up-idle delay
delay(5);
// Configure the IRQ pin as INPUT
pinMode(irq, INPUT);
// start SPI
SPI.begin();
#ifndef ESP8266
Expand Down

0 comments on commit 1bd101e

Please sign in to comment.