Approved content

The content below is provided by a partner.

assirati/pxt-inventura 0.0.7 GitHub

BBC micro:bit MakeCode editor extension with functions for Inventura textbook activities

This extension contains functions to help students perform the projects and activities proposed in the Inventura books (eg: a function to calculate heat index, given air temperature and humidity).

To import this extension, go to Advanced -> +Extension and enter “Inventura” in the search box, or copy/paste https://github.com/assirati/pxt-inventura/ into the search box. Press enter and click the extension.

img_0001

Inventura is an educational solution designed to turn children into inventors, making programming learning an easy, immersive and stimulating experience. It has different volumes for elementary students.

Blocks

This extension contains functions to help students perform the projects and activities proposed in the Inventura.

The Heat Index blocks calculates the heat index based on temperature and air humidity.

snip_20190907232009

The first block receives air humidity (given in %) and temperature in celsius (°C), returning the heat index also in celsius (°C). The second block uses the temperature in fareinheigh (°F) and calculates the index also in fareinheigh (°F).

For both blocks, the air humidity must be between 0% and 100%.

microbit-screenshot (3)

basic.forever(function () {
    basic.showNumber(inventura.heatIndexC(32, 70))
    basic.showNumber(inventura.heatIndexF(90, 70))
})

License

MIT

Supported targets

inventura=github:assirati/pxt-inventura#v0.0.7