AGirs
config.h
Go to the documentation of this file.
1 // Configuration options
2 
3 #pragma once
4 
5 // Define to (try to) decode, otherwise the raw signals are passed through.
6 #define DECODE
7 
8 // Use LEDs
9 #define LED
10 
11 #ifdef LED
12 #define DECODELED
13 
14 // Light this when receive is pending
15 #define RECEIVELED 1
16 #endif // LED
17 
18 // LCD display with I2C connection.
19 #define LCD
20 
21 // Define if using Ethernet (TCP or UDP) as the communication channel
22 #ifdef ARDUINO_AVR_MEGA2560
23 #define ETHERNET
24 #endif
25 
26 // If LCD support desired, include appropriate hardware description
27 #ifdef LCD
28 #define LCD_0x3F_20_4
29 #endif
30 
31 #include <girs_hw_config.h>
32 
33 // Character that ends the command lines
34 #define EOLCHAR '\n'
35 
36 #define ENDINGTIMEOUT 35L // milliseconds
37 #define CAPTURESIZE 200U // must be even
38 #define BEGINTIMEOUT 10000UL // milliseconds
39 // This quantity is added to all gaps and subtracted from all marks.
40 #define IRRECEIVER_MARK_EXCESS 50
41 
42 #ifdef ETHERNET
43 
44 #define SDCARD_ON_ETHERSHIELD // there is a pin4 to be selected low
45 #define SDCARD_ON_ETHERSHIELD_PIN 4 // there is a pin4 to be selected low
46 
47 #define DHCP // Consumes rather much memory
48 
49 // Invoke the AMX style beacon, as per https://github.com/bengtmartensson/ABeacon
50 #define BEACON
51 
52 #define BROADCAST_IP 192,168,1,3
53 #define BROADCAST_PORT 55555
54 
55 #define MACADDRESS 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED
56 
57 #ifndef DHCP
58 #define IPADDRESS 192,168,1,29
59 #define GATEWAY 192,168,1,254
60 #define DNSSERVER 192,168,1,4
61 #define SUBNETMASK 255,255,255,0
62 #endif // ! DHCP
63 
64 #else // ! ETHERNET
65 
66 // Parameters, (not really defaults, but actual values))
67 #define SERIALBAUD 115200UL
68 #define SERIALTIMEOUT 5000ULL
69 
70 #endif // ! ETHERNET