Что значит ошибка expected unqualified-id before numeric constant? Как её исправить?

tzd
Offline
Зарегистрирован: 15.08.2020

Код ошибки "Arduino: 1.8.13 (Windows 10), Плата:"Arduino Nano, ATmega328P (Old Bootloader)"

In file included from C:\Users\Пенёк\Documents\Arduino\sketch_aug15a\sketch_aug15a.ino:4:0:

C:\Users\����\Documents\Arduino\libraries\Time-master/Time.h:1:2: warning: #warning "Please include TimeLib.h, not Time.h. Future versions will remove Time.h" [-Wcpp]

#warning "Please include TimeLib.h, not Time.h. Future versions will remove Time.h"

^~~~~~~

sketch_aug15a:9:11: error: expected unqualified-id before numeric constant

C:\Users\Пенёк\Documents\Arduino\sketch_aug15a\sketch_aug15a.ino: In function 'void setup()':

sketch_aug15a:120:7: error: unable to find numeric literal operator 'operator""dig_display.init'

C:\Users\Пенёк\Documents\Arduino\sketch_aug15a\sketch_aug15a.ino: In function 'void loop()':

C:\Users\Пенёк\Documents\Arduino\sketch_aug15a\sketch_aug15a.ino:166:27: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

sketch_aug15a:195:10: error: unable to find numeric literal operator 'operator""dig_display.display'

sketch_aug15a:197:10: error: unable to find numeric literal operator 'operator""dig_display.display'

sketch_aug15a:199:10: error: unable to find numeric literal operator 'operator""dig_display.display'

sketch_aug15a:201:10: error: unable to find numeric literal operator 'operator""dig_display.display'

sketch_aug15a:203:10: error: unable to find numeric literal operator 'operator""dig_display.point'

exit status 1

expected unqualified-id before numeric constant

Этот отчёт будет иметь больше информации с
включенной опцией Файл -> Настройки ->
"Показать подробный вывод во время компиляции""
Сам код:
#include
#include
#include
#include
#include "TM1637.h"
#define CLK 6
#define DIO 5

TM1637 4dig_display(CLK, DIO);

// для данных времени

int8_t ListTime[4]={0,0,0,0};

// для данных dd/mm

int8_t ListDay[4]={0,0,0,0};

// разделитель

boolean point=true;

// для смены время / день-месяц

unsigned long millist=0;

tmElements_t datetime;

OLED myOLED(4, 3, 4); //OLED myOLED(SDA, SCL, 8);

extern uint8_t SmallFont[];
extern uint8_t MediumNumbers[];
extern uint8_t BigNumbers[];

///// часы ..
byte decToBcd(byte val){
return ( (val/10*16) + (val%10) );
}

byte bcdToDec(byte val){
return ( (val/16*10) + (val%16) );
}

void setDateDs1307(byte second, // 0-59
byte minute, // 0-59
byte hour, // 1-23
byte dayOfWeek, // 1-7
byte dayOfMonth, // 1-28/29/30/31
byte month, // 1-12
byte year) // 0-99
{
Wire.beginTransmission(0x68);
Wire.write(0);
Wire.write(decToBcd(second));
Wire.write(decToBcd(minute));
Wire.write(decToBcd(hour));
Wire.write(decToBcd(dayOfWeek));
Wire.write(decToBcd(dayOfMonth));
Wire.write(decToBcd(month));
Wire.write(decToBcd(year));
Wire.endTransmission();
}

void getDateDs1307(byte *second,
byte *minute,
byte *hour,
byte *dayOfWeek,
byte *dayOfMonth,
byte *month,
byte *year)
{

Wire.beginTransmission(0x68);
Wire.write(0);
Wire.endTransmission();

Wire.requestFrom(0x68, 7);

*second = bcdToDec(Wire.read() & 0x7f);
*minute = bcdToDec(Wire.read());
*hour = bcdToDec(Wire.read() & 0x3f);
*dayOfWeek = bcdToDec(Wire.read());
*dayOfMonth = bcdToDec(Wire.read());
*month = bcdToDec(Wire.read());
*year = bcdToDec(Wire.read());
}

