Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add USB charger detection #29

Open
BaptisteHudyma opened this issue Nov 2, 2024 · 1 comment
Open

Add USB charger detection #29

BaptisteHudyma opened this issue Nov 2, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@BaptisteHudyma
Copy link
Owner

The board shall be able to detect when a charge cable that is plugged in is wired to a charger.

The USB documentation notes that in this case, D+ & D- will be tied togethers, and a 1.5A current will be available.
We must check if this is true on proprietary chargeurs.

The state of CC1 CC2 pins can also give a clue.

@BaptisteHudyma BaptisteHudyma added enhancement New feature or request good first issue Good for newcomers labels Nov 2, 2024
@BaptisteHudyma
Copy link
Owner Author

The CC part was done in #24.
The detection of legacy USB A charger (BC1 protocol) is maybe not possible with the current hardware.

This issue should be left open until BC1 is supported.

@BaptisteHudyma BaptisteHudyma self-assigned this Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant