Hello, I have a problem with the sketch, and I'm just a beginner downloaded the sketch from the Internet, maybe an error in the constant.Please help me fix this problem.
this is error message
Arduino: 1.8.2 (Windows 10), Плата:"Arduino Uno"
Внимание: platform.txt из ядра 'Arduino AVR Boards' содержит устаревшие recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{build.path}/{archive_file}" "{object_file}", автоматически преобразовано в recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{archive_file_path}" "{object_file}". Ожидайте обновления ядра.
C:\Users\User\Downloads\source_1_6\source_1_6.ino: In function 'void displayNumber(int, bool)':
source_1_6:385: error: default argument given for parameter 2 of 'void displayNumber(int, bool)' [-fpermissive]
void displayNumber(int number, bool showLeadZeros=false)
^
source_1_6:128: error: after previous specification in 'void displayNumber(int, bool)' [-fpermissive]
void displayNumber(int, bool=false);// Выводит на индикатор цифру
^
C:\Users\User\Downloads\source_1_6\source_1_6.ino: In function 'void setTimer(bool)':
source_1_6:448: error: default argument given for parameter 1 of 'void setTimer(bool)' [-fpermissive]
void setTimer(bool on = true)
^
source_1_6:129: error: after previous specification in 'void setTimer(bool)' [-fpermissive]
void setTimer(bool=true); // Включает (true) или выключает (false) таймер
^
C:\Users\User\Downloads\source_1_6\source_1_6.ino: In function 'void waitForRelease(bool)':
source_1_6:524: error: default argument given for parameter 1 of 'void waitForRelease(bool)' [-fpermissive]
void waitForRelease(bool showTime = true)
^
source_1_6:136: error: after previous specification in 'void waitForRelease(bool)' [-fpermissive]
void waitForRelease(bool=true); // Ожидание отпускания всех кнопок (при этом показывается время)
^
exit status 1
default argument given for parameter 2 of 'void displayNumber(int, bool)' [-fpermissive]
Этот отчёт будет иметь больше информации с
включенной опцией Файл -> Настройки ->
"Показать подробный вывод во время компиляции"
source_1_6.ino (22.9 KB)