Add separate factory script and device log files

If no log-file is provided write logs to BUILD_WORKSPACE_DIRECTORY as:
Device logs: ./factory-logs-20240801175511-device.txt
Factory logs: ./factory-logs-20240801175511-operator.txt

Change all print() statements to print_message() which prints then
logs to the new factory log file with colors removed.

Add a re-flash message when failing to connect to a device.

Add the last 5 sensor readings to the title of each _sample_until()
progress bar.

Change-Id: I465f20ec183c0fbea5c03f70a98096b5819d346e
Reviewed-on: https://pigweed-internal-review.git.corp.google.com/c/pigweed/showcase/rp2/+/73669
Reviewed-by: Keir Mierle <keir@google.com>
Commit-Queue: Anthony DiGirolamo <tonymd@google.com>
1 file changed
tree: 1504e18e6f75c0888ccc376689ab8cfca7b68386
  1. .github/
  2. .vscode/
  3. apps/
  4. device/
  5. modules/
  6. system/
  7. targets/
  8. tools/
  9. web_app/
  10. .bazelignore
  11. .bazelrc
  12. .bazelversion
  13. .buildifier.json
  14. .clang-format
  15. .clangd.shared
  16. .gitignore
  17. .pw_console.yaml
  18. AUTHORS
  19. BUILD.bazel
  20. CONTRIBUTING.md
  21. LICENSE
  22. MODULE.bazel
  23. OWNERS
  24. pigweed.json
  25. README.md
README.md

Pigweed Open Source Template Repository

This repository is a template that we will use when creating new open source repositories for Pigweed.