“IRsend.sendMedia()”的版本间的差异

来自Microduino Wikipedia
跳转至: 导航搜索
(创建页面,内容为“<br> <p style="color: #666666;font-size:220%">'''IRrecv.decode(*results)'''</p> <br> <p style="color: #E87E05;font-size:135%">'''作用'''</p> 判断是否接收到…”)
 
第1行: 第1行:
 
<br>
 
<br>
<p style="color: #666666;font-size:220%">'''IRrecv.decode(*results)'''</p>
+
<p style="color: #666666;font-size:220%">'''IRsend.sendMedia(*data, length)'''</p>
 
<br>
 
<br>
  
 
<p style="color: #E87E05;font-size:135%">'''作用'''</p>
 
<p style="color: #E87E05;font-size:135%">'''作用'''</p>
判断是否接收到正确的红外信号,如果接收到,将红外信号进行解码,结果给results,results为decode_results类的实例化,具体使用方法可见以下示例
+
发送编码格式为Media的红外数据
  
  
 
<p style="color: #E87E05;font-size:135%">'''参数'''</p>
 
<p style="color: #E87E05;font-size:135%">'''参数'''</p>
&results:解码后的红外信号值
+
data:数据数组(unsigned char)
 
+
length:数组长度(int)
  
 
<p style="color: #E87E05;font-size:135%">'''返回值'''</p>
 
<p style="color: #E87E05;font-size:135%">'''返回值'''</p>
返回值是否解码成功标志位,解码成功返回1,否则0
+
  
  
第38行: 第38行:
  
 
【[[IRsend.sendRC6()|sendRC6()]]】
 
【[[IRsend.sendRC6()|sendRC6()]]】
 
【[[IRsend.enableIROut()|enableIROut()]]】
 
  
  

2017年12月14日 (四) 12:04的版本


IRsend.sendMedia(*data, length)


作用

发送编码格式为Media的红外数据


参数

data:数据数组(unsigned char) length:数组长度(int)

返回值


示例

#include <IRremote.h>

IRsend irsend;


其他

IRsend()

sendMedia()

sendNEC()

sendSony()

sendRaw()

sendRC5()

sendRC6()



返回IR_Sensor_Reference页面