Things used in this project

Hardware components:
Microbitheart
BBC micro:bit board
×1

Code

Javascript codeJavaScript
Here's the code from behind the blocks
let temp = 0
// “If the temperature is too cold or too hot, show an
// led alert”
basic.forever(() => {
    temp = input.temperature()
    basic.showNumber(temp)
    if (temp > 27) {
        basic.showIcon(IconNames.Angry)
    } else if (temp < 26) {
        basic.showIcon(IconNames.Surprised)
    } else {
        basic.showIcon(IconNames.Happy)
    }
})

Credits

Me kmgr1saqku
Monica Houston
20 projects • 182 followers
I live on a boat. Microcontroller enthusiast. Web & App developer.
Contact

Replications

Did you replicate this project? Share it!

I made one

Love this project? Think it could be improved? Tell us what you think!

Give feedback

Comments

Add projectSign up / LoginAbout BBC micro:bit