Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- basic.forever(function () {
- if (input.temperature() >= 0 && input.temperature() <= 25) {
- basic.showString("cool")
- basic.showIcon(IconNames.Heart)
- } else if (input.temperature() >= 40) {
- basic.showString("hot")
- } else if (input.temperature() <= 0) {
- basic.showString("Freeze")
- basic.showIcon(IconNames.Happy)
- } else {
- }
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement