Skip to content

Latest commit

 

History

History

SendAndReceiveButtonCodes

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Example project for the Apple Remote library for Arduino

apple-remote

This is an example project for the Apple Remote library. Throughout this example you'll learn how to use the library to print the name of the pressed button into the screen.

Hardware

ir debugger_picture

We're going to use the same hardware setup that we used for the IRDump example.

Software

Prerequisites

  1. Arduino IDE 1.6+.

Getting up a project copy

  1. Install the IRDump and the AppleRemote libraries.
  2. Open the SendAndReceiveButtonCodes.ino file with the Arduino IDE.
  3. Verify and upload the code to the board.
  4. Click the "Serial Monitor" command in the Arduino's IDE tools menu to bring on the serial monitor.
  5. Change the baud rate to 115200 baud.

Point a remote controller to the IR sensor and press any key. You'll see the name of the button you pressed printed in the serial console.

Apple Remote for Arduino.

[menu]
[play]
[repeat]
...

License

The MIT License (MIT)

Copyright (c) 2014-2015 José Carlos Nieto, https://menteslibres.net/xiam

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.