В программировании не шарю, а заказывать дороговато (от 5к)
переделал скетч GyverWheel (добавил кнопку и 3 потенциометра)
ошибка:
ругается на эту строку
Arduino: 1.8.10 (Windows 10), Плата:"Arduino Leonardo"
C:\Users\troll\Desktop\GyverWheel-master\firmware\GyverWheel\GyverWheel.ino: In function 'void calibration()':
GyverWheel:142:7: error: 'maxSC' was not declared in this scope
maxSC = analogRead(POT_SC);
^~~~~
C:\Users\troll\Desktop\GyverWheel-master\firmware\GyverWheel\GyverWheel.ino:142:7: note: suggested alternative: 'maxBR'
maxSC = analogRead(POT_SC);
^~~~~
maxBR
GyverWheel:143:7: error: 'maxGR' was not declared in this scope
maxGR = analogRead(POT_GR);
^~~~~
C:\Users\troll\Desktop\GyverWheel-master\firmware\GyverWheel\GyverWheel.ino:143:7: note: suggested alternative: 'maxBR'
maxGR = analogRead(POT_GR);
^~~~~
maxBR
GyverWheel:144:7: error: 'maxRC' was not declared in this scope
maxRC = analogRead(POT_RC);
^~~~~
C:\Users\troll\Desktop\GyverWheel-master\firmware\GyverWheel\GyverWheel.ino:144:7: note: suggested alternative: 'maxBR'
maxRC = analogRead(POT_RC);
^~~~~
maxBR
GyverWheel:149:20: error: 'maxSC' was not declared in this scope
EEPROM.put(14, maxSC);
^~~~~
C:\Users\troll\Desktop\GyverWheel-master\firmware\GyverWheel\GyverWheel.ino:149:20: note: suggested alternative: 'maxBR'
EEPROM.put(14, maxSC);
^~~~~
maxBR
GyverWheel:150:20: error: 'maxGR' was not declared in this scope
EEPROM.put(16, maxGR);
^~~~~
C:\Users\troll\Desktop\GyverWheel-master\firmware\GyverWheel\GyverWheel.ino:150:20: note: suggested alternative: 'maxBR'
EEPROM.put(16, maxGR);
^~~~~
maxBR
GyverWheel:151:20: error: 'maxRC' was not declared in this scope
EEPROM.put(18, maxRC);
^~~~~
C:\Users\troll\Desktop\GyverWheel-master\firmware\GyverWheel\GyverWheel.ino:151:20: note: suggested alternative: 'maxBR'
EEPROM.put(18, maxRC);
^~~~~
maxBR
Несколько библиотек найдено для "EEPROM.h"
Используется: C:\Program
Несколько библиотек найдено для "HID-Project.h"
Используется: C:\Program
Несколько библиотек найдено для "HID.h"
Используется: C:\Program
exit status 1
'maxSC' was not declared in this scope
Этот отчёт будет иметь больше информации с
включенной опцией Файл -> Настройки ->
"Показать подробный вывод во время компиляции"
переделал скетч GyverWheel (добавил кнопку и 3 потенциометра)
ошибка:
ругается на эту строку
Arduino: 1.8.10 (Windows 10), Плата:"Arduino Leonardo"
C:\Users\troll\Desktop\GyverWheel-master\firmware\GyverWheel\GyverWheel.ino: In function 'void calibration()':
GyverWheel:142:7: error: 'maxSC' was not declared in this scope
maxSC = analogRead(POT_SC);
^~~~~
C:\Users\troll\Desktop\GyverWheel-master\firmware\GyverWheel\GyverWheel.ino:142:7: note: suggested alternative: 'maxBR'
maxSC = analogRead(POT_SC);
^~~~~
maxBR
GyverWheel:143:7: error: 'maxGR' was not declared in this scope
maxGR = analogRead(POT_GR);
^~~~~
C:\Users\troll\Desktop\GyverWheel-master\firmware\GyverWheel\GyverWheel.ino:143:7: note: suggested alternative: 'maxBR'
maxGR = analogRead(POT_GR);
^~~~~
maxBR
GyverWheel:144:7: error: 'maxRC' was not declared in this scope
maxRC = analogRead(POT_RC);
^~~~~
C:\Users\troll\Desktop\GyverWheel-master\firmware\GyverWheel\GyverWheel.ino:144:7: note: suggested alternative: 'maxBR'
maxRC = analogRead(POT_RC);
^~~~~
maxBR
GyverWheel:149:20: error: 'maxSC' was not declared in this scope
EEPROM.put(14, maxSC);
^~~~~
C:\Users\troll\Desktop\GyverWheel-master\firmware\GyverWheel\GyverWheel.ino:149:20: note: suggested alternative: 'maxBR'
EEPROM.put(14, maxSC);
^~~~~
maxBR
GyverWheel:150:20: error: 'maxGR' was not declared in this scope
EEPROM.put(16, maxGR);
^~~~~
C:\Users\troll\Desktop\GyverWheel-master\firmware\GyverWheel\GyverWheel.ino:150:20: note: suggested alternative: 'maxBR'
EEPROM.put(16, maxGR);
^~~~~
maxBR
GyverWheel:151:20: error: 'maxRC' was not declared in this scope
EEPROM.put(18, maxRC);
^~~~~
C:\Users\troll\Desktop\GyverWheel-master\firmware\GyverWheel\GyverWheel.ino:151:20: note: suggested alternative: 'maxBR'
EEPROM.put(18, maxRC);
^~~~~
maxBR
Несколько библиотек найдено для "EEPROM.h"
Используется: C:\Program
Несколько библиотек найдено для "HID-Project.h"
Используется: C:\Program
Несколько библиотек найдено для "HID.h"
Используется: C:\Program
exit status 1
'maxSC' was not declared in this scope
Этот отчёт будет иметь больше информации с
включенной опцией Файл -> Настройки ->
"Показать подробный вывод во время компиляции"