Помогите, ошибка компиляции скетча ардуино нано, РГБ фонарь

Помогите пожалуйста разобраться. Ошибка компиляции скетча. РГБ фонарь Гайвера.

скриншот

Код на Гитхаб

In file included from C:\Users\Admin\Documents\Arduino\libraries\RGBspot-main\firmware\RGBspot\RGBspot.ino:28:0:
C:\Users\Admin\Documents\Arduino\libraries\RGBspot-main\firmware\RGBspot\pinMap.h:7:17: error: 'PIN_PD4' was not declared in this scope
 #define P_ENC_A PIN_PD4
                 ^
C:\Users\Admin\Documents\Arduino\libraries\RGBspot-main\firmware\RGBspot\RGBspot.ino:32:20: note: in expansion of macro 'P_ENC_A'
 EncButton<EB_TICK, P_ENC_A, P_ENC_B, P_BTN> enc(INPUT);
                    ^~~~~~~
C:\Users\Admin\Documents\Arduino\libraries\RGBspot-main\firmware\RGBspot\pinMap.h:7:17: note: suggested alternative: 'PIN_A4'
 #define P_ENC_A PIN_PD4
                 ^
C:\Users\Admin\Documents\Arduino\libraries\RGBspot-main\firmware\RGBspot\RGBspot.ino:32:20: note: in expansion of macro 'P_ENC_A'
 EncButton<EB_TICK, P_ENC_A, P_ENC_B, P_BTN> enc(INPUT);
                    ^~~~~~~
C:\Users\Admin\Documents\Arduino\libraries\RGBspot-main\firmware\RGBspot\pinMap.h:8:17: error: 'PIN_PD5' was not declared in this scope
 #define P_ENC_B PIN_PD5
                 ^
C:\Users\Admin\Documents\Arduino\libraries\RGBspot-main\firmware\RGBspot\RGBspot.ino:32:29: note: in expansion of macro 'P_ENC_B'
 EncButton<EB_TICK, P_ENC_A, P_ENC_B, P_BTN> enc(INPUT);
                             ^~~~~~~
C:\Users\Admin\Documents\Arduino\libraries\RGBspot-main\firmware\RGBspot\pinMap.h:8:17: note: suggested alternative: 'PIN_A5'
 #define P_ENC_B PIN_PD5
                 ^
C:\Users\Admin\Documents\Arduino\libraries\RGBspot-main\firmware\RGBspot\RGBspot.ino:32:29: note: in expansion of macro 'P_ENC_B'
 EncButton<EB_TICK, P_ENC_A, P_ENC_B, P_BTN> enc(INPUT);
                             ^~~~~~~
C:\Users\Admin\Documents\Arduino\libraries\RGBspot-main\firmware\RGBspot\pinMap.h:9:17: error: 'PIN_PD6' was not declared in this scope
 #define P_BTN   PIN_PD6
                 ^
C:\Users\Admin\Documents\Arduino\libraries\RGBspot-main\firmware\RGBspot\RGBspot.ino:32:38: note: in expansion of macro 'P_BTN'
 EncButton<EB_TICK, P_ENC_A, P_ENC_B, P_BTN> enc(INPUT);
                                      ^~~~~
C:\Users\Admin\Documents\Arduino\libraries\RGBspot-main\firmware\RGBspot\pinMap.h:9:17: note: suggested alternative: 'PIND6'
 #define P_BTN   PIN_PD6
                 ^
C:\Users\Admin\Documents\Arduino\libraries\RGBspot-main\firmware\RGBspot\RGBspot.ino:32:38: note: in expansion of macro 'P_BTN'
 EncButton<EB_TICK, P_ENC_A, P_ENC_B, P_BTN> enc(INPUT);
                                      ^~~~~
C:\Users\Admin\Documents\Arduino\libraries\RGBspot-main\firmware\RGBspot\RGBspot.ino:32:43: error: template argument 2 is invalid
 EncButton<EB_TICK, P_ENC_A, P_ENC_B, P_BTN> enc(INPUT);
                                           ^
C:\Users\Admin\Documents\Arduino\libraries\RGBspot-main\firmware\RGBspot\RGBspot.ino:32:43: error: template argument 3 is invalid
C:\Users\Admin\Documents\Arduino\libraries\RGBspot-main\firmware\RGBspot\RGBspot.ino:32:43: error: template argument 4 is invalid
In file included from C:\Users\Admin\Documents\Arduino\libraries\RGBspot-main\firmware\RGBspot\RGBspot.ino:28:0:
C:\Users\Admin\Documents\Arduino\libraries\RGBspot-main\firmware\RGBspot\pinMap.h:29:17: error: 'PIN_PB4' was not declared in this scope
 #define P_G4    PIN_PB4
                 ^
C:\Users\Admin\Documents\Arduino\libraries\RGBspot-main\firmware\RGBspot\RGBspot.ino:40:25: note: in expansion of macro 'P_G4'
 const uint8_t digs[] = {P_G4, P_G3, P_G2, P_G1};
                         ^~~~
C:\Users\Admin\Documents\Arduino\libraries\RGBspot-main\firmware\RGBspot\pinMap.h:29:17: note: suggested alternative: 'PIN_A4'
 #define P_G4    PIN_PB4
                 ^
C:\Users\Admin\Documents\Arduino\libraries\RGBspot-main\firmware\RGBspot\RGBspot.ino:40:25: note: in expansion of macro 'P_G4'
 const uint8_t digs[] = {P_G4, P_G3, P_G2, P_G1};
                         ^~~~
C:\Users\Admin\Documents\Arduino\libraries\RGBspot-main\firmware\RGBspot\pinMap.h:28:17: error: 'PIN_PB0' was not declared in this scope
 #define P_G3    PIN_PB0
                 ^
C:\Users\Admin\Documents\Arduino\libraries\RGBspot-main\firmware\RGBspot\RGBspot.ino:40:31: note: in expansion of macro 'P_G3'
 const uint8_t digs[] = {P_G4, P_G3, P_G2, P_G1};
                               ^~~~
C:\Users\Admin\Documents\Arduino\libraries\RGBspot-main\firmware\RGBspot\pinMap.h:28:17: note: suggested alternative: 'PINB0'
 #define P_G3    PIN_PB0
                 ^
C:\Users\Admin\Documents\Arduino\libraries\RGBspot-main\firmware\RGBspot\RGBspot.ino:40:31: note: in expansion of macro 'P_G3'
 const uint8_t digs[] = {P_G4, P_G3, P_G2, P_G1};
                               ^~~~
C:\Users\Admin\Documents\Arduino\libraries\RGBspot-main\firmware\RGBspot\pinMap.h:27:17: error: 'PIN_PD1' was not declared in this scope
 #define P_G2    PIN_PD1
                 ^
C:\Users\Admin\Documents\Arduino\libraries\RGBspot-main\firmware\RGBspot\RGBspot.ino:40:37: note: in expansion of macro 'P_G2'
 const uint8_t digs[] = {P_G4, P_G3, P_G2, P_G1};
                                     ^~~~
C:\Users\Admin\Documents\Arduino\libraries\RGBspot-main\firmware\RGBspot\pinMap.h:27:17: note: suggested alternative: 'PIND1'
 #define P_G2    PIN_PD1
                 ^
C:\Users\Admin\Documents\Arduino\libraries\RGBspot-main\firmware\RGBspot\RGBspot.ino:40:37: note: in expansion of macro 'P_G2'
 const uint8_t digs[] = {P_G4, P_G3, P_G2, P_G1};
                                     ^~~~
C:\Users\Admin\Documents\Arduino\libraries\RGBspot-main\firmware\RGBspot\pinMap.h:26:17: error: 'PIN_PD0' was not declared in this scope
 #define P_G1    PIN_PD0
                 ^
C:\Users\Admin\Documents\Arduino\libraries\RGBspot-main\firmware\RGBspot\RGBspot.ino:40:43: note: in expansion of macro 'P_G1'
 const uint8_t digs[] = {P_G4, P_G3, P_G2, P_G1};
                                           ^~~~
C:\Users\Admin\Documents\Arduino\libraries\RGBspot-main\firmware\RGBspot\pinMap.h:26:17: note: suggested alternative: 'PIND0'
 #define P_G1    PIN_PD0
                 ^
C:\Users\Admin\Documents\Arduino\libraries\RGBspot-main\firmware\RGBspot\RGBspot.ino:40:43: note: in expansion of macro 'P_G1'
 const uint8_t digs[] = {P_G4, P_G3, P_G2, P_G1};
                                           ^~~~
C:\Users\Admin\Documents\Arduino\libraries\RGBspot-main\firmware\RGBspot\pinMap.h:17:17: error: 'PIN_PD7' was not declared in this scope
 #define P_SSA   PIN_PD7
                 ^
C:\Users\Admin\Documents\Arduino\libraries\RGBspot-main\firmware\RGBspot\RGBspot.ino:41:25: note: in expansion of macro 'P_SSA'
 const uint8_t segs[] = {P_SSA, P_SSB, P_SSC, P_SSD, P_SSE, P_SSF, P_SSG};
                         ^~~~~
C:\Users\Admin\Documents\Arduino\libraries\RGBspot-main\firmware\RGBspot\pinMap.h:17:17: note: suggested alternative: 'PIN_A7'
 #define P_SSA   PIN_PD7
                 ^
C:\Users\Admin\Documents\Arduino\libraries\RGBspot-main\firmware\RGBspot\RGBspot.ino:41:25: note: in expansion of macro 'P_SSA'
 const uint8_t segs[] = {P_SSA, P_SSB, P_SSC, P_SSD, P_SSE, P_SSF, P_SSG};
                         ^~~~~
C:\Users\Admin\Documents\Arduino\libraries\RGBspot-main\firmware\RGBspot\pinMap.h:18:17: error: 'PIN_PC0' was not declared in this scope
 #define P_SSB   PIN_PC0
                 ^
C:\Users\Admin\Documents\Arduino\libraries\RGBspot-main\firmware\RGBspot\RGBspot.ino:41:32: note: in expansion of macro 'P_SSB'
 const uint8_t segs[] = {P_SSA, P_SSB, P_SSC, P_SSD, P_SSE, P_SSF, P_SSG};
                                ^~~~~
C:\Users\Admin\Documents\Arduino\libraries\RGBspot-main\firmware\RGBspot\pinMap.h:18:17: note: suggested alternative: 'PINC0'
 #define P_SSB   PIN_PC0
                 ^
C:\Users\Admin\Documents\Arduino\libraries\RGBspot-main\firmware\RGBspot\RGBspot.ino:41:32: note: in expansion of macro 'P_SSB'
 const uint8_t segs[] = {P_SSA, P_SSB, P_SSC, P_SSD, P_SSE, P_SSF, P_SSG};
                                ^~~~~
C:\Users\Admin\Documents\Arduino\libraries\RGBspot-main\firmware\RGBspot\pinMap.h:19:17: error: 'PIN_PC1' was not declared in this scope
 #define P_SSC   PIN_PC1
                 ^
C:\Users\Admin\Documents\Arduino\libraries\RGBspot-main\firmware\RGBspot\RGBspot.ino:41:39: note: in expansion of macro 'P_SSC'
 const uint8_t segs[] = {P_SSA, P_SSB, P_SSC, P_SSD, P_SSE, P_SSF, P_SSG};
                                       ^~~~~
C:\Users\Admin\Documents\Arduino\libraries\RGBspot-main\firmware\RGBspot\pinMap.h:19:17: note: suggested alternative: 'PINC1'
 #define P_SSC   PIN_PC1
                 ^
