| Rev | Line | |
|---|
| [3] | 1 | /* IRLibProtocols.cpp |
|---|
| 2 | * Part of IRLib Library for Arduino receiving, decoding, and sending |
|---|
| 3 | * infrared signals. See COPYRIGHT.txt and LICENSE.txt for more information. |
|---|
| 4 | */ |
|---|
| 5 | /* |
|---|
| 6 | * This module enumerates the various supported protocols and defines a program memory |
|---|
| 7 | * string used by the dump routines or your sketches to display the name of a protocol. |
|---|
| 8 | * It is used by both Send and Decode sections of the code but not Receive. |
|---|
| 9 | */ |
|---|
| [30] | 10 | |
|---|
| 11 | #if !defined(ARDUINO_CIRCUITPLAY_NRF52840) |
|---|
| 12 | |
|---|
| [3] | 13 | #include "IRLibProtocols.h" |
|---|
| 14 | |
|---|
| 15 | /* |
|---|
| 16 | * Returns a pointer to a flash stored string that is the name of the protocol received. |
|---|
| 17 | */ |
|---|
| 18 | const __FlashStringHelper *Pnames(uint8_t type) { |
|---|
| 19 | if(type>89) return F("Unsup"); |
|---|
| 20 | if(type>LAST_PROTOCOL) type=UNKNOWN; |
|---|
| 21 | // You can add additional strings before the entry for hash code. |
|---|
| 22 | const __FlashStringHelper *Names[LAST_PROTOCOL+1]={ |
|---|
| 23 | F("Unknown"),F("NEC"),F("Sony"),F("RC5"),F("RC6"),F("Panasonic Old"),F("JVC"), |
|---|
| 24 | F("NECx"),F("Samsung36"),F("G.I.Cable"),F("DirecTV"),F("rcmm"),F("CYKM") |
|---|
| 25 | //,F("Additional_13")//expand or edit these |
|---|
| 26 | }; |
|---|
| 27 | return Names[type]; |
|---|
| 28 | }; |
|---|
| 29 | |
|---|
| [30] | 30 | #endif |
|---|
Note: See
TracBrowser
for help on using the repository browser.