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
a606c903
Commit
a606c903
authored
3 years ago
by
Orhan-Timo Altan
Browse files
Options
Downloads
Patches
Plain Diff
.
parent
56f89f34
No related branches found
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
BITsIRReciver.h
+5
-2
5 additions, 2 deletions
BITsIRReciver.h
README.md
+2
-2
2 additions, 2 deletions
README.md
customized_library.zip
+0
-0
0 additions, 0 deletions
customized_library.zip
examples/IRReciver/IRReciver.ino
+2
-2
2 additions, 2 deletions
examples/IRReciver/IRReciver.ino
with
9 additions
and
6 deletions
BITsIRReciver.h
+
5
−
2
View file @
a606c903
...
@@ -30,12 +30,14 @@
...
@@ -30,12 +30,14 @@
* ****************************************** */
* ****************************************** */
#define IR_USE_AVR_TIMER3
#define IR_USE_AVR_TIMER3
#include
<IRremote.h>
#include
<IRremote.h>
IRrecv
ir_reciver
(
IR_PIN
);
decode_results
results
;
class
BitsIrReciver
class
BitsIrReciver
{
{
public:
public:
BitsIrReciver
(
int
aPin
){
IRrecv
ir_reciver
(
aPin
);
};
void
begin
()
void
begin
()
{
{
ir_reciver
.
enableIRIn
();
ir_reciver
.
enableIRIn
();
...
@@ -56,6 +58,7 @@ public:
...
@@ -56,6 +58,7 @@ public:
};
};
private
:
private
:
IRrecv
ir_reciver
;
int
ir_command
;
int
ir_command
;
};
};
...
...
This diff is collapsed.
Click to expand it.
README.md
+
2
−
2
View file @
a606c903
...
@@ -19,7 +19,7 @@ Sie dient als erleichterte Bedienung der IRRemote.h Bibliothek.
...
@@ -19,7 +19,7 @@ Sie dient als erleichterte Bedienung der IRRemote.h Bibliothek.
## **Voraussetzung**
## **Voraussetzung**
-
Die angepasste
IR
R
emote
Bibliothek in der
**customized_library.zip**
muss in das Libraries-Verzeichnis der Arduino-IDE kopiert werden.
-
[
IR
r
emote
](
https://github.com/Arduino-IRremote/Arduino-IRremote
)
by shirriff
## **Installation**
## **Installation**
...
@@ -35,7 +35,7 @@ Zur Verwendung siehe zunächst das Beispiel `IRReciver.ino`
...
@@ -35,7 +35,7 @@ Zur Verwendung siehe zunächst das Beispiel `IRReciver.ino`
**Instanziieren:**
**Instanziieren:**
`BitsIrReciver ir_sensor;`
`BitsIrReciver ir_sensor
(IR_PIN)
;`
**Aufrufen der Methoden:**
**Aufrufen der Methoden:**
-
Um den IR-Empfänger zu initialisieren wird folgende Methode im
`void setup()`
ausgeführt:
`ir_sensor.begin()`
-
Um den IR-Empfänger zu initialisieren wird folgende Methode im
`void setup()`
ausgeführt:
`ir_sensor.begin()`
...
...
This diff is collapsed.
Click to expand it.
customized_library.zip
deleted
100644 → 0
+
0
−
0
View file @
56f89f34
File deleted
This diff is collapsed.
Click to expand it.
examples/IRReciver/IRReciver.ino
+
2
−
2
View file @
a606c903
#define IR_PIN 46
#include
"BITsIRReciver.h"
#include
"BITsIRReciver.h"
BitsIrReciver
ir_sensor
;
#define IR_PIN 46
BitsIrReciver
ir_sensor
(
IR_PIN
);
int
command
;
int
command
;
void
setup
(){
void
setup
(){
...
...
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