第 2 步:让我们用我们的micro:bit测试当前温度!

  • 在主题中,转到并将蓝色块Temperature拖到程序底部。
  • 将 = 符号左侧的变量名称从temp更改为data
  • 点击运行。你会看到你的 micro:bit 打招呼。在下一个活动中,我们将输出温度。
  • 然后点击提交接下来继续。

To navigate the page using the TAB key, first press ESC to exit the code editor.

microbit = codesters.Microbit() microbit.show_string("hello")
  • Run Code
  • 提交作品
  • 下个活动
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)