25/06/2015
?
1
#include <IRremote.h>
2
int
RECV_PIN = 11;
3
IRrecv irrecv(RECV_PIN);
4
decode_results results;
5
int
currentNumber = 0;
6
7
long
codes[12]= // this array is used to store infrared codes
8
{
9
0xFD30CF,0xFD08F7, // 0 ,1
10
0xFD8877,0xFD48B7, // 2 ,3
11
0xFD28D7,0xFDA857, // 4 ,5
12
0xFD6897,0xFD18E7, // 6 ,7
13
0xFD9867,0xFD58A7, // 8 ,9
14
0xFD20DF,0xFD609F, // advance, move back
15
};
16
17
int
number[10][8] = //the array is used to store the number 0~9
18
{
19
{0,0,0,1,0,0,0,1},//0
20
{0,1,1,1,1,1,0,1},//1
21
{0,0,1,0,0,0,1,1},//2
22
{0,0,1,0,1,0,0,1},//3
23
{0,1,0,0,1,1,0,1},//4
http://www.dfrobot.com/wiki/index.php/DFRduino_Beginner_Kit_For_Arduino_V3_SKU:DFR0100
DFRduino Beginner Kit For Arduino V3 SKU:DFR0100 Robot Wiki
21/23
Need help?
Do you have a question about the DFR0100 and is the answer not in the manual?
Questions and answers