PASO 8: ¡Usaremos un evento especial para permitirnos recopilar datos continuamente con el micro: bit!

El código sangrado debajo de un evento de intervalo se ejecuta continuamente.

  • En GRÁFICOS, vaya a y arrastre Interval Event hasta la parte inferior de su editor de código.
  • Elimina la línea que dice ···· sprite . girar_izquierda( 15 ) .
  • Luego, en ASUNTO, haga clic en y arrastre Temperature DENTRO de su evento de intervalo .

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

microbit = codesters.Microbit() microbit.show_string("hello") data = microbit.get_temp() microbit.show_number(data) data_list = [] time_list = [] my_display = codesters.ScatterPlot(time_list, data_list) time = 0
  • Run Code
  • Enviar Trabajo
  • Actividad Siguiente
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)