C:\Users\Admin\Documents\Arduino\libraries\RGBspot-main\firmware\RGBspot\RGBspot.ino:41:39: note: in expansion of macro 'P_SSC'
 const uint8_t segs[] = {P_SSA, P_SSB, P_SSC, P_SSD, P_SSE, P_SSF, P_SSG};
                                       ^~~~~
C:\Users\Admin\Documents\Arduino\libraries\RGBspot-main\firmware\RGBspot\pinMap.h:20:17: error: 'PIN_PC2' was not declared in this scope
 #define P_SSD   PIN_PC2
                 ^
C:\Users\Admin\Documents\Arduino\libraries\RGBspot-main\firmware\RGBspot\RGBspot.ino:41:46: note: in expansion of macro 'P_SSD'
 const uint8_t segs[] = {P_SSA, P_SSB, P_SSC, P_SSD, P_SSE, P_SSF, P_SSG};
                                              ^~~~~
C:\Users\Admin\Documents\Arduino\libraries\RGBspot-main\firmware\RGBspot\pinMap.h:20:17: note: suggested alternative: 'PINC2'
 #define P_SSD   PIN_PC2
                 ^
C:\Users\Admin\Documents\Arduino\libraries\RGBspot-main\firmware\RGBspot\RGBspot.ino:41:46: note: in expansion of macro 'P_SSD'
 const uint8_t segs[] = {P_SSA, P_SSB, P_SSC, P_SSD, P_SSE, P_SSF, P_SSG};
                                              ^~~~~
C:\Users\Admin\Documents\Arduino\libraries\RGBspot-main\firmware\RGBspot\pinMap.h:21:17: error: 'PIN_PC3' was not declared in this scope
 #define P_SSE   PIN_PC3
                 ^
C:\Users\Admin\Documents\Arduino\libraries\RGBspot-main\firmware\RGBspot\RGBspot.ino:41:53: note: in expansion of macro 'P_SSE'
 const uint8_t segs[] = {P_SSA, P_SSB, P_SSC, P_SSD, P_SSE, P_SSF, P_SSG};
                                                     ^~~~~
C:\Users\Admin\Documents\Arduino\libraries\RGBspot-main\firmware\RGBspot\pinMap.h:21:17: note: suggested alternative: 'PIN_A3'
 #define P_SSE   PIN_PC3
                 ^
C:\Users\Admin\Documents\Arduino\libraries\RGBspot-main\firmware\RGBspot\RGBspot.ino:41:53: note: in expansion of macro 'P_SSE'
 const uint8_t segs[] = {P_SSA, P_SSB, P_SSC, P_SSD, P_SSE, P_SSF, P_SSG};
                                                     ^~~~~
C:\Users\Admin\Documents\Arduino\libraries\RGBspot-main\firmware\RGBspot\pinMap.h:22:17: error: 'PIN_PC4' was not declared in this scope
 #define P_SSF   PIN_PC4
                 ^
C:\Users\Admin\Documents\Arduino\libraries\RGBspot-main\firmware\RGBspot\RGBspot.ino:41:60: note: in expansion of macro 'P_SSF'
 const uint8_t segs[] = {P_SSA, P_SSB, P_SSC, P_SSD, P_SSE, P_SSF, P_SSG};
                                                            ^~~~~
C:\Users\Admin\Documents\Arduino\libraries\RGBspot-main\firmware\RGBspot\pinMap.h:22:17: note: suggested alternative: 'PIN_A4'
 #define P_SSF   PIN_PC4
                 ^
C:\Users\Admin\Documents\Arduino\libraries\RGBspot-main\firmware\RGBspot\RGBspot.ino:41:60: note: in expansion of macro 'P_SSF'
 const uint8_t segs[] = {P_SSA, P_SSB, P_SSC, P_SSD, P_SSE, P_SSF, P_SSG};
                                                            ^~~~~