///// температура ..
float get3231Temp(){
byte tMSB, tLSB;
float temp3231;

Wire.beginTransmission(0x68);
Wire.write(0x11);
Wire.endTransmission();
Wire.requestFrom(0x68, 2);

if(Wire.available()) {
tMSB = Wire.read(); //2's complement int portion
tLSB = Wire.read(); //fraction portion

temp3231 = (tMSB & B01111111); //do 2's math on Tmsb
temp3231 += ( (tLSB >> 6) * 0.25 ); //only care about bits 7 & 8
}
else {
//oh noes, no data!
}

return temp3231;
}

void setup()
{
Serial.begin(9600); // запустить последовательный порт

// запуск дисплея

4dig_display.init();

// яркость дисплея

//tm1637.set(7);

Serial.begin(9600);
myOLED.begin();
Wire.begin();

// установка часов
byte second, minute, hour, dayOfWeek, dayOfMonth, month, year;
second = 30;
minute = 0;
hour = 14;
dayOfWeek = 3; // день недели
dayOfMonth = 1; // день
month = 4;
year = 14;

//setDateDs1307(00, 40, 15, 6, 15, 8, 2020);

}

void loop(){
byte second, minute, hour, dayOfWeek, dayOfMonth, month, year;
char week[8][10] = {"Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"};

getDateDs1307(&second, &minute, &hour, &dayOfWeek, &dayOfMonth, &month, &year);

char time[10];
char data[11];

snprintf(time, sizeof(time),"%02d:%02d:%02d",
hour, minute, second);

snprintf(data, sizeof(data), "%02d/%02d/%02d",
dayOfMonth, month, year);

myOLED.setFont(SmallFont);

myOLED.print(time, CENTER, 15);
myOLED.print(data, CENTER, 0);
myOLED.printNumF(get3231Temp(), 2, 55, 30);
myOLED.print("C", 43, 30);
myOLED.update();

// получение времени

if (RTC.read(datetime)) {

ListTime[0]= datetime.Hour/10;

ListTime[1]= datetime.Hour%10;

ListTime[2]= datetime.Minute/10;

ListTime[3]= datetime.Minute%10;

ListDay[0]= datetime.Day/10;

ListDay[1]= datetime.Day%10;

ListDay[2]= datetime.Month/10;

ListDay[3]= datetime.Month%10;

}

else {

// ошибка

4dig_display.display(0,ListDay[0]);

4dig_display.display(1,ListDay[1]);

4dig_display.display(2,ListDay[2]);

4dig_display.display(3,ListDay[3]);

4dig_display.point(false);

}

delay(500);

// поменять индикацию точек

point=!point;

delay(1000);
}

b707
Offline
Зарегистрирован: 26.05.2017

вставьте код по правилам, чтобы были номера строк, иначе невозможно обсуждать ошибки.

Что, реально код начинается с четырех пустых строк #include ? - это говорит о многом :)))

Bruzzer
Offline
Зарегистрирован: 17.03.2020

4dig_display

Имена не должны начинаться с цифры.

redwase725
Offline
Зарегистрирован: 06.12.2020

Помогитееееееее исправить ошибку Arduino: 1.8.13 (Windows 7), Плата:"Arduino Uno"

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
C:\Program Files\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files\Arduino\hardware -tools C:\Program Files\Arduino\tools-builder -tools C:\Program Files\Arduino\hardware\tools\avr -built-in-libraries C:\Program Files\Arduino\libraries -libraries C:\Users\x\Documents\Arduino\libraries -fqbn=arduino:avr:uno -vid-pid=2341_0043 -ide-version=10813 -build-path C:\Users\x\AppData\Local\Temp\arduino_build_733432 -warnings=none -build-cache C:\Users\x\AppData\Local\Temp\arduino_cache_741190 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arduinoOTA.path=C:\Program Files\Arduino\hardware\tools\avr -prefs=runtime.tools.arduinoOTA-1.3.0.path=C:\Program Files\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude.path=C:\Program Files\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=C:\Program Files\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc.path=C:\Program Files\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino7.path=C:\Program Files\Arduino\hardware\tools\avr -verbose C:\Users\x\AppData\Local\Temp\arduino_modified_sketch_969135\sketch_dec08a.ino
 
