crwdns256722:0crwdne256722:0
crwdns256724:0crwdne256724:0
crwdns256726:0crwdne256726:0
crwdns336859:0crwdne336859:0
crwdns336863:0crwdne336863:0
crwdns336867:0crwdne336867:0
crwdns336869:0crwdne336869:0
- crwdns336871:0crwdne336871:0
- crwdns336873:0crwdne336873:0
- crwdns336875:0crwdne336875:0
- crwdns336877:0crwdne336877:0
- crwdns336879:0crwdne336879:0
- crwdns336881:0crwdne336881:0
- crwdns336883:0crwdne336883:0
- crwdns336885:0crwdne336885:0
crwdns336887:0crwdne336887:0
- crwdns336889:0crwdne336889:0
- crwdns336891:0crwdne336891:0
- crwdns336893:0crwdne336893:0
- crwdns336895:0crwdne336895:0
- crwdns336897:0crwdne336897:0
crwdns336899:0crwdne336899:0
1from microbit import *
2
3currentTemp = temperature()
4max = currentTemp
5min = currentTemp
6
7while True:
8 display.show('.')
9 currentTemp = temperature()
10 if currentTemp < min:
11 min = currentTemp
12 elif currentTemp > max:
13 max = currentTemp
14 if button_a.was_pressed():
15 display.scroll(min)
16 if button_b.was_pressed():
17 display.scroll(max)
18 sleep(1000)
19 display.clear()
20 sleep(1000)
21
crwdns336901:0crwdne336901:0
- crwdns336903:0crwdne336903:0 crwdns336905:0crwdne336905:0 crwdns336907:0crwdne336907:0 crwdns336909:0crwdne336909:0
- crwdns336911:0crwdne336911:0
- crwdns336913:0crwdne336913:0
This content is published under a Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) licence.