C:\Users\Admin\Documents\Arduino\libraries\RGBspot-main\firmware\RGBspot\pinMap.h:23:17: error: 'PIN_PC5' was not declared in this scope
 #define P_SSG   PIN_PC5
                 ^
C:\Users\Admin\Documents\Arduino\libraries\RGBspot-main\firmware\RGBspot\RGBspot.ino:41:67: note: in expansion of macro 'P_SSG'
 const uint8_t segs[] = {P_SSA, P_SSB, P_SSC, P_SSD, P_SSE, P_SSF, P_SSG};
                                                                   ^~~~~
C:\Users\Admin\Documents\Arduino\libraries\RGBspot-main\firmware\RGBspot\pinMap.h:23:17: note: suggested alternative: 'PIN_A5'
 #define P_SSG   PIN_PC5
                 ^
C:\Users\Admin\Documents\Arduino\libraries\RGBspot-main\firmware\RGBspot\RGBspot.ino:41:67: note: in expansion of macro 'P_SSG'
 const uint8_t segs[] = {P_SSA, P_SSB, P_SSC, P_SSD, P_SSE, P_SSF, P_SSG};
                                                                   ^~~~~
C:\Users\Admin\Documents\Arduino\libraries\RGBspot-main\firmware\RGBspot\pinMap.h:12:17: error: 'PIN_PD3' was not declared in this scope
 #define P_LED_R PIN_PD3
                 ^
C:\Users\Admin\Documents\Arduino\libraries\RGBspot-main\firmware\RGBspot\RGBspot.ino:46:26: note: in expansion of macro 'P_LED_R'
 GRGB led(COMMON_CATHODE, P_LED_R, P_LED_G, P_LED_B);
                          ^~~~~~~
C:\Users\Admin\Documents\Arduino\libraries\RGBspot-main\firmware\RGBspot\pinMap.h:12:17: note: suggested alternative: 'PIN_A3'
 #define P_LED_R PIN_PD3
                 ^
C:\Users\Admin\Documents\Arduino\libraries\RGBspot-main\firmware\RGBspot\RGBspot.ino:46:26: note: in expansion of macro 'P_LED_R'
 GRGB led(COMMON_CATHODE, P_LED_R, P_LED_G, P_LED_B);
                          ^~~~~~~
C:\Users\Admin\Documents\Arduino\libraries\RGBspot-main\firmware\RGBspot\pinMap.h:13:17: error: 'PIN_PB1' was not declared in this scope
 #define P_LED_G PIN_PB1
                 ^
C:\Users\Admin\Documents\Arduino\libraries\RGBspot-main\firmware\RGBspot\RGBspot.ino:46:35: note: in expansion of macro 'P_LED_G'
 GRGB led(COMMON_CATHODE, P_LED_R, P_LED_G, P_LED_B);
                                   ^~~~~~~
C:\Users\Admin\Documents\Arduino\libraries\RGBspot-main\firmware\RGBspot\pinMap.h:13:17: note: suggested alternative: 'PINB1'
 #define P_LED_G PIN_PB1
                 ^
C:\Users\Admin\Documents\Arduino\libraries\RGBspot-main\firmware\RGBspot\RGBspot.ino:46:35: note: in expansion of macro 'P_LED_G'
 GRGB led(COMMON_CATHODE, P_LED_R, P_LED_G, P_LED_B);
                                   ^~~~~~~
C:\Users\Admin\Documents\Arduino\libraries\RGBspot-main\firmware\RGBspot\pinMap.h:14:17: error: 'PIN_PB2' was not declared in this scope
 #define P_LED_B PIN_PB2
                 ^
C:\Users\Admin\Documents\Arduino\libraries\RGBspot-main\firmware\RGBspot\RGBspot.ino:46:44: note: in expansion of macro 'P_LED_B'
 GRGB led(COMMON_CATHODE, P_LED_R, P_LED_G, P_LED_B);
                                            ^~~~~~~
