source: trunk/Arduino/libraries/Adafruit_Circuit_Playground/utility/IRLibProtocols.cpp @ 35

Last change on this file since 35 was 30, checked in by markus, 7 years ago

Update Arduino-IDE to 1.8.10

File size: 1.1 KB
Line 
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 */
10
11#if !defined(ARDUINO_CIRCUITPLAY_NRF52840)
12
13#include "IRLibProtocols.h"
14
15/*
16 * Returns a pointer to a flash stored string that is the name of the protocol received.
17 */
18const __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#endif
Note: See TracBrowser for help on using the repository browser.