Skip to content
This repository has been archived by the owner on Jan 9, 2022. It is now read-only.

Grove IR Blockが限定的な仕様になっている #26

Open
okhiroyuki opened this issue Jul 18, 2016 · 0 comments
Open

Grove IR Blockが限定的な仕様になっている #26

okhiroyuki opened this issue Jul 18, 2016 · 0 comments
Assignees
Labels

Comments

@okhiroyuki
Copy link
Collaborator

赤外線通信で受信したデータがdta[6]となり、限定的な仕様になっている。

#include <IRSendRev.h>
unsigned char dta[20];
void setup()
{
  IR.Init(2);
  Serial.begin(9600);
}

void loop()
{
  if (IR.IsDta()) {
    IR.Recv(dta);
    for (int count = 0; count < 10; count++) {
      Serial.print(dta[6]);
    }
    Serial.println("");
  }
}
<xml xmlns="http://www.w3.org/1999/xhtml"><block type="grove_ir_receiver_init" id="8" x="88" y="63"><field name="PIN">2</field><next><block type="controls_if" id="36" inline="false"><value name="IF0"><block type="grove_ir_receiver_check_data" id="23"></block></value><statement name="DO0"><block type="grove_ir_receiver_receive" id="44"><next><block type="controls_repeat" id="81"><field name="TIMES">10</field><statement name="DO"><block type="serial_print" id="102" inline="false"><value name="CONTENT"><block type="grove_ir_receiver_data" id="52"></block></value></block></statement><next><block type="serial_println" id="65" inline="false"><value name="CONTENT"><block type="text" id="87"><field name="TEXT"></field></block></value></block></next></block></next></block></statement></block></next></block></xml>
@okhiroyuki okhiroyuki added the bug label Jul 18, 2016
@okhiroyuki okhiroyuki self-assigned this Jul 18, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant