tingpan

生命不息,折腾不止!
  首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2015年4月26日

摘要: IDE:Arduino 1.0.4 一、线路连接 S-Y ——> P5(A0) S-X ——> P2(A1) S-K ——> P0 VCC ——> VCC GND ——> GND 二、Arduino代码 //from A0 start,the max is 1023 ,the max Vol is 5V //A0 ==> P5 //from 470 begin ,less this can't ... 阅读全文

posted @ 2015-04-26 22:02 tingpan 阅读(1965) 评论(0) 推荐(0) 编辑

摘要: 一、红外协议之NEC协议原理 NEC协议格式: 首次发送的是9ms的高电平脉冲,其后是4.5ms的低电平,接下来就是8bit的地址码(从低有效位开始发),而后是8bit的地址码的反码(主要是用于校验是否出错)。然后是8bit 的命令码(也是从低有效位开始发),而后也是8bit 的命令码的反码。 /* 阅读全文

posted @ 2015-04-26 02:03 tingpan 阅读(1082) 评论(0) 推荐(0) 编辑