Skip to content

crwdns342183:0crwdne342183:0

crwdns312238:0crwdne312238:0

crwdns338145:0crwdne338145:0 | MakeCode, Python | crwdns255564:0crwdne255564:0, crwdns255566:0crwdne255566:0, crwdns255570:0crwdne255570:0 | crwdns258474:0crwdne258474:0, crwdns258494:0crwdne258494:0, crwdns258502:0crwdne258502:0, crwdns258516:0crwdne258516:0, crwdns258538:0crwdne258538:0, crwdns258584:0crwdne258584:0, crwdns293292:0crwdne293292:0

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