Loading...
Welcome,
Guest
. Please
login
or
register
.
June 18, 2013, 06:32:17 pm
|
Arduino Forum
::
Using Arduino
::
Programming Questions
:: Library
« previous topic
next topic »
Pages: [
1
]
Go Down
Print
Author
Topic: Library (Read 491 times)
0 Members and 1 Guest are viewing this topic.
Jack
0
Offline
Newbie
Karma: 0
Posts: 8
Arduino rocks
Library
«
on:
February 03, 2011, 03:36:06 am »
Bigger
Smaller
Reset
Hallo.
How can i the
IRremote.h
file put in the Arduino-library so i can use this program?
Thanks,
Jack.
=========================================================================================
#include <IRremote.h>
int RECV_PIN = 11;
IRrecv irrecv(RECV_PIN);
decode_results results;
void setup()
{
Serial.begin(9600);
irrecv.enableIRIn(); // Start the receiver
}
void loop() {
if (irrecv.decode(&results)) {
Serial.println(results.value, HEX);
irrecv.resume(); // Receive the next value
}
}
=====================================================================================
Logged
giantsfan3
Portland, OR
Offline
Full Member
Karma: 5
Posts: 240
Re: Library
«
Reply #1 on:
February 03, 2011, 05:29:21 am »
Bigger
Smaller
Reset
you have the "IRemote.h" and "IRemote.cpp" files already, right?
just copy them to the arduino libraries folder as follows:
Make an "IRemote" directory inside of the "libraries" sub-directory of your sketchbook directory.
Copy IRemote.h and IRemote.cpp files into that directory.
Open Arduino.
Go to the Sketch >> Import Library menu, you should see IRemote inside, select it. The library will be compiled.
Logged
Jack
0
Offline
Newbie
Karma: 0
Posts: 8
Arduino rocks
Re: Library
«
Reply #2 on:
February 03, 2011, 09:38:01 am »
Bigger
Smaller
Reset
Hallo giantsfan3.
Thanks for the reply.
I have the "IRemote.h" and a "IRemoteInt.h" but no "IRemote.cpp"file.
Can i make this "IRemote.cpp" file with a C++ program and what is in this file?
Can i copy the "IRemote.h" or my RC5 program in this new file?
Jack.
Logged
davekw7x
Left Coast, USA
Offline
Sr. Member
Karma: 4
Posts: 499
Sometimes I just can't help myself.
Re: Library
«
Reply #3 on:
February 03, 2011, 10:18:58 am »
Bigger
Smaller
Reset
Here's the drill, starting from scratch:
Download
IRremote.zip
from
Ken Sharriff's blog
web site.
Put
IRremote.zip
in the
libraries
subdirectory of your
sketchbook
directory and unzip it. This creates the directories that hold the library files and the examples of the
IRremote
library.
Start Arduino.
Look at the examples in the
IRremote
library. Compile them. See how it goes.
When you write your own sketch, use the
Sketch->Import Library
menu and select
IRremote
to let your sketch use the
IRremote
functions. Note that, actually, there are two library headers that are #included.
Regards,
Dave
«
Last Edit: February 03, 2011, 10:27:58 am by davekw7x
»
Logged
Jack
0
Offline
Newbie
Karma: 0
Posts: 8
Arduino rocks
Re: Library
«
Reply #4 on:
February 03, 2011, 11:57:45 am »
Bigger
Smaller
Reset
Hi davekw7x.
Thanks for your answer.
It seems to work.
Best regards,
Jack.
Logged
Pages: [
1
]
Go Up
Print
« previous topic
next topic »
|
Arduino Forum
::
Using Arduino
::
Programming Questions
:: Library
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> General Discussion
-----------------------------
Using Arduino
-----------------------------
=> Installation & Troubleshooting
=> Project Guidance
=> Programming Questions
=> General Electronics
=> LEDs and Multiplexing
=> Displays
=> Audio
=> Motors, Mechanics, and Power
=> Sensors
=> Networking, Protocols, and Devices
=> Interfacing w/ Software on the Computer
-----------------------------
Topics
-----------------------------
=> E-Textiles and Craft
=> Robotics
=> Science and Measurement
=> Home Automation and Networked Objects
=> Device Hacking
=> Education and Teaching
=> Interactive Art
=> Product Design
-----------------------------
Development
-----------------------------
=> Suggestions for the Arduino Project
=> Other Hardware Development
=> Other Software Development
-----------------------------
Community
-----------------------------
=> Website and Forum
=> Products and Services
=> Gigs and Collaborations
=> Workshops and Events
=> Local Groups
=> Exhibition / Gallery
=> Bar Sport
-----------------------------
International
-----------------------------
=> Deutsch
=> Español
=> Français
=> Italiano
=> Portugues
=> Scandinavia
-----------------------------
Forum 2005-2010 (read only)
-----------------------------
===> Uno Punto Zero
===> Bar Sport
===> Frequently-Asked Questions
===> News
===> Exhibition
===> Workshops
===> Interfacing
===> Bugs & Suggestions
===> Development
===> Troubleshooting
===> Portugues
===> Deutsch
===> Español
===> Français
===> Italiano
===> Scandinavia
===> Development
===> Interfacing
===> Syntax & Programs
===> Bugs & Suggestions
===> Troubleshooting
===> Report Spam at Arduino.cc
===> Forum
===> Playground Wiki
=> General
=> Hardware
=> Software
=> International
=> Web/Forum/Email/Spam
-----------------------------
Using Arduino
-----------------------------
=> Storage
=> Microcontrollers
-----------------------------
International
-----------------------------
===> Humor y Debate
===> Talleres, Encuentros, ...
===> Tutoriels et cours
===> Réalisations et Projets Finis
===> Le bar
=> Nederlands
===> Software
===> Hardware
===> Proyectos
===> Documentación
=> India
===> Hardware
===> Software
===> Megatopic
-----------------------------
Products
-----------------------------
=> The Arduino Starter Kit
=> Arduino Due
-----------------------------
International
-----------------------------
===> Generale
-----------------------------
Products
-----------------------------
=> Arduino Esplora
=> Arduino GSM Shield
-----------------------------
Maker Faire Rome - The European Edition
-----------------------------
=> Makers
=> Events and Tour
Loading...