| Name | Date | Size | #Lines | LOC | ||
|---|---|---|---|---|---|---|
| .. | - | - | ||||
| AppScope/ | 12-May-2024 | - | 36 | 33 | ||
| entry/ | 12-May-2024 | - | 726 | 655 | ||
| screenshots/device/ | 12-May-2024 | - | ||||
| .gitignore | D | 12-May-2024 | 121 | 10 | 10 | |
| README.md | D | 12-May-2024 | 512 | 16 | 8 | |
| README_zh.md | D | 12-May-2024 | 849 | 33 | 17 | |
| build-profile.json5 | D | 12-May-2024 | 1 KiB | 42 | 41 | |
| hvigorfile.ts | D | 12-May-2024 | 158 | 2 | 1 | |
| package.json | D | 12-May-2024 | 369 | 18 | 18 |
README.md
1# Device Management - Sensor 2 3### Introduction 4 5This sample uses the orientation sensor APIs to implement the compass effect. 6 7### Usage 8 9When you rotate your device, the compass pointer rotates with it. The rotation angle for true north is displayed in the lower part of the home screen of the sample app. 10 11### Constraints 12 13After opening the sample app, you need to make a figure 8 until the compass is calibrated. 14 15This sample can only be run on standard-system devices. (Currently, only wagner is supported.) 16
README_zh.md
1# 传感器 2 3### 介绍 4 5本示例使用@ohos.sensor中的方向传感器相关接口,实现指南针的功能。 6 7使用说明 8 9转动设备,指针跟随转动,转动的角度为偏离正北方的角度,并在界面下方显示。 10 11### 效果预览 12 13 14 15### 相关权限 16 17[ohos.permission.VIBRATE](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/security/permission-list.md) 18 19### 依赖 20 21不涉及。 22 23### 约束与限制 24 251.打开应用后需要对传感器进行画8校准。 26 272.本示例仅支持在标准系统上运行。 28 293.本示例需要使用DevEco Studio 3.1 Canary1 (Build Version: 3.1.0.100)及以上才可编译运行。 30 314.本示例需要特殊模块与特定传感器,目前该功能仅支持部分机型。 32 335.本示例仅支持API9版本SDK,版本号:3.2.10.6。