|
34 | 34 | * ATtin167 9 8 5 // Digispark pro number schema |
35 | 35 | * ATtin167 3 2 7 |
36 | 36 | * ATtin3217 10 11 3 // TinyCore schema |
| 37 | + * ATtin1604 10 11 % // MegaTinyCore schema |
37 | 38 | * SAMD21 3 4 5 |
38 | 39 | * ESP8266 14 // D5 12 // D6 % |
39 | 40 | * ESP32 15 4 % |
|
46 | 47 | #define FEEDBACK_LED_IS_ACTIVE_LOW // The LED on my board is active LOW |
47 | 48 | #define IR_RECEIVE_PIN 14 // D5 |
48 | 49 | #define IR_SEND_PIN 12 // D6 - D4/2 is internal LED |
49 | | -#define tone(a,b) void() // tone() inhibits receive timer |
| 50 | +#define tone(a,b,c) void() // tone() inhibits receive timer |
50 | 51 | #define noTone(a) void() |
51 | 52 | #define TONE_PIN 42 // Dummy for examples using it |
52 | 53 | #define IR_TIMING_TEST_PIN 13 // D7 |
53 | 54 |
|
54 | 55 | #elif defined(ESP32) |
55 | 56 | #define IR_RECEIVE_PIN 15 // D15 |
56 | 57 | #define IR_SEND_PIN 4 // D4 |
57 | | -#define tone(a,b) void() // no tone() available on ESP32 |
| 58 | +#define tone(a,b,c) void() // no tone() available on ESP32 |
58 | 59 | #define noTone(a) void() |
59 | 60 | #define TONE_PIN 42 // Dummy for examples using it |
60 | 61 |
|
|
104 | 105 | #define IR_SEND_PIN 11 |
105 | 106 | #define TONE_PIN 3 |
106 | 107 |
|
| 108 | +#elif defined(__AVR_ATtiny1604__) |
| 109 | +#define IR_RECEIVE_PIN 2 // To be compatible with interrupt example, pin 2 is chosen here. |
| 110 | +#define IR_SEND_PIN 3 |
| 111 | +#define TONE_PIN 42 // Dummy for examples using it |
| 112 | +#define tone(a,b,c) void() // tone() uses the same vector as receive timer |
| 113 | +#define noTone(a) void() |
| 114 | + |
107 | 115 | # elif defined(__AVR_ATmega1284__) || defined(__AVR_ATmega1284P__) \ |
108 | 116 | || defined(__AVR_ATmega644__) || defined(__AVR_ATmega644P__) \ |
109 | 117 | || defined(__AVR_ATmega324P__) || defined(__AVR_ATmega324A__) \ |
|
0 commit comments