В программировании не силён, просто хотел повторить ваш проект, arduino ide 1.18.19, библиотеки у становил, пытаюсь записать скетч на плату, возникают следующие ошибки.
Посоветуйте, что нужно сделать. Мне всего то нужно чтобы было управление кнопкой и линейный вход.
ошибка
'months' was not declared in this scope
Остановилось на этой строке программы
RuningString((String)rtc.getDay() + " " + months[rtc.getMonth()] + ", " + weekDays[rtc.getDayofWeek()]);
закомментировал строку, дальше следующая ошибка
unused variable 'cget' [-Werror=unused-variable]
// Сохранение настроек в энергонезависимую память
void updateEEPROM() {
int eget;
float fget;
char cget[20];
закомментировал строку, дальше следующая ошибка
'local_IP' was not declared in this scope
if (local_IP != "") {
RuningString(local_IP);
} else {
RuningString("Not connected...");
закомментировал строку, дальше следующая ошибка
'Sinelon' was not declared in this scope
switch (lamp_mode_now) {
case 0:
Random_Pixels();
break;
case 1:
Sinelon(color);
закомментировал строку, дальше следующая ошибка
'Sinelon' was not declared in this scope
// Заставка
matrix->setBrightness(1);
randomSeed(analogRead(AUDIO_IN_PIN));
color = random(0, 254);
for (int i = 1; i < WIDTH * 2 + 16; i++) {
Sinelon(color);
delay(10);
if (i < WIDTH + 8) {
закомментировал строку, дальше следующая ошибка
'effectGyver' was not declared in this scope
switch (display_mode_now) {
case 0:
// Классическая индикация от Гайвера
effectGyver(pos, 160, 128, 96, 64, 0, 96, false, false);
на этом я остановился, что то явно делаю не правильно
ниже полный листинг ошибок после последней компиляции
In file included from C:\Users\STLee\Documents\Arduino\libraries\FastLED\src/FastLED.h:67,
from C:\Users\STLee\Documents\Arduino\libraries\Framebuffer_GFX/Framebuffer_GFX.h:33,
from C:\Users\STLee\Documents\Arduino\libraries\FastLED_NeoMatrix/FastLED_NeoMatrix.h:23,
from C:\Spectrus_esp32\Spectrus_esp32.ino:22:
C:\Users\STLee\Documents\Arduino\libraries\FastLED\src/fastspi.h:145:23: note: #pragma message: No hardware SPI pins defined. All SPI access will default to bitbanged output
# pragma message "No hardware SPI pins defined. All SPI access will default to bitbanged output"
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Spectrus_esp32\Spectrus_esp32.ino: In function 'void spectrus_Mode()':
Spectrus_esp32:756:13: error: 'effectGyver' was not declared in this scope
effectGyver(pos, 160, 128, 96, 64, 0, 96, false, false);
^~~~~~~~~~~
Spectrus_esp32:760:13: error: 'backgroundSimple' was not declared in this scope
backgroundSimple(pos, 96, 200);
^~~~~~~~~~~~~~~~
Spectrus_esp32:770:13: error: 'backgroundTricolor' was not declared in this scope
backgroundTricolor(pos, 0, 200, 160, 200, 0, 0);
^~~~~~~~~~~~~~~~~~
Spectrus_esp32:775:13: error: 'backgroundGradient' was not declared in this scope
backgroundGradient(pos, 96, 250, 0, 120);
^~~~~~~~~~~~~~~~~~
Spectrus_esp32:784:13: error: 'effectGradient' was not declared in this scope
effectGradient(pos, 160, 70, 180, 22, 255, 96, false);
^~~~~~~~~~~~~~
C:\Spectrus_esp32\Spectrus_esp32.ino:784:13: note: suggested alternative: 'Gradient'
effectGradient(pos, 160, 70, 180, 22, 255, 96, false);
^~~~~~~~~~~~~~
Gradient
Spectrus_esp32:813:13: error: 'effectWave' was not declared in this scope
effectWave(pos, 160, 64, 0, 16, 160, 4, 16, true);
^~~~~~~~~~
C:\Spectrus_esp32\Spectrus_esp32.ino:813:13: note: suggested alternative: 'execve'
effectWave(pos, 160, 64, 0, 16, 160, 4, 16, true);
^~~~~~~~~~
execve
Spectrus_esp32:834:13: error: 'effectSinus' was not declared in this scope
effectSinus(pos, 72, 96, 72, 64, 180, 255, 0, 48, false);
^~~~~~~~~~~
Spectrus_esp32:855:13: error: 'effectZebra' was not declared in this scope
effectZebra(pos, 0x9f0000, 0xe42b2b, 0xeaa819, 0, 0, true); //0xffff00
^~~~~~~~~~~
Spectrus_esp32:876:13: error: 'effectComet' was not declared in this scope
effectComet(pos, 1, 64, 128, 192, 64, 0);
^~~~~~~~~~~
Spectrus_esp32:896:13: error: 'effectFire' was not declared in this scope
effectFire(pos, 0, 0);
^~~~~~~~~~
Spectrus_esp32:916:13: error: 'effectRainbow' was not declared in this scope
effectRainbow(pos, 0, 0);
^~~~~~~~~~~~~
C:\Spectrus_esp32\Spectrus_esp32.ino:916:13: note: suggested alternative: 'fill_rainbow'
effectRainbow(pos, 0, 0);
^~~~~~~~~~~~~
fill_rainbow
Spectrus_esp32:929:13: error: 'effect2ChanelWay' was not declared in this scope
effect2ChanelWay(pos, 0, 155, 60, 70, 56);
^~~~~~~~~~~~~~~~
Spectrus_esp32:944:13: error: 'effect2ChanelRainbow' was not declared in this scope
effect2ChanelRainbow(pos, 0);
^~~~~~~~~~~~~~~~~~~~
Spectrus_esp32:959:13: error: 'effect2ChanelSinus' was not declared in this scope
effect2ChanelSinus(pos, 160, 0, 64, 40);
^~~~~~~~~~~~~~~~~~
Spectrus_esp32:979:13: error: 'backgroundTwocolor' was not declared in this scope
backgroundTwocolor(pos, 200, 160, 146, 160);
^~~~~~~~~~~~~~~~~~
C:\Spectrus_esp32\Spectrus_esp32.ino: In function 'void lamp_Mode()':
Spectrus_esp32:1134:11: error: 'Random_Pixels' was not declared in this scope
Random_Pixels();
^~~~~~~~~~~~~
Spectrus_esp32:1140:11: error: 'FadeTo' was not declared in this scope
FadeTo();
^~~~~~
Spectrus_esp32:1143:11: error: 'Confetti' was not declared in this scope
Confetti();
^~~~~~~~
C:\Spectrus_esp32\Spectrus_esp32.ino:1143:11: note: suggested alternative: 'confstr'
Confetti();
^~~~~~~~
confstr
Spectrus_esp32:1146:11: error: 'Juggle' was not declared in this scope
Juggle();
^~~~~~
Spectrus_esp32:1149:11: error: 'Fill' was not declared in this scope
Fill(color, 255, 255);
^~~~
C:\Spectrus_esp32\Spectrus_esp32.ino:1149:11: note: suggested alternative: 'kill'
Fill(color, 255, 255);
^~~~
kill
Spectrus_esp32:1153:13: error: 'RuningString' was not declared in this scope
RuningString(rtc.getTime("%H:%M:%S"));
^~~~~~~~~~~~
C:\Spectrus_esp32\Spectrus_esp32.ino:1153:13: note: suggested alternative: 'emptyString'
RuningString(rtc.getTime("%H:%M:%S"));
^~~~~~~~~~~~
emptyString
Spectrus_esp32:1155:13: error: 'RuningString' was not declared in this scope
RuningString(F("--:--:--"));
^~~~~~~~~~~~
C:\Spectrus_esp32\Spectrus_esp32.ino:1155:13: note: suggested alternative: 'emptyString'
RuningString(F("--:--:--"));
^~~~~~~~~~~~
emptyString
Spectrus_esp32:1162:13: error: 'RuningString' was not declared in this scope
RuningString(F("--:--:--"));
^~~~~~~~~~~~
C:\Spectrus_esp32\Spectrus_esp32.ino:1162:13: note: suggested alternative: 'emptyString'
RuningString(F("--:--:--"));
^~~~~~~~~~~~
emptyString
Spectrus_esp32:1166:11: error: 'RuningString' was not declared in this scope
RuningString(runningText);
^~~~~~~~~~~~
C:\Spectrus_esp32\Spectrus_esp32.ino:1166:11: note: suggested alternative: 'emptyString'
RuningString(runningText);
^~~~~~~~~~~~
emptyString
Spectrus_esp32:1169:11: error: 'Balls' was not declared in this scope
Balls();
^~~~~
Spectrus_esp32:1172:11: error: 'Lissajous' was not declared in this scope
Lissajous();
^~~~~~~~~
Spectrus_esp32:1175:11: error: 'Cycles' was not declared in this scope
Cycles();
^~~~~~
Spectrus_esp32:1178:11: error: 'Lissajous1' was not declared in this scope
Lissajous1();
^~~~~~~~~~
Spectrus_esp32:1182:11: error: 'Iridescence' was not declared in this scope
Iridescence(1, 255, 10);
^~~~~~~~~~~
Spectrus_esp32:1185:11: error: 'Sinusoid' was not declared in this scope
Sinusoid(0);
^~~~~~~~
C:\Spectrus_esp32\Spectrus_esp32.ino:1185:11: note: suggested alternative: 'fill_solid'
Sinusoid(0);
^~~~~~~~
fill_solid
C:\Spectrus_esp32\button_control.ino: In function 'void buttonTick()':
button_control:80:13: error: 'local_IP' was not declared in this scope
if (local_IP != "") {
^~~~~~~~
C:\Spectrus_esp32\button_control.ino:80:13: note: suggested alternative: 'locale_t'
if (local_IP != "") {
^~~~~~~~
locale_t
button_control:81:11: error: 'RuningString' was not declared in this scope
RuningString(local_IP);
^~~~~~~~~~~~
C:\Spectrus_esp32\button_control.ino:81:11: note: suggested alternative: 'emptyString'
RuningString(local_IP);
^~~~~~~~~~~~
emptyString
button_control:83:11: error: 'RuningString' was not declared in this scope
RuningString("Not connected...");
^~~~~~~~~~~~
C:\Spectrus_esp32\button_control.ino:83:11: note: suggested alternative: 'emptyString'
RuningString("Not connected...");
^~~~~~~~~~~~
emptyString
C:\Spectrus_esp32\button_control.ino: In function 'void buttonTick1()':
button_control:145:24: error: 'local_IP' was not declared in this scope
RuningString(local_IP);
^~~~~~~~
C:\Spectrus_esp32\button_control.ino:145:24: note: suggested alternative: 'locale_t'
RuningString(local_IP);
^~~~~~~~
locale_t
button_control:145:11: error: 'RuningString' was not declared in this scope
RuningString(local_IP);
^~~~~~~~~~~~
C:\Spectrus_esp32\button_control.ino:145:11: note: suggested alternative: 'emptyString'
RuningString(local_IP);
^~~~~~~~~~~~
emptyString
button_control:146:11: error: expected '}' before 'else'
} else {
^~~~
C:\Spectrus_esp32\button_control.ino:140:5: note: to match this '{'
{
^
button_control:147:11: error: 'RuningString' was not declared in this scope
RuningString("Not connected...");
^~~~~~~~~~~~
C:\Spectrus_esp32\button_control.ino:147:11: note: suggested alternative: 'emptyString'
RuningString("Not connected...");
^~~~~~~~~~~~
emptyString
C:\Spectrus_esp32\button_control.ino: At global scope:
button_control:151:3: error: expected declaration before '}' token
}
^
Несколько библиотек найдено для "FastLED_NeoMatrix.h"
Используется: C:\Users\STLee\Documents\Arduino\libraries\FastLED_NeoMatrix
Не используется: C:\Users\STLee\Documents\Arduino\libraries\FastLED_NeoMatrix-master
exit status 1
'effectGyver' was not declared in this scope