Navigation

    Welcome to the Pycom forum

    Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    1. Home
    2. Tags
    3. tsl2591
    Log in to post

    • T

      TSL2591 runtime error: Overflow reading light channels
      MicroPython • i2c library tsl2591 runtime error • • tttadam  

      6
      0
      Votes
      6
      Posts
      62
      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
      WiPy 2&3 • tsl2591 • • jimmie  

      10
      0
      Votes
      10
      Posts
      988
      Views

      J

      @robert-hh Thank you @robert-hh. Your help is making a steep learning curve a lot easier.
    • 1 / 1