Skip to content

vives-projectwerk-2021/pulu-fake-temperature-sensor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

mbed-fake-temperature-sensor

In this repository you find a library that will give you a random value that simulates the output of a temperature sensor.

Usage of library

Make instance of the class

To use this library you first need to make an instance of the class. You don't need to give extra information to the class.

Use the method temperature()

To get a value of the sensor you can just call the method temperature() on your instance. When you use the method temperature() you get a value with a type int16_t. This value isn't the real temperature. To get the real temperature, you must divide the value by 256. The result is within the range of -15 to 40.

Why this library

This library was made for the pulu project in the development phase.

About

(SIMULATION) fake class simulating a temperature sensor

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages