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

Split read and sample functions #6

Merged
merged 9 commits into from
Jan 12, 2025
Merged

Conversation

gfurtadoalmeida
Copy link
Owner

Function Split

Before there were just mcp320x_read* functions with a sample_count parameter to control the sampling.
Now the mcp320x_read* functions just do one read, and for sampling the mcp320x_sample* functions were created.
This change makes clear the intent of each function.

Conversion Refactoring

The data conversion on read and write were refactored and are a bit easier to understand.

@gfurtadoalmeida gfurtadoalmeida linked an issue Jan 10, 2025 that may be closed by this pull request
@gfurtadoalmeida gfurtadoalmeida added the enhancement New feature or request label Jan 10, 2025
@gfurtadoalmeida gfurtadoalmeida merged commit 0ba813e into master Jan 12, 2025
1 check passed
@gfurtadoalmeida gfurtadoalmeida deleted the fast-simple-read branch January 12, 2025 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The sampling rate of MCP3208 read is less than 100 Hz
1 participant