IRremote
ir_Dish.hpp
Go to the documentation of this file.
1 #include "IRremoteInt.h"
2 
3 //==============================================================================
4 // DDDD IIIII SSSS H H
5 // D D I S H H
6 // D D I SSS HHHHH
7 // D D I S H H
8 // DDDD IIIII SSSS H H
9 //==============================================================================
10 
11 // Sharp and DISH support by Todd Treece ( http://unionbridge.org/design/ircommand )
12 //
13 // The send function needs to be repeated 4 times
14 //
15 // Only send the last for characters of the hex.
16 // I.E. Use 0x1C10 instead of 0x0000000000001C10 as listed in the LIRC file.
17 //
18 // Here is the LIRC file I found that seems to match the remote codes from the
19 // oscilloscope:
20 // DISH NETWORK (echostar 301):
21 // http://lirc.sourceforge.net/remotes/echostar/301_501_3100_5100_58xx_59xx
22 #ifndef _IR_DISH_HPP
23 #define _IR_DISH_HPP
24 
25 #define DISH_BITS 16
26 #define DISH_HEADER_MARK 400
27 #define DISH_HEADER_SPACE 6100
28 #define DISH_BIT_MARK 400
29 #define DISH_ONE_SPACE 1700
30 #define DISH_ZERO_SPACE 2800
31 #define DISH_REPEAT_SPACE 6200
32 
33 //+=============================================================================
34 void IRsend::sendDISH(unsigned long data, int nbits) {
35  // Set IR carrier frequency
36  enableIROut(56);
37 
40 
42  mark(DISH_HEADER_MARK); //added 26th March 2016, by AnalysIR ( https://www.AnalysIR.com )
44 }
45 
46 #endif // _IR_DISH_HPP
PROTOCOL_IS_MSB_FIRST
#define PROTOCOL_IS_MSB_FIRST
Definition: IRProtocol.h:75
DISH_BIT_MARK
#define DISH_BIT_MARK
Definition: ir_Dish.hpp:28
DISH_ONE_SPACE
#define DISH_ONE_SPACE
Definition: ir_Dish.hpp:29
IRsend::mark
void mark(unsigned int aMarkMicros)
Sends an IR mark for the specified number of microseconds.
Definition: IRSend.hpp:433
IRrecv::restartAfterSend
void restartAfterSend()
Restarts receiver after send.
Definition: IRReceive.hpp:161
IRsend::sendDISH
void sendDISH(unsigned long data, int nbits)
Definition: ir_Dish.hpp:34
IRsend::space
void space(unsigned int aSpaceMicros)
Sends an IR space for the specified number of microseconds.
Definition: IRSend.hpp:593
DISH_HEADER_SPACE
#define DISH_HEADER_SPACE
Definition: ir_Dish.hpp:27
DISH_HEADER_MARK
#define DISH_HEADER_MARK
Definition: ir_Dish.hpp:26
DISH_ZERO_SPACE
#define DISH_ZERO_SPACE
Definition: ir_Dish.hpp:30
IRsend::sendPulseDistanceWidthData
void sendPulseDistanceWidthData(unsigned int aOneMarkMicros, unsigned int aOneSpaceMicros, unsigned int aZeroMarkMicros, unsigned int aZeroSpaceMicros, uint32_t aData, uint_fast8_t aNumberOfBits, bool aMSBfirst, bool aSendStopBit=false)
Sends PulseDistance data The output always ends with a space.
Definition: IRSend.hpp:345
IRremoteInt.h
Contains all declarations required for the interface to IRremote. Could not be named IRremote....
IrReceiver
IRrecv IrReceiver
The receiver instance.
Definition: IRReceive.hpp:42
IRsend::enableIROut
void enableIROut(uint_fast8_t aFrequencyKHz)
Enables IR output.
Definition: IRSend.hpp:617