21 #include <IrReceiverSampler.h>
27 #include <IPAddress.h>
45 #define PROGNAME "Listener"
53 static EthernetUDP
udp;
75 if (multiDecoder.getType() > MultiDecoder::noise) {
77 ?
"." : multiDecoder.getDecode(),
78 multiDecoder.getType() != MultiDecoder::nec_ditto);
79 if (multiDecoder.getType() == MultiDecoder::nec)
83 MultiDecoder::Type type = multiDecoder.getType();
84 strncpy(
decode, multiDecoder.getDecode(), 99);
105 #define xstr(s) str(s)
117 #ifdef SDCARD_ON_ETHERSHIELD_PIN
127 , IPAddress(IPADDRESS), IPAddress(DNSSERVER), IPAddress(GATEWAY), IPAddress(SUBNETMASK)
130 sprintf(ipstring,
"%d.%d.%d.%d", Ethernet.localIP()[0], Ethernet.localIP()[1], Ethernet.localIP()[2], Ethernet.localIP()[3]);
135 "",
"",
"",
"http://arduino/nosuchfile.html");
138 #define DUMMYPORT 8888
145 #if defined(ARDUINO_AVR_LEONARDO) | defined(ARDUINO_AVR_MICRO)
#define SDCARD_ON_ETHERSHIELD_PIN
Pin to disable (put low) on Ethernet shield.
#define EOLCHAR
Character that ends the command lines.
#define SERIALTIMEOUT
Timeout for serial line.
#define SERIALBAUD
Configured speed of the serial port.
#define RECEIVELED
Number of logical LED to light when waiting for reception.
#define DHCP
Define to do IP configuration using DHCP.
#define IRRECEIVER_MARK_EXCESS
This quantity is added to all gaps and subtracted from all marks when receiving.
#define MACADDRESS
Must define MAC-Address to use here (!!).
static const milliseconds_t beginTimeout
static const size_t captureSize
static const milliseconds_t endingTimeout
static LED_PARAMETER_CONST led_t receiveled
static void readOneDecode()
static IPAddress broadcastIp(BROADCAST_IP)
static const microseconds_t markExcess
static IrReader * irReceiver
static void setupReceivers()
static led_t decode2logicalLed(MultiDecoder::Type type)
static void lcdPrint(const char *str, bool clear=true, int x=invalidLine, int y=invalidLine)
static void setupShouldTimeout(led_t logicLed, bool state)
static void setupLedGroundPins()
static bool setLogicLed(led_t logicLed, LedState state)
static void lcdSetCursor(uint8_t x=0, uint8_t y=0)
static void setup(int8_t i2cAddress, uint8_t columns=defaultLcdColumns, uint8_t rows=defaultLcdRows, const pin_t physicalLeds[maxLeds]=NULL, const led_t logicalLeds[maxLeds]=NULL, const bool shouldTimeOut[maxLeds]=NULL)
Sets up the instance, to be called before using the instance.
static void selfTest(const char *text)
static void checkTurnoff()
Turn off if it is due.
#define LED_PARAMETER_CONST
#define IRRECEIVER_1_PULLUP_VALUE
#define VERSION
Version of the current library.