极客工坊

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 9128|回复: 0

新手学习 ,遇到的问题?谢谢~~

[复制链接]
发表于 2013-4-4 13:30:46 | 显示全部楼层 |阅读模式
学习中有些语句看不懂,麻烦各位指点,关于红外线接收的例子:
1.void dump(decode_results *results) //括号里面的语句什么意思?
{
  int count = results->rawlen;//表达式表示什么意思?
  if (results->decode_type == UNKNOWN) //results->decode_typ什么意思?
2.for (int i = 0; i < count; i++)
     {
      if ((i % 2) == 1) {
      Serial.print(results->rawbuf[i]*USECPERTICK, DEC);//(results->rawbuf[i]*USECPERTICK这个表达式看不懂
     }
3.if (millis() - last > 250)
      {
       on = !on;//什么意思
//       digitalWrite(8, on ? HIGH : LOW); //什么意思
       digitalWrite(13, on ? HIGH : LOW); //什么意思
       dump(&results); //什么意思?
      }
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|联系我们|极客工坊

GMT+8, 2026-6-5 02:42 , Processed in 0.034994 second(s), 17 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表