Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

проблема с кодом (problem with code) #1

Open
GrungeK opened this issue Oct 18, 2018 · 13 comments
Open

проблема с кодом (problem with code) #1

GrungeK opened this issue Oct 18, 2018 · 13 comments

Comments

@GrungeK
Copy link

GrungeK commented Oct 18, 2018

При компиляции кода, при включении функции #include "Commands.h", возникает ошибка во вкладке Commands.h "decode_results results;"
Как можно устранить данную проблему?

@jasoncoon jasoncoon changed the title проблема с кодом проблема с кодом (problem with code) Oct 18, 2018
@jasoncoon
Copy link
Contributor

via https://translate.google.com

When compiling code, when you turn on the function #include "Commands.h", an error occurs in the Commands.h tab "decode_results results;"
How can I fix this problem?

You'll need to uncomment quite a few lines to get the IR remote working, starting with:

There's probably more, but you should be able to track them down.

@jasoncoon
Copy link
Contributor

Does it work as-is, without IR?

@GrungeK
Copy link
Author

GrungeK commented Oct 18, 2018

Он работает как есть, без IR?

Да, работает. Также была проблема с синхронизацией времени и существует проблема с зависанием при долгой работе модуля D1 mini

@GrungeK
Copy link
Author

GrungeK commented Oct 18, 2018

через https://translate.google.com

При компиляции кода при включении функции #include «Commands.h» на вкладке Commands.h появляется ошибка «decode_results results»;
Как я могу исправить эту проблему?

Вам нужно раскомментировать несколько строк, чтобы получить работу ИК-пульта, начиная с:

Там, вероятно, больше, но вы должны иметь возможность отслеживать их.

включил все данные функции и при компиляции вышла переменная ошибка exit status 1 'IRrecv' does not name a type

@jasoncoon
Copy link
Contributor

included all these functions and when compiling the variable error was issued exit status 1 'IRrecv' doesn’t name a type

Do you have the IRremoteESP8266 library installed?

There are more instructions for getting everything working on the project this one is based on here:

https://github.com/jasoncoon/esp8266-fastled-webserver

@GrungeK
Copy link
Author

GrungeK commented Oct 18, 2018

включал все эти функции и при компиляции ошибки переменной был выдан статус выхода 1 'IRrecv' не называет тип

У вас установлена ​​библиотека IRremoteESP8266?

Есть больше инструкций для того, чтобы все работает над проектом, на котором он основан:

https://github.com/jasoncoon/esp8266-fastled-webserver

да, библиотека установлена с данного проекта, но к сожалению всё равно возникает данная ошибка

@jasoncoon
Copy link
Contributor

Please enable verbose compiler output and post the full output here.

@GrungeK
Copy link
Author

GrungeK commented Oct 18, 2018

In file included from C:\Users\Grunge\Downloads\РјРѕС‘\eclipse-v2-master\eclipse-v2\eclipse-v2.ino:145:0:

sketch\TwinkleFOX.h:96:1: warning: multi-line comment [-Wcomment]

 //     / \

 ^

In file included from C:\Users\Grunge\Downloads\РјРѕС‘\eclipse-v2-master\eclipse-v2\eclipse-v2.ino:20:0:

C:\Users\Grunge\Documents\Arduino\libraries\FastLED-3.1.8/FastLED.h:17:21: note: #pragma message: FastLED version 3.001.008

 #    pragma message "FastLED version 3.001.008"

                     ^

In file included from C:\Users\Grunge\Documents\Arduino\libraries\FastLED-3.1.8/FastLED.h:68:0,

                 from C:\Users\Grunge\Downloads\РјРѕС‘\eclipse-v2-master\eclipse-v2\eclipse-v2.ino:20:

C:\Users\Grunge\Documents\Arduino\libraries\FastLED-3.1.8/fastspi.h:110: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"

                       ^

In file included from C:\Users\Grunge\Downloads\РјРѕС‘\eclipse-v2-master\eclipse-v2\eclipse-v2.ino:41:0:

sketch\Field.h:37:1: warning: 'typedef' was ignored in this declaration [enabled by default]

 };

 ^

eclipse-v2:46: error: 'IRrecv' does not name a type

In file included from C:\Users\Grunge\Downloads\РјРѕС‘\eclipse-v2-master\eclipse-v2\eclipse-v2.ino:48:0:

sketch\Commands.h: In function 'long unsigned int decodeIRCode()':

Commands.h:179: error: 'decode_results' was not declared in this scope

   decode_results results;

   ^

Commands.h:179: error: expected ';' before 'results'

   decode_results results;

                  ^

Commands.h:181: error: 'results' was not declared in this scope

   results.value = 0;

   ^

Commands.h:184: error: 'irReceiver' was not declared in this scope

   if (irReceiver.decode(&results)) {

       ^

In file included from C:\Users\Grunge\Downloads\РјРѕС‘\eclipse-v2-master\eclipse-v2\eclipse-v2.ino:63:0:

sketch\FSBrowser.h: In function 'bool handleFileRead(String)':

sketch\FSBrowser.h:43:12: warning: unused variable 'sent' [-Wunused-variable]

     size_t sent = webServer.streamFile(file, contentType);

            ^

C:\Users\Grunge\Downloads\РјРѕС‘\eclipse-v2-master\eclipse-v2\eclipse-v2.ino: In function 'void setup()':

C:\Users\Grunge\Downloads\РјРѕС‘\eclipse-v2-master\eclipse-v2\eclipse-v2.ino:273:46: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]

C:\Users\Grunge\Downloads\РјРѕС‘\eclipse-v2-master\eclipse-v2\eclipse-v2.ino: In function 'void webSocketEvent(uint8_t, WStype_t, uint8_t*, size_t)':

C:\Users\Grunge\Downloads\РјРѕС‘\eclipse-v2-master\eclipse-v2\eclipse-v2.ino:503:10: warning: enumeration value 'WStype_ERROR' not handled in switch [-Wswitch]

C:\Users\Grunge\Downloads\РјРѕС‘\eclipse-v2-master\eclipse-v2\eclipse-v2.ino:503:10: warning: enumeration value 'WStype_FRAGMENT_TEXT_START' not handled in switch [-Wswitch]

C:\Users\Grunge\Downloads\РјРѕС‘\eclipse-v2-master\eclipse-v2\eclipse-v2.ino:503:10: warning: enumeration value 'WStype_FRAGMENT_BIN_START' not handled in switch [-Wswitch]

C:\Users\Grunge\Downloads\РјРѕС‘\eclipse-v2-master\eclipse-v2\eclipse-v2.ino:503:10: warning: enumeration value 'WStype_FRAGMENT' not handled in switch [-Wswitch]

C:\Users\Grunge\Downloads\РјРѕС‘\eclipse-v2-master\eclipse-v2\eclipse-v2.ino:503:10: warning: enumeration value 'WStype_FRAGMENT_FIN' not handled in switch [-Wswitch]

C:\Users\Grunge\Downloads\РјРѕС‘\eclipse-v2-master\eclipse-v2\eclipse-v2.ino: In function 'void handleIrInput()':

C:\Users\Grunge\Downloads\РјРѕС‘\eclipse-v2-master\eclipse-v2\eclipse-v2.ino:547:10: warning: enumeration value 'None' not handled in switch [-Wswitch]

C:\Users\Grunge\Downloads\РјРѕС‘\eclipse-v2-master\eclipse-v2\eclipse-v2.ino:547:10: warning: enumeration value 'Left' not handled in switch [-Wswitch]

C:\Users\Grunge\Downloads\РјРѕС‘\eclipse-v2-master\eclipse-v2\eclipse-v2.ino:547:10: warning: enumeration value 'Right' not handled in switch [-Wswitch]

C:\Users\Grunge\Downloads\РјРѕС‘\eclipse-v2-master\eclipse-v2\eclipse-v2.ino:547:10: warning: enumeration value 'Select' not handled in switch [-Wswitch]

C:\Users\Grunge\Downloads\РјРѕС‘\eclipse-v2-master\eclipse-v2\eclipse-v2.ino:547:10: warning: enumeration value 'Brightness' not handled in switch [-Wswitch]

C:\Users\Grunge\Downloads\РјРѕС‘\eclipse-v2-master\eclipse-v2\eclipse-v2.ino:547:10: warning: enumeration value 'Palette' not handled in switch [-Wswitch]

In file included from C:\Users\Grunge\Downloads\РјРѕС‘\eclipse-v2-master\eclipse-v2\eclipse-v2.ino:48:0:

sketch\Commands.h: In function 'long unsigned int decodeIRCode()':

sketch\Commands.h:195:1: warning: control reaches end of non-void function [-Wreturn-type]

 }

 ^
exit status 1
'IRrecv' does not name a type

@jasoncoon
Copy link
Contributor

Please enable verbose compiler output.

File->Preferences->Show verbose output during:. Tick box for compilation.

@GrungeK
Copy link
Author

GrungeK commented Oct 18, 2018

Please enable verbose compiler output.

File->Preferences->Show verbose output during:. Tick box for compilation.

In file included from C:\Users\Grunge\Downloads\РјРѕС‘\eclipse-v2-master\eclipse-v2\eclipse-v2.ino:20:0:

C:\Users\Grunge\Documents\Arduino\libraries\FastLED-3.1.8/FastLED.h:17:21: note: #pragma message: FastLED version 3.001.008

 #    pragma message "FastLED version 3.001.008"

                     ^

In file included from C:\Users\Grunge\Documents\Arduino\libraries\FastLED-3.1.8/FastLED.h:68:0,

                 from C:\Users\Grunge\Downloads\РјРѕС‘\eclipse-v2-master\eclipse-v2\eclipse-v2.ino:20:

C:\Users\Grunge\Documents\Arduino\libraries\FastLED-3.1.8/fastspi.h:110: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"

                       ^

In file included from C:\Users\Grunge\Downloads\РјРѕС‘\eclipse-v2-master\eclipse-v2\eclipse-v2.ino:41:0:

sketch\Field.h:37:1: warning: 'typedef' was ignored in this declaration [enabled by default]

 };

 ^

eclipse-v2:46: error: 'IRrecv' does not name a type

In file included from C:\Users\Grunge\Downloads\РјРѕС‘\eclipse-v2-master\eclipse-v2\eclipse-v2.ino:48:0:

sketch\Commands.h: In function 'long unsigned int decodeIRCode()':

Commands.h:179: error: 'decode_results' was not declared in this scope

   decode_results results;

   ^

Commands.h:179: error: expected ';' before 'results'

   decode_results results;

                  ^

Commands.h:181: error: 'results' was not declared in this scope

   results.value = 0;

   ^

Commands.h:184: error: 'irReceiver' was not declared in this scope

   if (irReceiver.decode(&results)) {

       ^
 Используется: C:\Users\Grunge\Documents\Arduino\libraries\IRremoteESP8266
Используется: C:\Users\Grunge\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.2\libraries\Hash
Используется: C:\Users\Grunge\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.2\libraries\ESP8266WiFi
Используется: C:\Users\Grunge\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.2\libraries\ESP8266mDNS
Используется: C:\Users\Grunge\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.2\libraries\ESP8266WebServer
Используется: C:\Users\Grunge\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.2\libraries\ESP8266HTTPUpdateServer
Используется: C:\Users\Grunge\Documents\Arduino\libraries\arduinoWebSockets-master
Используется: C:\Users\Grunge\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.2\libraries\EEPROM
exit status 1
'IRrecv' does not name a type

@GrungeK
Copy link
Author

GrungeK commented Oct 18, 2018

Please enable verbose compiler output.

File->Preferences->Show verbose output during:. Tick box for compilation.

выдает то что выше скинул

@jasoncoon
Copy link
Contributor

Can you verify you're using this library: https://github.com/sebastienwarin/IRremoteESP8266

and not this one: https://github.com/markszabo/IRremoteESP8266

@GrungeK
Copy link
Author

GrungeK commented Oct 18, 2018

Вы можете проверить, используете ли вы эту библиотеку: https://github.com/sebastienwarin/IRremoteESP8266

а не этот: https://github.com/markszabo/IRremoteESP8266

перепроверил библиотеку, использую первую, ещё раз скачал её и установил, но всё равно ошибка компиляции

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants