| 43 | |
| 44 | private: |
| 45 | bool Read_Internal() { |
| 46 | // Toggle the pin back to INPUT and take a reading. |
| 47 | pinMode(mPin, INPUT); |
| 48 | bool on = (digitalRead(mPin) == HIGH); |
| 49 | // Switch the pin back to output so that we can enable the |
| 50 | // pulldown resister. |
| 51 | pinMode(mPin, OUTPUT); |
| 52 | digitalWrite(mPin, LOW); |
| 53 | return on; |
| 54 | } |
| 55 | |
| 56 | |
| 57 | int mPin; |
nothing calls this directly
no test coverage detected