C:\Program Files\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files\Arduino\hardware -tools C:\Program Files\Arduino\tools-builder -tools C:\Program Files\Arduino\hardware\tools\avr -built-in-libraries C:\Program Files\Arduino\libraries -libraries C:\Users\x\Documents\Arduino\libraries -fqbn=arduino:avr:uno -vid-pid=2341_0043 -ide-version=10813 -build-path C:\Users\x\AppData\Local\Temp\arduino_build_733432 -warnings=none -build-cache C:\Users\x\AppData\Local\Temp\arduino_cache_741190 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arduinoOTA.path=C:\Program Files\Arduino\hardware\tools\avr -prefs=runtime.tools.arduinoOTA-1.3.0.path=C:\Program Files\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude.path=C:\Program Files\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=C:\Program Files\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc.path=C:\Program Files\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino7.path=C:\Program Files\Arduino\hardware\tools\avr -verbose C:\Users\x\AppData\Local\Temp\arduino_modified_sketch_969135\sketch_dec08a.ino
 
Using board 'uno' from platform in folder: C:\Program Files\Arduino\hardware\arduino\avr
 
Using core 'arduino' from platform in folder: C:\Program Files\Arduino\hardware\arduino\avr
 
Detecting libraries used...
 
"C:\\Program Files\\Arduino\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10813 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Program Files\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files\\Arduino\\hardware\\arduino\\avr\\variants\\standard" "C:\\Users\\x\\AppData\\Local\\Temp\\arduino_build_733432\\sketch\\sketch_dec08a.ino.cpp" -o nul -DARDUINO_LIB_DISCOVERY_PHASE
 
Alternatives for LiquidCrystal.h: [LiquidCrystal@1.0.7]
 
ResolveLibrary(LiquidCrystal.h)
 
  -> candidates: [LiquidCrystal@1.0.7]
 
"C:\\Program Files\\Arduino\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10813 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Program Files\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files\\Arduino\\hardware\\arduino\\avr\\variants\\standard" "-IC:\\Program Files\\Arduino\\libraries\\LiquidCrystal\\src" "C:\\Users\\x\\AppData\\Local\\Temp\\arduino_build_733432\\sketch\\sketch_dec08a.ino.cpp" -o nul -DARDUINO_LIB_DISCOVERY_PHASE
 
Using cached library dependencies for file: C:\Program Files\Arduino\libraries\LiquidCrystal\src\LiquidCrystal.cpp
 
Generating function prototypes...
 
"C:\\Program Files\\Arduino\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10813 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Program Files\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files\\Arduino\\hardware\\arduino\\avr\\variants\\standard" "-IC:\\Program Files\\Arduino\\libraries\\LiquidCrystal\\src" "C:\\Users\\x\\AppData\\Local\\Temp\\arduino_build_733432\\sketch\\sketch_dec08a.ino.cpp" -o "C:\\Users\\x\\AppData\\Local\\Temp\\arduino_build_733432\\preproc\\ctags_target_for_gcc_minus_e.cpp" -DARDUINO_LIB_DISCOVERY_PHASE
 
"C:\\Program Files\\Arduino\\tools-builder\\ctags\\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\\Users\\x\\AppData\\Local\\Temp\\arduino_build_733432\\preproc\\ctags_target_for_gcc_minus_e.cpp"
 
Компиляция скетча...
 
"C:\\Program Files\\Arduino\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10813 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Program Files\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files\\Arduino\\hardware\\arduino\\avr\\variants\\standard" "-IC:\\Program Files\\Arduino\\libraries\\LiquidCrystal\\src" "C:\\Users\\x\\AppData\\Local\\Temp\\arduino_build_733432\\sketch\\sketch_dec08a.ino.cpp" -o "C:\\Users\\x\\AppData\\Local\\Temp\\arduino_build_733432\\sketch\\sketch_dec08a.ino.cpp.o"
 
sketch_dec08a:5:1: error: expected unqualified-id before numeric constant
 
 0b00110,
 
 ^~~~~~~
 
Используем библиотеку LiquidCrystal версии 1.0.7 из папки: C:\Program Files\Arduino\libraries\LiquidCrystal 
 
exit status 1
 
