PREVIEW: Let's see an example of the program you'll be creating today!

  • Click Run to view the example. Watch the graph for a minute and see what happens!
  • After you've taken a look at the code, click Submit and Next to move on.

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

microbit = codesters.Microbit() time_list = [] data_list = [] my_display = codesters.ScatterPlot(time_list, data_list) time = 0 def interval(): global time data = microbit.get_temp() data_list.append(data) time_list.append(time) my_display.update(time_list, data_list) time += 1 my_display.set_title("Time vs. Temperature") stage.event_interval(interval, 1)
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)