C:\Users\Admin\Documents\Arduino\libraries\RGBspot-main\firmware\RGBspot\pinMap.h:14:17: note: suggested alternative: 'PINB2'
 #define P_LED_B PIN_PB2
                 ^
C:\Users\Admin\Documents\Arduino\libraries\RGBspot-main\firmware\RGBspot\RGBspot.ino:46:44: note: in expansion of macro 'P_LED_B'
 GRGB led(COMMON_CATHODE, P_LED_R, P_LED_G, P_LED_B);
                                            ^~~~~~~
C:\Users\Admin\Documents\Arduino\libraries\RGBspot-main\firmware\RGBspot\RGBspot.ino: In function 'void setup()':
C:\Users\Admin\Documents\Arduino\libraries\RGBspot-main\firmware\RGBspot\pinMap.h:3:17: error: 'PIN_PB3' was not declared in this scope
 #define P_FAN   PIN_PB3
                 ^
C:\Users\Admin\Documents\Arduino\libraries\RGBspot-main\firmware\RGBspot\RGBspot.ino:81:11: note: in expansion of macro 'P_FAN'
   pinMode(P_FAN, OUTPUT);
           ^~~~~
C:\Users\Admin\Documents\Arduino\libraries\RGBspot-main\firmware\RGBspot\pinMap.h:3:17: note: suggested alternative: 'PIN_A3'
 #define P_FAN   PIN_PB3
                 ^
C:\Users\Admin\Documents\Arduino\libraries\RGBspot-main\firmware\RGBspot\RGBspot.ino:81:11: note: in expansion of macro 'P_FAN'
   pinMode(P_FAN, OUTPUT);
           ^~~~~
