Skip to content

Fix reset (shutdown pin) - configuring as output pin mode#68

Open
rickwargo wants to merge 1 commit intoadafruit:masterfrom
rickwargo:fix-hw-reset-and-clang-format
Open

Fix reset (shutdown pin) - configuring as output pin mode#68
rickwargo wants to merge 1 commit intoadafruit:masterfrom
rickwargo:fix-hw-reset-and-clang-format

Conversation

@rickwargo
Copy link

On my ESP32 WROOM DevKit v1, the initial HW Reset does not work, and if the device has a non-default id (e.g. 0x30), startup fails (actually after 25 seconds it may work as the chip gets reset). Had to watch this on my scope to figure out what was not working.

This gets resolved in setup() with a simple setting of the shutdown pin to output using pinMode.

Note, other examples that try to reset the sensor correctly set the output pin mode of the shutdown pin.

Other changes:

  • I found out the hard way some of the files needed reformatting with clang-format. This is part of this commit, otherwise the CI will fail
  • I moved the ISP implementation to a point before it was referenced, to keep the example simple and make it easier to reuse

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant