Страница 1 из 1

помогите со скетчам

Добавлено: 24 сен 2018, 10:04
drimer
akva.ino
как мне исправить ети ошибки ?

помогите со скетчам

Добавлено: 24 сен 2018, 10:56
Phazz
Текст ошибки приложите пожалуйста.

помогите со скетчам

Добавлено: 24 сен 2018, 14:11
drimer
Arduino: 1.8.1 (Windows 7), Плата:"Arduino Nano, ATmega328"

C:\Users\виктор\Desktop\akva\akva.ino: In function 'void loop()':

akva:236: error: '_nextionSaveDataPCO_P0_E18' was not declared in this scope

akva:237: error: '_nextionSaveDataPCO_P0_E18' was not declared in this scope

C:\Users\виктор\Desktop\akva\akva.ino: In function '_nextionLissenStruct nextionListen(byte)':

C:\Users\виктор\Desktop\akva\akva.ino:501:27: warning: left shift count >= width of type

C:\Users\виктор\Desktop\akva\akva.ino:501:44: warning: left shift count >= width of type

exit status 1
'_nextionSaveDataPCO_P0_E18' was not declared in this scope

помогите со скетчам

Добавлено: 24 сен 2018, 20:20
Labu559
Ув.[ref]drimer[/ref]
drimer писал(а): 21 сен 2018, 22:16как ето задеклорировать '_nextionSaveDataPCO_P0_E18' was not declared in this scope?
Так как Вы спросили на сей раз об ошибках в скетче, и с учётом "раздела для начинающих" предлагаю Вам сначала ознакомиться с этой информацией.
[spoiler title=Дальше у Вас должно получиться вот так]
AquaControll.png
[/spoiler] Только это должна была сделать FLProg.
drimer писал(а): 24 сен 2018, 10:04как мне исправить ети ошибки ?
Ошибки в скетче скорее всего указывают на ошибки в Вашем проекте. И даже дописав руками (см.выше), [spoiler title=всё-равно два параметра у Вас утеряются из-за сдвига.]
WarningDrimer.png
о чём и намекает компилятор[/spoiler]
А дальше мельком просмотрев Ваш проект хочу обратить Ваше внимание на запись в EEPROM и отправку на блоки установки часов параметров: час, минута, месяц, число и т.д., которые у Вас размером long (32-бита) хотя достаточно byte(8-bit). Извините, если ошибаюсь (с Нексионами не знаком), но как по мне, то уж лучше попробуйте вдумчиво заново собрать свой проект с нуля. Удачи!

помогите со скетчам

Добавлено: 25 сен 2018, 10:28
drimer
спасибо за подсказку но есче одна ошибка выскочела Arduino: 1.8.1 (Windows 7), [spoiler]Плата:"Arduino/Genuino Uno"

Изменены опции сборки, пересобираем все
pr1:15: error: expected initializer before 'struct'

pr1:20: error: '_nextionLissenStruct' does not name a type

C:\Users\виктор\AppData\Local\Temp\flprog\pr1\pr1.ino: In function 'void setup()':

pr1:158: error: invalid use of incomplete type 'struct _nextionLissenStruct'

pr1:455: error: forward declaration of 'struct _nextionLissenStruct'

pr1:159: error: invalid use of incomplete type 'struct _nextionLissenStruct'

pr1:455: error: forward declaration of 'struct _nextionLissenStruct'

C:\Users\виктор\AppData\Local\Temp\flprog\pr1\pr1.ino: In function 'void loop()':

pr1:187: error: '_nextionTempLissen' was not declared in this scope

pr1:187: error: invalid use of incomplete type 'struct _nextionLissenStruct'

pr1:455: error: forward declaration of 'struct _nextionLissenStruct'

pr1:211: error: invalid use of incomplete type 'struct _nextionLissenStruct'

pr1:455: error: forward declaration of 'struct _nextionLissenStruct'

pr1:215: error: '_nextionTempLissen' was not declared in this scope

pr1:215: error: invalid use of incomplete type 'struct _nextionLissenStruct'

pr1:455: error: forward declaration of 'struct _nextionLissenStruct'

pr1:237: error: '_nextionSaveDataPCO_P0_E18' was not declared in this scope

pr1:238: error: '_nextionSaveDataPCO_P0_E18' was not declared in this scope

pr1:239: error: invalid use of incomplete type 'struct _nextionLissenStruct'

pr1:455: error: forward declaration of 'struct _nextionLissenStruct'

pr1:241: error: invalid use of incomplete type 'struct _nextionLissenStruct'

pr1:455: error: forward declaration of 'struct _nextionLissenStruct'

pr1:245: error: '_nextionTempLissen' was not declared in this scope

pr1:245: error: invalid use of incomplete type 'struct _nextionLissenStruct'

pr1:455: error: forward declaration of 'struct _nextionLissenStruct'

pr1:261: error: '_nextionTempLissen' was not declared in this scope

pr1:261: error: invalid use of incomplete type 'struct _nextionLissenStruct'

pr1:455: error: forward declaration of 'struct _nextionLissenStruct'

pr1:277: error: '_nextionTempLissen' was not declared in this scope

pr1:277: error: invalid use of incomplete type 'struct _nextionLissenStruct'

pr1:455: error: forward declaration of 'struct _nextionLissenStruct'

pr1:296: error: '_nextionTempLissen' was not declared in this scope

pr1:296: error: invalid use of incomplete type 'struct _nextionLissenStruct'

pr1:455: error: forward declaration of 'struct _nextionLissenStruct'

pr1:306: error: '_nextionTempLissen' was not declared in this scope

pr1:306: error: invalid use of incomplete type 'struct _nextionLissenStruct'

pr1:455: error: forward declaration of 'struct _nextionLissenStruct'

pr1:316: error: '_nextionTempLissen' was not declared in this scope

pr1:316: error: invalid use of incomplete type 'struct _nextionLissenStruct'

pr1:455: error: forward declaration of 'struct _nextionLissenStruct'

pr1:340: error: '_nextionTempLissen' was not declared in this scope

pr1:340: error: invalid use of incomplete type 'struct _nextionLissenStruct'

pr1:455: error: forward declaration of 'struct _nextionLissenStruct'

pr1:350: error: '_nextionTempLissen' was not declared in this scope

pr1:350: error: invalid use of incomplete type 'struct _nextionLissenStruct'

pr1:455: error: forward declaration of 'struct _nextionLissenStruct'

pr1:368: error: invalid use of incomplete type 'struct _nextionLissenStruct'

pr1:455: error: forward declaration of 'struct _nextionLissenStruct'

pr1:379: error: invalid use of incomplete type 'struct _nextionLissenStruct'

pr1:455: error: forward declaration of 'struct _nextionLissenStruct'

pr1:386: error: '_nextionTempLissen' was not declared in this scope

pr1:386: error: invalid use of incomplete type 'struct _nextionLissenStruct'

pr1:455: error: forward declaration of 'struct _nextionLissenStruct'

pr1:395: error: '_nextionTempLissen' was not declared in this scope

pr1:395: error: invalid use of incomplete type 'struct _nextionLissenStruct'

pr1:455: error: forward declaration of 'struct _nextionLissenStruct'

pr1:408: error: invalid use of incomplete type 'struct _nextionLissenStruct'

pr1:455: error: forward declaration of 'struct _nextionLissenStruct'

pr1:414: error: '_nextionTempLissen' was not declared in this scope

pr1:414: error: invalid use of incomplete type 'struct _nextionLissenStruct'

pr1:455: error: forward declaration of 'struct _nextionLissenStruct'

C:\Users\виктор\AppData\Local\Temp\flprog\pr1\pr1.ino: In function '_nextionLissenStruct nextionSendCommand(const char*, byte)':

pr1:455: error: return type 'struct _nextionLissenStruct' is incomplete

pr1:455: error: ambiguating new declaration of 'void nextionSendCommand(const char*, byte)'

C:\Users\виктор\AppData\Local\Temp\flprog\pr1\pr1.ino:455:29: note: old declaration '_nextionLissenStruct nextionSendCommand(const char*, byte)'

pr1:462: error: invalid use of incomplete type 'struct _nextionLissenStruct'

pr1:455: error: forward declaration of 'struct _nextionLissenStruct'

C:\Users\виктор\AppData\Local\Temp\flprog\pr1\pr1.ino: In function '_nextionLissenStruct nextionListen(byte)':

pr1:464: error: return type 'struct _nextionLissenStruct' is incomplete

pr1:464: error: ambiguating new declaration of 'void nextionListen(byte)'

C:\Users\виктор\AppData\Local\Temp\flprog\pr1\pr1.ino:464:29: note: old declaration '_nextionLissenStruct nextionListen(byte)'

pr1:470: error: aggregate '_nextionLissenStruct temp' has incomplete type and cannot be defined

C:\Users\виктор\AppData\Local\Temp\flprog\pr1\pr1.ino:502:27: warning: left shift count >= width of type

C:\Users\виктор\AppData\Local\Temp\flprog\pr1\pr1.ino:502:44: warning: left shift count >= width of type

C:\Users\виктор\AppData\Local\Temp\flprog\pr1\pr1.ino: In function 'int nextionAskPageNamper(byte)':

pr1:514: error: aggregate '_nextionLissenStruct temp' has incomplete type and cannot be defined

pr1:515: error: invalid use of incomplete type 'struct _nextionLissenStruct'

pr1:455: error: forward declaration of 'struct _nextionLissenStruct'

Несколько библиотек найдено для "OneWire.h"
Используется: c:\Program Files (x86)\FLProg\ideV2\portable\sketchbook\libraries\OneWire
Не используется: c:\Program Files (x86)\FLProg\ideV2\libraries\OneWire
exit status 1
expected initializer before 'struct'[/spoiler]

помогите со скетчам

Добавлено: 25 сен 2018, 16:20
Dev1
drimer писал(а): 25 сен 2018, 10:28спасибо за подсказку но есче одна ошибка выскочела
А кто будет ; ставить в конце записанной строки?

Отправлено спустя 1 минуту 45 секунд:
Надеюсь со следующей ошибкой сами справитесь и не будете создавать 3 тему... :senile:

помогите со скетчам

Добавлено: 25 сен 2018, 17:54
drimer
[ref]Dev1[/ref], блогодарю за терпениеи помосчь :smile236:

Отправлено спустя 39 минут 48 секунд:
извините дурака другие ошибки выскачили куда нада ставить круглые скобки
[spoiler]C:\Users\виктор\Desktop\akva\akva.ino: In function 'void loop()':

C:\Users\виктор\Desktop\akva\akva.ino:188:34: warning: suggest parentheses around assignment used as truth value [-Wparentheses]

C:\Users\виктор\Desktop\akva\akva.ino:216:34: warning: suggest parentheses around assignment used as truth value [-Wparentheses]

C:\Users\виктор\Desktop\akva\akva.ino:246:34: warning: suggest parentheses around assignment used as truth value [-Wparentheses]

C:\Users\виктор\Desktop\akva\akva.ino:262:34: warning: suggest parentheses around assignment used as truth value [-Wparentheses]

C:\Users\виктор\Desktop\akva\akva.ino:278:34: warning: suggest parentheses around assignment used as truth value [-Wparentheses]

C:\Users\виктор\Desktop\akva\akva.ino:297:34: warning: suggest parentheses around assignment used as truth value [-Wparentheses]

C:\Users\виктор\Desktop\akva\akva.ino:307:34: warning: suggest parentheses around assignment used as truth value [-Wparentheses]

C:\Users\виктор\Desktop\akva\akva.ino:317:34: warning: suggest parentheses around assignment used as truth value [-Wparentheses]

C:\Users\виктор\Desktop\akva\akva.ino:341:34: warning: suggest parentheses around assignment used as truth value [-Wparentheses]

C:\Users\виктор\Desktop\akva\akva.ino:351:34: warning: suggest parentheses around assignment used as truth value [-Wparentheses]

C:\Users\виктор\Desktop\akva\akva.ino:387:34: warning: suggest parentheses around assignment used as truth value [-Wparentheses]

C:\Users\виктор\Desktop\akva\akva.ino:396:34: warning: suggest parentheses around assignment used as truth value [-Wparentheses]

C:\Users\виктор\Desktop\akva\akva.ino:415:34: warning: suggest parentheses around assignment used as truth value [-Wparentheses]

C:\Users\виктор\Desktop\akva\akva.ino: In function '_nextionLissenStruct nextionListen(byte)':

C:\Users\виктор\Desktop\akva\akva.ino:502:27: warning: left shift count >= width of type

C:\Users\виктор\Desktop\akva\akva.ino:502:44: warning: left shift count >= width of type[/spoiler]

помогите со скетчам

Добавлено: 25 сен 2018, 20:10
Dev1
drimer писал(а): 25 сен 2018, 17:54извините дурака другие ошибки выскачили куда нада ставить круглые скобки
:smile14:
[spoiler]Скетч использует 16608 байт (51%) памяти устройства. Всего доступно 32256 байт.
Глобальные переменные используют 934 байт (45%) динамической памяти, оставляя 1114 байт для локальных переменных. Максимум: 2048 байт.[/spoiler]
akva.ino