Giter Club home page Giter Club logo

jscd30's Introduction

jSCD30

Simple java driver for the SCD30 CO2 (temparature and humidity) sensor. The SCD30 is tested on RaspberryPi 3B+ and uses the I2C BUS.

More at https://zzerog.github.io/jSCD30/.

TODO LIST

  • Code completion
  • Add logging fasade (as SLF4J)
  • Maven page (mvn page)
  • Unit testing
  • Create examples

Usage

        //init with I2C_BUS. RPi3 B+ => BUS_1;
        SCD30 scd30 = new SCD30(new I2CMode(I2CBus.BUS_1));

        scd30.setEventListener(event -> {
            switch (event.getType()) {

                case CO2:
                    System.out.println("CO2: " + event.getValue() + " ppm");
                    break;

                case TEMP:
                    System.out.println("Temperature: " + event.getValue() + " °C");
                    break;

                case HUMID:
                    System.out.println("Humidity: " + event.getValue() + " %");
                    break;
            }
        });

        System.out.println("SCD30 firmware version: "+scd30.getFirmwareVersion());

        scd30.start();

more at example package

Dependencies

Resources

License

This project is licensed under the GNU General Public License v3.0 - see the LICENSE.md file for details

jscd30's People

Contributors

zzerog avatar

Stargazers

 avatar

Watchers

 avatar  avatar

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.