Skip to content

Jumperr-labs/rht03

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jumper Virtual Lab Peripheral Model - RHT03

This repo contains RHT03 peripheral to use with Jumper Virtual Lab.

For more information, visit the docs.

Prerequisites

Usage

  • Fork this repository on GitHub and clone the new repository onto your Linux machine.

  • Make sure you have the build prerequisites by running the following:

    cd /PATH/TO/RHT03/REPO
    make
  • If everything worked as expected, you should now have a "_build/RHT03.so" file.

  • Copy the .so file from the "_build/" directory to your Jumper Virtual Lab working directory (same one as the "board.json" file).

  • Add the component to your "board.json" file:

      	{
      		"name": "RHT03",
      		"id": 1,
      		"type": "Peripheral",
      		"file": "/PATH/TO/REPO/_build/RHT03.so",
      		"config": {
      			"pins": {
      				"data": 5
      			},
      			"generators": {
      				"humidity": 1,
      				"temperature": 2
      			}
      		}
      	}
    }
  • Use this "scenario.json" file for example:

    {
      "DataGenerators": [
          {
              "id": 1,
              "type": "Increment",
              "config": {
                  "min" : 10,
                  "max" : 70,
                  "step" : 10
              }
          },
          {
              "id": 2,
              "type": "sin",
              "config": {
                  "min": 20,
                  "max": 40,
                  "sinFrequency": 0.5
              }
          }
      ]
    }

License

Licensed under the Apache License, Version 2.0. See the LICENSE file for more information

About

Jumper Virtual Lab Peripheral Model - AD7798

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published