Skip to content

crwdns342183:0crwdne342183:0

crwdns312078:0crwdne312078:0

crwdns338145:0crwdne338145:0 | MakeCode, Python | crwdns255564:0crwdne255564:0, crwdns255566:0crwdne255566:0, crwdns255570:0crwdne255570:0 | crwdns258492:0crwdne258492:0, crwdns258616:0crwdne258616:0, crwdns293292:0crwdne293292:0

crwdns258622:0crwdne258622:0

crwdns258624:0crwdne258624:0

crwdns258626:0crwdne258626:0

crwdns258628:0crwdne258628:0

  • crwdns258630:0crwdne258630:0
  • crwdns258632:0crwdne258632:0
  • crwdns258634:0crwdne258634:0
  • crwdns258636:0crwdne258636:0
  • crwdns258638:0crwdne258638:0
  • crwdns258640:0crwdne258640:0
  • crwdns258642:0crwdne258642:0
  • crwdns258644:0crwdne258644:0

crwdns258646:0crwdne258646:0

  • crwdns258648:0crwdne258648:0
  • crwdns258650:0crwdne258650:0
  • crwdns258652:0crwdne258652:0

crwdns258654:0crwdne258654:0

1from microbit import *
2
3def convertCtoF(C):
4    return C * 1.8 + 32
5
6while True:
7    if button_a.was_pressed():
8        display.scroll(temperature())
9    if button_b.was_pressed():
10        display.scroll(convertCtoF(temperature()))

crwdns258656:0crwdne258656:0

  • crwdns258658:0crwdne258658:0
  • crwdns258660:0crwdne258660:0
  • crwdns258662:0crwdne258662:0