| 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 /// API for accessing the devices on the Raspberry Pi Sense HAT add-on board. | 5 /// API for accessing the devices on the Raspberry Pi Sense HAT add-on board. |
| 6 /// See: https://www.raspberrypi.org/products/sense-hat/. | 6 /// See: https://www.raspberrypi.org/products/sense-hat/. |
| 7 /// | 7 /// |
| 8 /// Currently this has only been tested with a Raspberry Pi 2 and the Sense HAT. | 8 /// Currently this has only been tested with a Raspberry Pi 2 and the Sense HAT. |
| 9 /// | 9 /// |
| 10 /// The following sample code show how to access the devices on the Raspberry Pi | 10 /// The following sample code show how to access the devices on the Raspberry Pi |
| 11 /// Sense HAT. | 11 /// Sense HAT. |
| (...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 220 | 220 |
| 221 /// Read the current gyroscope measurement. | 221 /// Read the current gyroscope measurement. |
| 222 GyroMeasurement readGyro() => _lsm9ds1.readGyro(); | 222 GyroMeasurement readGyro() => _lsm9ds1.readGyro(); |
| 223 | 223 |
| 224 /// Read the current accelerometer measurement. | 224 /// Read the current accelerometer measurement. |
| 225 AccelMeasurement readAccel() => _lsm9ds1.readAccel(); | 225 AccelMeasurement readAccel() => _lsm9ds1.readAccel(); |
| 226 | 226 |
| 227 /// Read the current magnetometer measurement. | 227 /// Read the current magnetometer measurement. |
| 228 MagnetMeasurement readMagnet() => _lsm9ds1.readMagnet(); | 228 MagnetMeasurement readMagnet() => _lsm9ds1.readMagnet(); |
| 229 } | 229 } |
| OLD | NEW |