Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login
    1. Home
    2. Tags
    3. tsl2591

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    Log in to post

    • All categories
    • T

      TSL2591 runtime error: Overflow reading light channels

      Watching Ignoring Scheduled Pinned Locked Moved MicroPython tsl2591 i2c library runtime error
      6
      0 Votes
      6 Posts
      64 Views
      T
      It looks like you are using signed intergers/numbers for the reading from the light sensor. When it reaches the half way value it wraps around and goes negative. If you simply define the data as an unsigned type does it fix the issue.
    • J

      TSL2591 Board Interfacing

      Watching Ignoring Scheduled Pinned Locked Moved WiPy 2&3 tsl2591
      10
      0 Votes
      10 Posts
      1k Views
      J
      @robert-hh Thank you @robert-hh. Your help is making a steep learning curve a lot easier.
    • 1 / 1