Skip to content

GenieLabMtl/pxt-mlx90614-microbit-Testes

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MLX90614

This Microbit extension allows users to mesure ambient or object temperature using an IR-MLX90614 sensor.

Hardware

Insert the IR-MLX90614 into the I2C ports of a breakout board.

Blocks

Mesure temperature

Allows to mesure either ambient temperature or object temperature

Example

The following code displays the ambient temperature when the button A is pressed and the object temperature when the button B is pressed.

input.onButtonPressed(Button.A, function () {
    basic.showNumber(MLX90614.temperature(Environment.Ambient))
})
input.onButtonPressed(Button.B, function () {
    basic.showNumber(MLX90614.temperature(Environment.Object))
})

Supported targets

For PXT/microbit

About

Créer pour eviter d'affecter le main

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 100.0%