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 a bit of logging to analogIO + fix PicoW #610

Merged
merged 3 commits into from
Aug 14, 2024
Merged

Conversation

tyeth
Copy link
Contributor

@tyeth tyeth commented Jul 30, 2024

This is a draft to generate some build assets. It still needs reviewing, and the logging removed.

@tyeth tyeth marked this pull request as ready for review August 14, 2024 11:41
@tyeth tyeth requested a review from brentru August 14, 2024 11:41
@tyeth
Copy link
Contributor Author

tyeth commented Aug 14, 2024

@brentru this is ready for review.
We've just had a second forum post on this issue so worth slipping into next release (before or with the C6).

@tyeth tyeth force-pushed the analogIO-scaling-picow branch from 67fce1c to 91b4984 Compare August 14, 2024 12:17
#elif defined(ARDUINO_ARCH_RP2040)
scaleAnalogRead = true;
_nativeResolution = 10;
#else
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really good catch here for undef'd architecture edge case, nice find!

Comment on lines 214 to 217
WS_DEBUG_PRINT("Analog Pin (#");
WS_DEBUG_PRINT(pin);
WS_DEBUG_PRINT(") read: ");
WS_DEBUG_PRINTLN(value);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume this is for debugging, make sure to remove this before merging.

@tyeth tyeth merged commit 12ea607 into main Aug 14, 2024
31 checks passed
@tyeth tyeth deleted the analogIO-scaling-picow branch August 14, 2024 16:00
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.

2 participants