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