Skip to content
This repository has been archived by the owner on May 7, 2019. It is now read-only.

Commit

Permalink
Fixed 402ms integration time timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Townsend committed Jun 25, 2013
1 parent 58e24df commit db39f9a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions TSL2561.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

/**************************************************************************/
/*!
@file tsl2561.c
Expand Down Expand Up @@ -224,7 +223,7 @@ uint32_t TSL2561::getFullLuminosity (void)
delay(102);
break;
default:
delay(400);
delay(403);
break;
}

Expand Down

1 comment on commit db39f9a

@saitan-bingo
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some chips even need more time for ADC to complete. If there is zero output, try to increase the delay time in switch (_integration). 105 ms and 410 ms worked for me.

Please sign in to comment.