Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
thk_ir_receiver
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
thk_libs
microcontrollers
thk_ir_receiver
Commits
9890296f
Commit
9890296f
authored
3 years ago
by
Orhan-Timo Altan
Browse files
Options
Downloads
Patches
Plain Diff
.
parent
e35d444e
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
BITsIRReciver.h
+30
-30
30 additions, 30 deletions
BITsIRReciver.h
with
30 additions
and
30 deletions
BITsIRReciver.h
+
30
−
30
View file @
9890296f
#ifndef BITSIIRRECIVER_H
#ifndef BITSIIRRECIVER_H
#define BITSIIRRECIVER_H
#define BITSIIRRECIVER_H
/* ********************************************** *
/* **********************************************
*******
*
* IR Remote *
* IR Remote *
* *
* *
* Button | Signal Kodierung *
* Button | Signal Kodierung
| Index
*
* ---------------------------------------------- *
* ----------------------------------------------
-------
*
* Power Button | 69 *
* Power Button | 69
| 0
*
* VOL+ Button | 70 *
* VOL+ Button | 70
| 1
*
* Func Button | 71 *
* Func Button | 71
| 2
*
* Rewind Button | 68 *
* Rewind Button | 68
| 3
*
* Play/Pause Button | 64 *
* Play/Pause Button | 64
| 4
*
* Forward Button | 67 *
* Forward Button | 67
| 5
*
* Down Button | 7 *
* Down Button | 7
| 6
*
* VOL- Button | 21 *
* VOL- Button | 21
| 7
*
* UP Button | 9 *
* UP Button | 9
| 8
*
* 0 Button | 22 *
* 0 Button | 22
| 9
*
* EQ Button | 25 *
* EQ Button | 25
| 10
*
* ST/REPT Button | 13 *
* ST/REPT Button | 13
| 11
*
* 1 Button | 12 *
* 1 Button | 12
| 12
*
* 2 Button | 24 *
* 2 Button | 24
| 13
*
* 3 Button | 94 *
* 3 Button | 94
| 14
*
* 4 Button | 8 *
* 4 Button | 8
| 15
*
* 5 Button | 28 *
* 5 Button | 28
| 16
*
* 6 Button | 90 *
* 6 Button | 90
| 17
*
* 7 Button | 66 *
* 7 Button | 66
| 18
*
* 8 Button | 82 *
* 8 Button | 82
| 19
*
* 9 Button | 74 *
* 9 Button | 74
| 20
*
* ********************************************** */
* **********************************************
*******
*/
#include
<IRremote.h>
#include
<IRremote.h>
// #define IR_USE_AVR_TIMER3
// #define IR_USE_AVR_TIMER3
const
int
irReceiverPin
=
2
;
const
int
irReceiverPin
=
46
;
IRrecv
irrecv
(
irReceiverPin
);
IRrecv
irrecv
(
irReceiverPin
);
decode_results
results
;
decode_results
results
;
// Liste von oben nach unten sortiert
// Liste von oben nach unten sortiert
int
commandlist
[
2
1
]
=
{
69
,
70
,
71
,
68
,
64
,
67
,
7
,
21
,
9
,
22
,
25
,
13
,
12
,
24
,
94
,
8
,
28
,
90
,
66
,
82
,
74
};
int
commandlist
[
2
2
]
=
{
0
,
69
,
70
,
71
,
68
,
64
,
67
,
7
,
21
,
9
,
22
,
25
,
13
,
12
,
24
,
94
,
8
,
28
,
90
,
66
,
82
,
74
};
class
BITsIRReciver
{
class
BITsIRReciver
{
public:
public:
...
@@ -50,7 +50,7 @@ class BITsIRReciver{
...
@@ -50,7 +50,7 @@ class BITsIRReciver{
ir_command
=
irrecv
.
decodedIRData
.
command
;
ir_command
=
irrecv
.
decodedIRData
.
command
;
// Receive the next value
// Receive the next value
irrecv
.
resume
();
irrecv
.
resume
();
for
(
int
i
=
0
;
i
<
2
1
;
i
++
)
{
for
(
int
i
=
0
;
i
<
2
2
;
i
++
)
{
if
(
ir_command
==
commandlist
[
i
])
{
if
(
ir_command
==
commandlist
[
i
])
{
ir_command_pos
=
i
;
ir_command_pos
=
i
;
break
;
break
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment