Skip to content

examples: run #2's test plan on the P4 #4

Description

@bdbarnett

PR #2 (merged as 0cc37a8, 2026-09-07) added camera_frame.py, camera_transform.py, camera_formats.py and camera_diag.py. Merged on a static review: every Camera method the scripts call exists in mod_cameraif.c with the argument names and return shapes used (capture_scaled keywords, frame(timeout), test_pattern() read-back, sensor() pair, formats() triples, reg()), and the constructor keywords in camera_formats.py match make_new. Nothing was run on a board.

The PR's own test plan, still unchecked:

  • P4 + OV5647: run each new script; confirm preview / stats / orientations / format switch / test pattern
  • Existing five examples still import and run

One thing to watch: camera_formats.py guesses the board's camera pins through board_config.camera_pins() / CAMERA_PINS and falls back to hard-coded Waveshare P4 numbers. The branch the real board takes is the one that should stay.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions