| 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 /// I2C support for Linux. | 5 /// I2C support for Linux. |
| 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 /// Usage | 9 /// Usage |
| 10 /// ----- | 10 /// ----- |
| 11 /// The following sample code shows how to access the HTS221 humidity and | 11 /// The following sample code shows how to access the HTS221 humidity and |
| (...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 302 } finally { | 302 } finally { |
| 303 data.free(); | 303 data.free(); |
| 304 } | 304 } |
| 305 } | 305 } |
| 306 | 306 |
| 307 // Close the connection to the I2C bus freeing up system resources. | 307 // Close the connection to the I2C bus freeing up system resources. |
| 308 void close() { | 308 void close() { |
| 309 _close.icall$1Retry(_fd); | 309 _close.icall$1Retry(_fd); |
| 310 } | 310 } |
| 311 } | 311 } |
| OLD | NEW |