C:\Users\Admin\Documents\Arduino\libraries\RGBspot-main\firmware\RGBspot\RGBspot.ino: In function 'void loop()':
C:\Users\Admin\Documents\Arduino\libraries\RGBspot-main\firmware\RGBspot\RGBspot.ino:100:11: error: request for member 'tick' in 'enc', which is of non-class type 'int'
   if (enc.tick()) {   // опрос, если было событие
           ^~~~
C:\Users\Admin\Documents\Arduino\libraries\RGBspot-main\firmware\RGBspot\RGBspot.ino:102:13: error: request for member 'click' in 'enc', which is of non-class type 'int'
     if (enc.click()) dispMode = !dispMode;
             ^~~~~
C:\Users\Admin\Documents\Arduino\libraries\RGBspot-main\firmware\RGBspot\RGBspot.ino:105:13: error: request for member 'held' in 'enc', which is of non-class type 'int'
     if (enc.held()) {
             ^~~~
C:\Users\Admin\Documents\Arduino\libraries\RGBspot-main\firmware\RGBspot\RGBspot.ino:111:13: error: request for member 'turn' in 'enc', which is of non-class type 'int'
     if (enc.turn()) {
             ^~~~
C:\Users\Admin\Documents\Arduino\libraries\RGBspot-main\firmware\RGBspot\RGBspot.ino:112:21: error: request for member 'getDir' in 'enc', which is of non-class type 'int'
       int val = enc.getDir();     // направление поворота
                     ^~~~~~
C:\Users\Admin\Documents\Arduino\libraries\RGBspot-main\firmware\RGBspot\RGBspot.ino:113:15: error: request for member 'fast' in 'enc', which is of non-class type 'int'
       if (enc.fast()) val *= 5;   // быстрый поворот - в 5 раз быстрее
               ^~~~
C:\Users\Admin\Documents\Arduino\libraries\RGBspot-main\firmware\RGBspot\RGBspot.ino:127:9: error: request for member 'resetState' in 'enc', which is of non-class type 'int'
     enc.resetState();   // сбрасываем флаги (очищаем остальные события)
         ^~~~~~~~~~
In file included from C:\Users\Admin\Documents\Arduino\libraries\RGBspot-main\firmware\RGBspot\RGBspot.ino:28:0:
C:\Users\Admin\Documents\Arduino\libraries\RGBspot-main\firmware\RGBspot\RGBspot.ino: In function 'void coolingTick()':
C:\Users\Admin\Documents\Arduino\libraries\RGBspot-main\firmware\RGBspot\pinMap.h:3:17: error: 'PIN_PB3' was not declared in this scope
 #define P_FAN   PIN_PB3
                 ^
C:\Users\Admin\Documents\Arduino\libraries\RGBspot-main\firmware\RGBspot\RGBspot.ino:142:17: note: in expansion of macro 'P_FAN'
     analogWrite(P_FAN, duty);
                 ^~~~~
C:\Users\Admin\Documents\Arduino\libraries\RGBspot-main\firmware\RGBspot\pinMap.h:3:17: note: suggested alternative: 'PIN_A3'
 #define P_FAN   PIN_PB3
                 ^
C:\Users\Admin\Documents\Arduino\libraries\RGBspot-main\firmware\RGBspot\RGBspot.ino:142:17: note: in expansion of macro 'P_FAN'
     analogWrite(P_FAN, duty);
                 ^~~~~

exit status 1

Compilation error: 'PIN_PD4' was not declared in this scope

На пин pd4 ругается чего-то… что ли…

Ссылка на форум автора этого поделия

Там молчат, спрашивал

А где этот пин описан? Файлы SevSeg.h и pinMap.h рядом с файлом скетча положить, поди, забыли

Файлы лежат в папке со скетчем у меня!

Скрин

В pinMap.h описан вроде

Нет, нигде он не описан. Обращайтесь к автору кода

// ИК, вентилятор, термистор
#define P_IR    PIN_PD2
#define P_FAN   PIN_PB3
#define P_NTC   PIN_A6

// энкодер
#define P_ENC_A PIN_PD4
#define P_ENC_B PIN_PD5
#define P_BTN   PIN_PD6

// светодиод
#define P_LED_R PIN_PD3
#define P_LED_G PIN_PB1
#define P_LED_B PIN_PB2

// сегменты
#define P_SSA   PIN_PD7
#define P_SSB   PIN_PC0
#define P_SSC   PIN_PC1
#define P_SSD   PIN_PC2
#define P_SSE   PIN_PC3
#define P_SSF   PIN_PC4
#define P_SSG   PIN_PC5

// DIGи
#define P_G1    PIN_PD0
#define P_G2    PIN_PD1
#define P_G3    PIN_PB0
#define P_G4    PIN_PB4

Это содержимое pinMap.h

Насколько я понимаю это и есть его описание

А так пробовали? #include "pinMap.h"

@vovalist вы для какой платы этот код компилируете?

1 лайк
#define P_ENC_A PIN_PD4

Это описание P_ENC_A, которое означает, что P_ENC_A == PIN_PD4. А чему равно PIN_PD4, интересуется компилятор? Вот PIN_PD4 нигде и не описан. Что делать? Обращаться к автору кода. Или разбираться самому, куда что подключать и что чему приравнивать.

Для уно/нано не компилируется

В самом начале RGBspot.ino написано:
Настройки компиляции и фьюзов: MiniCore https://github.com/MCUdude/MiniCore

1 лайк

И что это означает?

Ясно, жаль

Вроде есть такая запись в коде…

А как-то можно переделать под Нано?

Канэшна можно! Утром - деньги, вечером - стулья.

Вариантов два:

  1. ручками прописать номера пинов, на которых подключена периферия (кнопки, светодиоды и т.д.)
  2. Поставить MiniCore, скачанный по адресу, указанному в начале скетча и использовать для компиляции его. Хотя, судя по вопросам, для вас это неподъемная задача, имхо

Третий вариант - обратиться в платный раздел