创客百科

姿势共享,有节操无门槛参与的创客百科,创客动力之源 \ (^_^) /

用户工具

站点工具


arduino:libraries:irremote_decode

irrecv.decode(&results)

描述

尝试接收红外编码。如果编码接收成功则返回True,如果没有接收则返回False。当编码被成功接收后,有关信息会保存在“results”中。

语法

irrecv.decode(&results);

参数

无。

返回值

True或者False

例子

请跳转IRrecv()

注释

“results”中的数据 results.decode_type: 返回列表中协议类型的一种: NEC, SONY, RC5, RC6, 或者 UNKNOWN。 results.value: 实际的红外编码 (如果类型是UNKNOWN则返回0) 。 results.bits: 返回的红外编码所占用的位数。 results.rawbuf: 保存红外脉冲时长的数组。 results.rawlen: 保存在数组中时长的数量。

返回IRremote目录

本页面的其他翻译:
arduino/libraries/irremote_decode.txt · 最后更改: 2016/12/25 22:15 (外部编辑)