Skip to content

Adding UNDEFINED pin status#229

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

Open
wants to merge 4 commits into
base:master
Choose a base branch
from
Open

Conversation

isidromv
Copy link

I'm new to Arduino and as an exercise I'm working on a class encapsulating a digital input. The corresponding read() method returns a PinStatus. Normally it is LOW or HIGH, but an UNDEFINED status is usefull if the corresponding object has not yet been initialised (i.e. the init() method has not been called, which in turn calls pinMode(INPUT)).

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.53%. Comparing base (0c853c5) to head (e7558bd).

Additional details and impacted files
@@ Coverage Diff @@## master #229 +/- ## ======================================= Coverage 95.53% 95.53% ======================================= Files 16 16 Lines 1075 1075 ======================================= Hits 1027 1027 Misses 48 48 

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3 participants
@isidromv@codecov-commenter@per1234
close