expected unqualified-id before numeric constant
сам код
#include <LiquidCrystal.h>
const int rs = 12, en = 11, d4 = 5, d5 = 4, d6 = 3, d7 = 2;
LiquidCrystal lcd(rs, en, d4, d5, d6, d7);
byte v (8);
0b00110,
0b01000,
0b10000,
0b11110,
0b10001,
0b10001,
0b01110,
0b00000;
void setup() {
  lcd.begin(16, 2);
Serial.begin(9600);
}
void loop() {
lcd.print("v");
delay(1000);
lcd.clear();
}
Сорян за точто нет номеров строк но мне лень их писать
 
mykaida
mykaida аватар
Offline
Зарегистрирован: 12.07.2018

redwase725 пишет:

Сорян за точто нет номеров строк но мне лень их писать
 

Да тебе, с-ка, лень даже прочитать как программу вставить...

А так копай в: sketch_dec08a:5:1: error: expected unqualified-id before numeric constant

AndreyD
AndreyD аватар
Offline
Зарегистрирован: 07.10.2018

redwase725 пишет:

Сорян за точто нет номеров строк но мне лень их писать

)))

DetSimen
DetSimen аватар
Offline
Зарегистрирован: 25.01.2017

А нам лень в эту говнопростыню вглядываца. Так што давай, досвиданья. 

ua6em
ua6em аватар
Offline
Зарегистрирован: 17.08.2016

DetSimen пишет:

А нам лень в эту говнопростыню вглядываца. Так што давай, досвиданья. 

дак вглядывайся не вглядывайся, это что за фигня?
 

 byte v (8);
0b00110,
0b01000,
0b10000,
0b11110,
0b10001,
0b10001,
0b01110,
0b00000;

 

.sergo.
Offline
Зарегистрирован: 22.03.2021
помогите исправить 
 
Arduino: 1.8.13 (Windows 10), Плата:"Arduino Nano, ATmega328P"
 
 
 
 
C:\Users\afana\Desktop\GyverDrink-master\GyverDrink-master\firmware\ONE_PASS\ONE_PASS.ino:75:0: warning: "COLOR_DEBTH" redefined
 
 #define COLOR_DEBTH 2   // цветовая глубина: 1, 2, 3 (в байтах)
 
 
 
In file included from C:\Program Files (x86)\Arduino\libraries\microLED/microLED.h:40:0,
 
                 from C:\Users\afana\Desktop\GyverDrink-master\GyverDrink-master\firmware\ONE_PASS\ONE_PASS.ino:69:
 
C:\Program Files (x86)\Arduino\libraries\microLED/ws2812_send.h:37:0: note: this is the location of the previous definition
 
 #define COLOR_DEBTH 3
 
 
 
In file included from C:\Users\afana\Desktop\GyverDrink-master\GyverDrink-master\firmware\ONE_PASS\ONE_PASS.ino:69:0:
 
