EasyManuals Logo

Arduino uno User Manual

Arduino uno
311 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #224 background imageLoading...
Page #224 background image
RemoteControl/TvRemote/TvRemote.ino
#include <IRremote.h>
Line 1
-
class TvRemote {
-
-
enum {
5
CMD_LEN = 32, GUIDE = 0xE0E0F20D,
-
POWER = 0xE0E040BF, TOOLS = 0xE0E0D22D,
-
SOURCE = 0xE0E0807F, INFO = 0xE0E0F807,
-
HDMI = 0xE0E0D12E, OPTIONS = 0xE0E016E9,
-
ONE = 0xE0E020DF, UP_K = 0xE0E006F9,
10
TWO = 0xE0E0A05F, LEFT_K = 0xE0E0A659,
-
THREE = 0xE0E0609F, RIGHT_K = 0xE0E046B9,
-
FOUR = 0xE0E010EF, DOWN_K = 0xE0E08679,
-
FIVE = 0xE0E0906F, RETURN = 0xE0E01AE5,
-
SIX = 0xE0E050AF, EXIT = 0xE0E0B44B,
15
SEVEN = 0xE0E030CF, A = 0xE0E036C9,
-
EIGHT = 0xE0E0B04F, B = 0xE0E028D7,
-
NINE = 0xE0E0708F, C = 0xE0E0A857,
-
TXT = 0xE0E034CB, D = 0xE0E06897,
-
ZERO = 0xE0E08877, PIP = 0xE0E004FB,
20
PRE_CH = 0xE0E0C837, SEARCH = 0xE0E0CE31,
-
VOL_UP = 0xE0E0E01F, DUAL = 0xE0E000FF,
-
VOL_DOWN = 0xE0E0D02F, USB_HUB = 0xE0E025DA,
-
MUTE = 0xE0E0F00F, P_SIZE = 0xE0E07C83,
-
CH_LIST = 0xE0E0D629, SUBTITLE = 0xE0E0A45B,
25
PROG_UP = 0xE0E048B7, REWIND = 0xE0E0A25D,
-
PROG_DOWN = 0xE0E008F7, PAUSE = 0xE0E052AD,
-
MENU = 0xE0E058A7, FORWARD = 0xE0E012ED,
-
SMART_TV = 0xE0E09E61, RECORD = 0xE0E0926D,
-
PLAY = 0xE0E0E21D, STOP = 0xE0E0629D
30
};
-
-
IRsend tv;
-
-
void send_command(const long command) {
35
tv.sendSAMSUNG(command, CMD_LEN);
-
}
-
-
public:
-
40
void guide() { send_command(GUIDE); }
-
void power() { send_command(POWER); }
-
void tools() { send_command(TOOLS); }
-
void source() { send_command(SOURCE); }
-
void info() { send_command(INFO); }
45
void hdmi() { send_command(HDMI); }
-
void zero() { send_command(ZERO); }
-
void one() { send_command(ONE); }
-
void two() { send_command(TWO); }
-
Chapter 12. Creating Your Own Universal Remote Control 208
report erratum discuss
www.it-ebooks.info

Table of Contents

Other manuals for Arduino uno

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Arduino uno and is the answer not in the manual?

Arduino uno Specifications

General IconGeneral
Form factorArduino
CertificationRoHS, FC, CE
Processor model-
Processor frequency- MHz
Microcontroller modelATmega328
Microcontroller frequency16 MHz
DC input voltage7-12 V
Operating voltage5 V
DC current per I/O pin40 mA
Flash memory0.032 MB
Maximum internal memory- GB
SRAM (Static Random Access Memory)2 KB
EEPROM (Electrically Erasable Programmable Read-Only Memory)1 KB
Wi-FiNo
Number of analog I/O pins6
Number of digital I/O pins14
Weight and Dimensions IconWeight and Dimensions
Board dimensions53.4 x 68.6 mm

Related product manuals