Git Product home page Git Product logo

uext-modules's Introduction

uext-modules's People

Contributors

d3v1c3nv11 avatar dankoloff avatar tsvetanusunov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

uext-modules's Issues

MOD-LTR501.ino bug?

In the file:
UEXT-MODULES/MOD-LTR-501ALS/ARDUINO EXAMPLE/MOD-LTR501.ino

the Lux Sensor is read with

if(stat & 0x04){
      //ALS new data
      unsigned char data[4];
      for(int i = 0; i < 4; i++){
        data[i] = Read(0x88 + i);
      }
      ADC_1 = (data[1] << 8) | data[0];
      ADC_0 = (data[3] << 8) | data[1];
      Serial.print("ALS1: ");
      Serial.print(ADC_1, DEC);
      Serial.println(" LUX");
      Serial.print("ALS0: ");
      Serial.print(ADC_0, DEC);
      Serial.println(" LUX");
}

Regarding the datasheet, ADC_0 is stored in registers 0x8A (lower byte) and 0x8B (higher byte)

So the ADC_0 should instead be:
ADC_0 = (data[3] << 8) | data[2];

Am I right ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.