OLD | NEW |
1 // Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
4 | 4 |
5 /// GPIO support providing access to controlling GPIO pins. | 5 /// GPIO support providing access to controlling GPIO pins. |
6 /// | 6 /// |
7 /// Currently this has only been tested with a Raspberry Pi 2. | 7 /// Currently this has only been tested with a Raspberry Pi 2. |
8 /// | 8 /// |
9 /// Access types | 9 /// Access types |
10 /// ------------ | 10 /// ------------ |
11 /// The library provide two ways of accessing the GPIO pins: direct access or | 11 /// The library provide two ways of accessing the GPIO pins: direct access or |
(...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
386 /// Exception message. | 386 /// Exception message. |
387 final String message; | 387 final String message; |
388 /// OS error number if any. | 388 /// OS error number if any. |
389 final int errno; | 389 final int errno; |
390 const GPIOException(this.message, [this.errno]); | 390 const GPIOException(this.message, [this.errno]); |
391 String toString() { | 391 String toString() { |
392 if (errno == null) return message; | 392 if (errno == null) return message; |
393 return '$message (error ${errno})'; | 393 return '$message (error ${errno})'; |
394 } | 394 } |
395 } | 395 } |
OLD | NEW |