Skip to content

Adding UNDEFINED pin status#229

Open
isidromv wants to merge 4 commits intoarduino:masterfrom
isidromv:master
Open

Adding UNDEFINED pin status#229
isidromv wants to merge 4 commits intoarduino:masterfrom
isidromv:master

Conversation

@isidromv
Copy link

@isidromv isidromv commented Apr 1, 2024

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.

@CLAassistant
Copy link

CLAassistant commented Mar 18, 2026

CLA assistant check
All committers have signed the CLA.

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants