Revert "Removed pronto "protocol""

This reverts commit 563c82c6c4.
This commit is contained in:
Rafi Khan
2017-08-13 12:03:54 -06:00
parent 563c82c6c4
commit 542516f116
3 changed files with 537 additions and 0 deletions

View File

@@ -73,9 +73,27 @@
#define DECODE_DENON 1
#define SEND_DENON 1
#define DECODE_PRONTO 0 // This function doe not logically make sense
#define SEND_PRONTO 1
#define DECODE_LEGO_PF 0 // NOT WRITTEN
#define SEND_LEGO_PF 1
//------------------------------------------------------------------------------
// When sending a Pronto code we request to send either the "once" code
// or the "repeat" code
// If the code requested does not exist we can request to fallback on the
// other code (the one we did not explicitly request)
//
// I would suggest that "fallback" will be the standard calling method
// The last paragraph on this page discusses the rationale of this idea:
// http://www.remotecentral.com/features/irdisp2.htm
//
#define PRONTO_ONCE false
#define PRONTO_REPEAT true
#define PRONTO_FALLBACK true
#define PRONTO_NOFALLBACK false
//------------------------------------------------------------------------------
// An enumerated list of all supported formats
// You do NOT need to remove entries from this list when disabling protocols!
@@ -99,6 +117,7 @@ typedef
DISH,
SHARP,
DENON,
PRONTO,
LEGO_PF,
}
decode_type_t;
@@ -321,6 +340,10 @@ class IRsend
//......................................................................
# if SEND_DENON
void sendDenon (unsigned long data, int nbits) ;
# endif
//......................................................................
# if SEND_PRONTO
void sendPronto (char* code, bool repeat, bool fallback) ;
# endif
//......................................................................
# if SEND_LEGO_PF