C:\Program Files (x86)\Arduino\libraries\microLED/microLED.h:58:1: warning: 'typedef' was ignored in this declaration
 
 typedef struct LEDdata {
 
 ^~~~~~~
 
ONE_PASS:58:17: error: expected unqualified-id before numeric constant
 
 #define BTN_PIN 7
 
                 ^
 
C:\Users\afana\Desktop\GyverDrink-master\GyverDrink-master\firmware\ONE_PASS\ONE_PASS.ino:84:10: note: in expansion of macro 'BTN_PIN'
 
 GButton (BTN_PIN);
 
          ^~~~~~~
 
ONE_PASS:58:17: error: expected ')' before numeric constant
 
 #define BTN_PIN 7
 
                 ^
 
C:\Users\afana\Desktop\GyverDrink-master\GyverDrink-master\firmware\ONE_PASS\ONE_PASS.ino:84:10: note: in expansion of macro 'BTN_PIN'
 
 GButton (BTN_PIN);
 
          ^~~~~~~
 
ONE_PASS:59:19: error: expected unqualified-id before numeric constant
 
 #define BTN_L_PIN 8
 
                   ^
 
C:\Users\afana\Desktop\GyverDrink-master\GyverDrink-master\firmware\ONE_PASS\ONE_PASS.ino:85:10: note: in expansion of macro 'BTN_L_PIN'
 
 GButton (BTN_L_PIN);
 
          ^~~~~~~~~
 
ONE_PASS:59:19: error: expected ')' before numeric constant
 
 #define BTN_L_PIN 8
 
                   ^
 
C:\Users\afana\Desktop\GyverDrink-master\GyverDrink-master\firmware\ONE_PASS\ONE_PASS.ino:85:10: note: in expansion of macro 'BTN_L_PIN'
 
 GButton (BTN_L_PIN);
 
          ^~~~~~~~~
 
ONE_PASS:60:19: error: expected unqualified-id before numeric constant
 
 #define BTN_R_PIN 9
 
                   ^
 
C:\Users\afana\Desktop\GyverDrink-master\GyverDrink-master\firmware\ONE_PASS\ONE_PASS.ino:86:10: note: in expansion of macro 'BTN_R_PIN'
 
 GButton (BTN_R_PIN);
 
          ^~~~~~~~~
 
ONE_PASS:60:19: error: expected ')' before numeric constant
 
 #define BTN_R_PIN 9
 
                   ^
 
C:\Users\afana\Desktop\GyverDrink-master\GyverDrink-master\firmware\ONE_PASS\ONE_PASS.ino:86:10: note: in expansion of macro 'BTN_R_PIN'
 
 GButton (BTN_R_PIN);
 
          ^~~~~~~~~
 
ONE_PASS:61:19: error: expected unqualified-id before numeric constant
 
 #define BTN_P_PIN 10
 
                   ^
 
C:\Users\afana\Desktop\GyverDrink-master\GyverDrink-master\firmware\ONE_PASS\ONE_PASS.ino:87:10: note: in expansion of macro 'BTN_P_PIN'
 
 GButton (BTN_P_PIN);
 
          ^~~~~~~~~
 
ONE_PASS:61:19: error: expected ')' before numeric constant
 
 #define BTN_P_PIN 10
 
                   ^
 
C:\Users\afana\Desktop\GyverDrink-master\GyverDrink-master\firmware\ONE_PASS\ONE_PASS.ino:87:10: note: in expansion of macro 'BTN_P_PIN'
 
 GButton (BTN_P_PIN);
 
          ^~~~~~~~~
 
ONE_PASS:59:19: error: expected unqualified-id before numeric constant
 
 #define BTN_L_PIN 8
 
                   ^
 
C:\Users\afana\Desktop\GyverDrink-master\GyverDrink-master\firmware\ONE_PASS\ONE_PASS.ino:88:1: note: in expansion of macro 'BTN_L_PIN'
 
 BTN_L_PIN.setStepTimeout(100);
 
 ^~~~~~~~~
 
ONE_PASS:60:19: error: expected unqualified-id before numeric constant
 
 #define BTN_R_PIN 9
 
                   ^
 
C:\Users\afana\Desktop\GyverDrink-master\GyverDrink-master\firmware\ONE_PASS\ONE_PASS.ino:89:1: note: in expansion of macro 'BTN_R_PIN'
 
 BTN_R_PIN.setStepTimeout(100);
 
 ^~~~~~~~~
 
C:\Users\afana\Desktop\GyverDrink-master\GyverDrink-master\firmware\ONE_PASS\a_setup.ino: In function 'void setup()':
 
a_setup:44:3: error: 'dispMode' was not declared in this scope
 
   dispMode();       // выводим на дисплей стандартные значения
 
   ^~~~~~~~
 
C:\Users\afana\Desktop\GyverDrink-master\GyverDrink-master\firmware\ONE_PASS\a_setup.ino:44:3: note: suggested alternative: 'pinMode'
 
   dispMode();       // выводим на дисплей стандартные значения
 
   ^~~~~~~~
 
   pinMode
 
a_setup:45:3: error: 'timeoutReset' was not declared in this scope
 
   timeoutReset();   // сброс таймаута
 
   ^~~~~~~~~~~~
 
C:\Users\afana\Desktop\GyverDrink-master\GyverDrink-master\firmware\ONE_PASS\a_setup.ino:45:3: note: suggested alternative: 'timeoutState'
 
   timeoutReset();   // сброс таймаута
 
   ^~~~~~~~~~~~
 
   timeoutState
 
C:\Users\afana\Desktop\GyverDrink-master\GyverDrink-master\firmware\ONE_PASS\b_loop.ino: In function 'void loop()':
 
b_loop:4:3: error: 'Btn_R' was not declared in this scope
 
   Btn_R.tick();
 
   ^~~~~
 
b_loop:5:3: error: 'Btn_L' was not declared in this scope
 
   Btn_L.tick();
 
   ^~~~~
 
b_loop:6:3: error: 'btnTick' was not declared in this scope
 
   btnTick();
 
   ^~~~~~~
 
b_loop:7:3: error: 'flowTick' was not declared in this scope
 
   flowTick();
 
   ^~~~~~~~
 
b_loop:8:3: error: 'LEDtick' was not declared in this scope
 
   LEDtick();
 
   ^~~~~~~
 
C:\Users\afana\Desktop\GyverDrink-master\GyverDrink-master\firmware\ONE_PASS\b_loop.ino:8:3: note: suggested alternative: 'LEDtimer'
 
   LEDtick();
 
   ^~~~~~~
 
   LEDtimer
 
b_loop:9:3: error: 'timeoutTick' was not declared in this scope
 
   timeoutTick();
 
   ^~~~~~~~~~~
 
C:\Users\afana\Desktop\GyverDrink-master\GyverDrink-master\firmware\ONE_PASS\b_loop.ino:9:3: note: suggested alternative: 'timeoutState'
 
   timeoutTick();
 
   ^~~~~~~~~~~
 
   timeoutState
 
C:\Users\afana\Desktop\GyverDrink-master\GyverDrink-master\firmware\ONE_PASS\c_func.ino: In function 'void serviceMode()':
 
C:\Users\afana\Desktop\GyverDrink-master\GyverDrink-master\firmware\ONE_PASS\c_func.ino:6:61: warning: invalid conversion from 'byte* {aka unsigned char*}' to 'int8_t* {aka signed char*}' [-fpermissive]
 
     disp.runningString(serviceText, sizeof(serviceText), 150);
 
                                                             ^
 
In file included from C:\Users\afana\Desktop\GyverDrink-master\GyverDrink-master\firmware\ONE_PASS\ONE_PASS.ino:67:0:
 
C:\Program Files (x86)\Arduino\libraries\GyverTM1637/GyverTM1637.h:46:7: note:   initializing argument 1 of 'void GyverTM1637::runningString(int8_t*, byte, int)'
 
  void runningString(int8_t DispData[], byte amount, int delayMs);    // бегущая строка (array, sizeof(array), задержка в мс)
 
       ^~~~~~~~~~~~~
 
c_func:17:7: error: 'enc' was not declared in this scope
 
       enc.tick();
 
       ^~~
 
c_func:21:26: error: 'BTN_POMP_PIN' was not declared in this scope
 
         if (!digitalRead(BTN_POMP_PIN)) {
 
                          ^~~~~~~~~~~~
 
C:\Users\afana\Desktop\GyverDrink-master\GyverDrink-master\firmware\ONE_PASS\c_func.ino:21:26: note: suggested alternative: 'BTN_P_PIN'
 
         if (!digitalRead(BTN_POMP_PIN)) {
 
                          ^~~~~~~~~~~~
 
                          BTN_P_PIN
 
c_func:43:8: error: 'Btn_R' was not declared in this scope
 
        Btn_R.tick();
 
        ^~~~~
 
c_func:44:8: error: 'Btn_L' was not declared in this scope
 
        Btn_L.tick();
 
        ^~~~~
 
c_func:45:47: error: 'per' was not declared in this scope
 
        if (Btn_R.isClick() || Btn_R.isStep()) per++;
 
                                               ^~~
 
c_func:46:47: error: 'per' was not declared in this scope
 
        if (Btn_L.isClick() || Btn_L.isStep()) per--;
 
                                               ^~~
 
c_func:53:11: error: 'btn' was not declared in this scope
 
       if (btn.holded()) {
 
           ^~~
 
c_func:55:9: error: break statement not within loop or switch
 
         break;
 
         ^~~~~
 
C:\Users\afana\Desktop\GyverDrink-master\GyverDrink-master\firmware\ONE_PASS\c_func.ino: At global scope:
 
c_func:58:3: error: expected declaration before '}' token
 
   }
 
   ^
 
exit status 1
 
expected unqualified-id before numeric constant
 
 
 
Этот отчёт будет иметь больше информации с
включенной опцией Файл -> Настройки ->
"Показать подробный вывод во время компиляции"
 
Rumata
Rumata аватар
Offline
Зарегистрирован: 29.03.2019

Это у гайвера DEBTH?