code: def flash(
      categories, param_file, project_dir, plugin, target,
      status_update_interval, board
  ):
      
      _init(board, project_dir)
      _run(
          categories, param_file, project_dir, plugin, target,
          status_update_interval
      )
      print "Done"
docs: Flashes firmware to device (init + run).
      Initializes a pio project and runs the result, flashing it to the device.