Skip to content

integration_time plus **1** second (fixed) blocked reliable measures #10

Open

Description

@elemhsb

time.sleep(0.120*self.integration_time+1) # not sure if we need it "// Wait x ms for ADC to complete"

Typo here: () missing
time.sleep(0.120self.integration_time+1) # takes minimal 1 second + 0.120self.integration_time

You want:
time.sleep(0.120*(self.integration_time+1))

Fastest working is:
time.sleep(0.105+0.100*self.integration)

Activity

  1. cmur2 commented on Mar 1, 2019

    @cmur2

    Seconded! I use a local copy of this helpful repository and fixed it there but never reported here, sorry...

    The initial clue for that comes form the official Adafruit driver and datasheet: https://github.com/adafruit/Adafruit_TSL2591_Library/blob/master/Adafruit_TSL2591.cpp#L316-L320 in combination with https://github.com/adafruit/Adafruit_TSL2591_Library/blob/master/Adafruit_TSL2591.h#L84

  2. added a commit that references this issue on May 24, 2019
    a695de6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions