Home
last modified time | relevance | path

Searched refs:LED (Results 1 – 25 of 40) sorted by relevance

12

/ohos5.0/docs/zh-cn/device-dev/subsystems/
H A Dsubsys-power-level-LED-color.md1 # 电量与LED灯颜色的定制开发指导
7 …mony默认提供了电量与LED灯颜色的映射关系。对于部分产品形态(如Pad),会使用LED灯的颜色来展示当前设备充电时的电量信息,如高电量使用绿色、低电量黄色、极低电量使用红色。这种电量与LED灯…
69 **表2** 电量区间与LED灯颜色映射配置说明
74 | rgb | LED灯RGB组合 |
131 3. 以默认的电量与LED灯颜色的映射配置数据为例,修改电量数值,模拟电池信息上报,并观察LED亮灯颜色变化。
137 2. 上报电量信息改变,触发LED灯映射
147 4. 上报电量信息改变,触发LED灯映射
157 6. 上报电量信息改变,触发LED灯映射
187 2. 上报电量信息改变,触发LED灯映射
197 4. 上报电量信息改变,触发LED灯映射
[all …]
H A DReadme-CN.md132 - [电量与LED灯颜色的定制开发指导](subsys-power-level-LED-color.md)
/ohos5.0/docs/zh-cn/device-dev/guide/
H A Ddevice-wlan-led-control.md1 # LED外设控制<a name="ZH-CN_TOPIC_0000001054530966"></a>
6 …、ADC、UART、SPI、SDIO、GPIO、PWM、FLASH等。本文介绍如何通过调用OpenHarmony的NDK接口,实现对GPIO控制,达到LED闪烁的效果。其他的IOT外设控制,开发者…
12 LED控制参考示例存放于applications/sample/wifi-iot/app/iothardware/led\_example.c文件中。
14 2. 实现IOT外设控制,首先需要通过查阅原理图明确接线关系。经过查阅,hispark pegasus的LED与芯片的9号管脚相连。
23 3. 使用GPIO前,需要完成GPIO管脚初始化,明确管脚用途,并创建任务,使LED周期性亮灭,达到闪烁的效果。
50 4. 在循环任务中通过周期性亮灭形式实现LED闪烁。
102 完成以上两步后,按下RST键复位模组,可发现LED在周期性闪烁,与预期相符,验证完毕。
104 **图 1** LED闪烁图<a name="fig20768175218527"></a>
105 ![](figures/LED闪烁图.gif "LED闪烁图")
H A DReadme-CN.md5 - [LED外设控制](device-wlan-led-control.md)
/ohos5.0/docs/en/device-dev/subsystems/
H A Dsubsys-power-level-LED-color.md1 # Battery Level and LED Color Mapping Customization
7LED color mapping by default. Some products, tablets for example, may use LED colors to display th…
69 **Table 2** Configuration items for the battery level range and LED color
74 | rgb | LED RGB combination|
137 2. Report the battery power change to trigger the LED mapping.
147 4. Report the battery power change to trigger the LED mapping.
157 6. Report the battery power change to trigger the LED mapping.
163 4. Customize the battery level and LED color mapping configuration. For example:
187 2. Report the battery power change to trigger the LED mapping.
197 4. Report the battery power change to trigger the LED mapping.
[all …]
H A DReadme-EN.md131 - [Battery Level and LED Color Mapping Customization](subsys-power-level-LED-color.md)
/ohos5.0/docs/en/device-dev/guide/
H A Ddevice-wlan-led-control.md1 # LED Peripheral Control<a name="EN-US_TOPIC_0000001054530966"></a>
5 …ling the OpenHarmony native development kit \(NDK\) interface to implement LED blinking. For detai…
11LED control examples are stored in the file **applications/sample/wifi-iot/app/iothardware/led\_ex…
13 …ring to the schematic diagram of the development board. You can learn that LED of hispark pegasus …
23 …y the pin usage, and create a task that turns on or off the LED periodically to implement LED blin…
50 4. Use a cyclic task in which the LED periodically turns on and off to implement LED blinking.
102 …o steps are complete, press the **RST** button to reset the module. If the LED blinks periodically…
104 **Figure 1** LED blinking<a name="fig20768175218527"></a>
H A DReadme-EN.md5 - [LED Peripheral Control](device-wlan-led-control.md)
/ohos5.0/docs/en/application-dev/reference/apis-sensor-service-kit/
H A Djs-apis-system-vibrate.md3 …vides APIs for controlling LED lights and vibrators. You can use the APIs to query the LED light l…
5 Misc devices refer to LED lights and vibrators on devices. LED lights are mainly used for indicatio…
/ohos5.0/base/sensors/miscdevice_lite/
H A DREADME_zh.md8 小器件是指用于向外传递信号的设备,包括马达和LED灯,本组件对开发者提供控制马达振动和LED灯开关的能力。
H A DREADME.md8 …and LED lights, are used to send signals externally. You can call APIs to control the vibration of…
/ohos5.0/docs/zh-cn/application-dev/reference/apis-sensor-service-kit/
H A Djs-apis-system-vibrate.md5 控制类小器件指的是设备上的LED灯和振动器。其中,LED灯主要用作指示(如充电状态)、闪烁功能(如三色灯)等;振动器主要用于闹钟、开关机振动、来电振动等场景。
/ohos5.0/docs/zh-cn/device-dev/reference/hdi-apis/input/
H A D_dev_ability_v10.md33 | unsigned long[] [ledType](#ledtype) | LED类型的位图 |
118 LED类型的位图
/ohos5.0/base/sensors/miscdevice/utils/common/include/
H A Dmiscdevice_common.h35 enum class MiscdeviceDeviceId { LED = 0, VIBRATOR, UNKNOWN }; enumerator
/ohos5.0/docs/zh-cn/device-dev/quick-start/
H A Dquickstart-appendix-hi3516.md20 …(Type&nbsp;C)<br/>&nbsp;&nbsp;-&nbsp;功能按键3个,2个用户自定义按键,1个升级按键<br/>&nbsp;&nbsp;-&nbsp;LED指示灯,绿灯,红灯 |
H A Dquickstart-appendix-rk3568.md36 | 三色灯 | 3×LED |
H A Dquickstart-pkg-3861-running.md118 - [LED外设控制](../guide/device-wlan-led-control.md)
H A Dquickstart-ide-3861-running.md124 - [LED外设控制](https://gitee.com/openharmony/docs/blob/master/zh-cn/device-dev/guide/device-wlan-led-c…
/ohos5.0/docs/en/device-dev/quick-start/
H A Dquickstart-appendix-hi3516.md20 … - Three function keys, two user-defined keys, and one upgrade key<br> - LED indicator, green or…
H A Dquickstart-appendix-rk3568.md36 | Tri-color indicator| 3 x LED |
/ohos5.0/docs/zh-cn/
H A DOpenHarmony-Overview_zh.md122 …r中包含传感器和小器件,传感器用于侦测环境中所发生事件或变化,并将此消息发送至其他电子设备,小器件用于向外传递信号的设备,包括马达和LED灯,对开发者提供控制马达振动和LED灯开关的能力。 | 小…
/ohos5.0/base/sensors/miscdevice/
H A DREADME.md14 …d LED indicators, are used to send signals externally. You can call APIs to control the vibration …
32 … which is used to control the vibration of vibrators and lighting-on and lighting-off of LED lights
H A DREADME_zh.md14 小器件是指用于向外传递信号的设备,包括马达和LED灯,本组件对开发者提供控制马达振动和LED灯开关的能力,其架构图如下所示:
/ohos5.0/docs/zh-cn/device-dev/porting/
H A Dporting-asr582x-combo-demo.md381 3. 在`//device/board/lango/hcs`添加gpio硬件描述信息文件gpio.hcs, 映射后的gpio0控制板卡上的可编程LED,gpio1对应用户按键,hcs内容如下:
399 4. gpio.hcs的配置信息会在GpioDriverInit进行加载,并执行对应GPIO引脚的初始化。应用层控制LED灯和读取按键信息只需要以下简单的代码:
/ohos5.0/drivers/interface/input/v1_0/
H A DInputTypes.idl107 unsigned long[] ledType; /**< Bitmap of the LED type */

12