ads1115 only
Fork of mbed by
Diff: InterruptIn.h
- Revision:
- 123:b0220dba8be7
- Parent:
- 122:f9eeca106725
--- a/InterruptIn.h Thu Jul 07 14:34:11 2016 +0100 +++ b/InterruptIn.h Fri Aug 12 13:04:35 2016 +0200 @@ -65,11 +65,18 @@ InterruptIn(PinName pin); virtual ~InterruptIn(); - int read(); -#ifdef MBED_OPERATORS + /** Read the input, represented as 0 or 1 (int) + * + * @returns + * An integer representing the state of the input pin, + * 0 for logical 0, 1 for logical 1 + */ + int read(); + + /** An operator shorthand for read() + */ operator int(); -#endif /** Attach a function to call when a rising edge occurs on the input *