OneButton with ESP8622

error105
Posts: 5
Joined: Wed Mar 18, 2020 7:25 am

OneButton with ESP8622

Postby error105 » Mon Mar 23, 2020 9:10 am

Hi, i have problem with OneButton.h library :(

There is my code:

Code: Select all

#include "OneButton.h"
OneButton button1(0, false);

void setup() {

  button1.attachClick(click1);

}

void loop() {
  
  button1.tick();

}

void click1() {
  
}
And error code from Arduino:

Code: Select all

Arduino:1.8.12 (Windows Store 1.8.33.0) (Windows 10), Płytka:"Generic ESP8266 Module, 80 MHz, Flash, Legacy (new can return nullptr), All SSL ciphers (most compatible), dtr (aka nodemcu), 26 MHz, 40MHz, DOUT (compatible), 1MB (FS:64KB OTA:~470KB), 2, nonos-sdk 2.2.1+100 (190703), v2 Lower Memory, Disabled, None, Only Sketch, 115200"

C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.33.0_x86__mdqgnx93n4wtt\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.33.0_x86__mdqgnx93n4wtt\hardware -hardware D:\Łukasz\Documents\ArduinoData\packages -tools C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.33.0_x86__mdqgnx93n4wtt\tools-builder -tools C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.33.0_x86__mdqgnx93n4wtt\hardware\tools\avr -tools D:\Łukasz\Documents\ArduinoData\packages -built-in-libraries C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.33.0_x86__mdqgnx93n4wtt\libraries -libraries D:\Łukasz\Documents\Arduino\libraries -fqbn=esp8266:esp8266:generic:xtal=80,vt=flash,exception=legacy,ssl=all,ResetMethod=nodemcu,CrystalFreq=26,FlashFreq=40,FlashMode=dout,eesz=1M64,led=2,sdk=nonosdk_190703,ip=lm2f,dbg=Disabled,lvl=None____,wipe=none,baud=115200 -vid-pid=1A86_7523 -ide-version=10812 -build-path C:\Users\kotos\AppData\Local\Temp\arduino_build_268169 -warnings=all -build-cache C:\Users\kotos\AppData\Local\Temp\arduino_cache_901541 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.mkspiffs.path=D:\Łukasz\Documents\ArduinoData\packages\esp8266\tools\mkspiffs\2.5.0-4-b40a506 -prefs=runtime.tools.mkspiffs-2.5.0-4-b40a506.path=D:\Łukasz\Documents\ArduinoData\packages\esp8266\tools\mkspiffs\2.5.0-4-b40a506 -prefs=runtime.tools.python3.path=D:\Łukasz\Documents\ArduinoData\packages\esp8266\tools\python3\3.7.2-post1 -prefs=runtime.tools.python3-3.7.2-post1.path=D:\Łukasz\Documents\ArduinoData\packages\esp8266\tools\python3\3.7.2-post1 -prefs=runtime.tools.xtensa-lx106-elf-gcc.path=D:\Łukasz\Documents\ArduinoData\packages\esp8266\tools\xtensa-lx106-elf-gcc\2.5.0-4-b40a506 -prefs=runtime.tools.xtensa-lx106-elf-gcc-2.5.0-4-b40a506.path=D:\Łukasz\Documents\ArduinoData\packages\esp8266\tools\xtensa-lx106-elf-gcc\2.5.0-4-b40a506 -prefs=runtime.tools.mklittlefs.path=D:\Łukasz\Documents\ArduinoData\packages\esp8266\tools\mklittlefs\2.5.0-4-69bd9e6 -prefs=runtime.tools.mklittlefs-2.5.0-4-69bd9e6.path=D:\Łukasz\Documents\ArduinoData\packages\esp8266\tools\mklittlefs\2.5.0-4-69bd9e6 -verbose C:\Users\kotos\AppData\Local\Temp\arduino_modified_sketch_267573\sketch_mar23b.ino
C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.33.0_x86__mdqgnx93n4wtt\arduino-builder -compile -logger=machine -hardware C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.33.0_x86__mdqgnx93n4wtt\hardware -hardware D:\Łukasz\Documents\ArduinoData\packages -tools C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.33.0_x86__mdqgnx93n4wtt\tools-builder -tools C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.33.0_x86__mdqgnx93n4wtt\hardware\tools\avr -tools D:\Łukasz\Documents\ArduinoData\packages -built-in-libraries C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.33.0_x86__mdqgnx93n4wtt\libraries -libraries D:\Łukasz\Documents\Arduino\libraries -fqbn=esp8266:esp8266:generic:xtal=80,vt=flash,exception=legacy,ssl=all,ResetMethod=nodemcu,CrystalFreq=26,FlashFreq=40,FlashMode=dout,eesz=1M64,led=2,sdk=nonosdk_190703,ip=lm2f,dbg=Disabled,lvl=None____,wipe=none,baud=115200 -vid-pid=1A86_7523 -ide-version=10812 -build-path C:\Users\kotos\AppData\Local\Temp\arduino_build_268169 -warnings=all -build-cache C:\Users\kotos\AppData\Local\Temp\arduino_cache_901541 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.mkspiffs.path=D:\Łukasz\Documents\ArduinoData\packages\esp8266\tools\mkspiffs\2.5.0-4-b40a506 -prefs=runtime.tools.mkspiffs-2.5.0-4-b40a506.path=D:\Łukasz\Documents\ArduinoData\packages\esp8266\tools\mkspiffs\2.5.0-4-b40a506 -prefs=runtime.tools.python3.path=D:\Łukasz\Documents\ArduinoData\packages\esp8266\tools\python3\3.7.2-post1 -prefs=runtime.tools.python3-3.7.2-post1.path=D:\Łukasz\Documents\ArduinoData\packages\esp8266\tools\python3\3.7.2-post1 -prefs=runtime.tools.xtensa-lx106-elf-gcc.path=D:\Łukasz\Documents\ArduinoData\packages\esp8266\tools\xtensa-lx106-elf-gcc\2.5.0-4-b40a506 -prefs=runtime.tools.xtensa-lx106-elf-gcc-2.5.0-4-b40a506.path=D:\Łukasz\Documents\ArduinoData\packages\esp8266\tools\xtensa-lx106-elf-gcc\2.5.0-4-b40a506 -prefs=runtime.tools.mklittlefs.path=D:\Łukasz\Documents\ArduinoData\packages\esp8266\tools\mklittlefs\2.5.0-4-69bd9e6 -prefs=runtime.tools.mklittlefs-2.5.0-4-69bd9e6.path=D:\Łukasz\Documents\ArduinoData\packages\esp8266\tools\mklittlefs\2.5.0-4-69bd9e6 -verbose C:\Users\kotos\AppData\Local\Temp\arduino_modified_sketch_267573\sketch_mar23b.ino
Using board 'generic' from platform in folder: D:\Łukasz\Documents\ArduinoData\packages\esp8266\hardware\esp8266\2.6.3
Using core 'esp8266' from platform in folder: D:\Łukasz\Documents\ArduinoData\packages\esp8266\hardware\esp8266\2.6.3
Detecting libraries used...
"D:\\Łukasz\\Documents\\ArduinoData\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\2.5.0-4-b40a506/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-ID:\\Łukasz\\Documents\\ArduinoData\\packages\\esp8266\\hardware\\esp8266\\2.6.3/tools/sdk/include" "-ID:\\Łukasz\\Documents\\ArduinoData\\packages\\esp8266\\hardware\\esp8266\\2.6.3/tools/sdk/lwip2/include" "-ID:\\Łukasz\\Documents\\ArduinoData\\packages\\esp8266\\hardware\\esp8266\\2.6.3/tools/sdk/libc/xtensa-lx106-elf/include" "-IC:\\Users\\kotos\\AppData\\Local\\Temp\\arduino_build_268169/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=gnu++11 -ffunction-sections -fdata-sections -fno-exceptions -w -x c++ -E -CC -DNONOSDK22x_190703=1 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10812 -DARDUINO_ESP8266_GENERIC -DARDUINO_ARCH_ESP8266 "-DARDUINO_BOARD=\"ESP8266_GENERIC\"" -DLED_BUILTIN=2 -DFLASHMODE_DOUT -DESP8266 "-ID:\\Łukasz\\Documents\\ArduinoData\\packages\\esp8266\\hardware\\esp8266\\2.6.3\\cores\\esp8266" "-ID:\\Łukasz\\Documents\\ArduinoData\\packages\\esp8266\\hardware\\esp8266\\2.6.3\\variants\\generic" "C:\\Users\\kotos\\AppData\\Local\\Temp\\arduino_build_268169\\sketch\\sketch_mar23b.ino.cpp" -o nul
Alternatives for OneButton.h: [OneButton@1.4.0]
ResolveLibrary(OneButton.h)
  -> candidates: [OneButton@1.4.0]
"D:\\Łukasz\\Documents\\ArduinoData\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\2.5.0-4-b40a506/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-ID:\\Łukasz\\Documents\\ArduinoData\\packages\\esp8266\\hardware\\esp8266\\2.6.3/tools/sdk/include" "-ID:\\Łukasz\\Documents\\ArduinoData\\packages\\esp8266\\hardware\\esp8266\\2.6.3/tools/sdk/lwip2/include" "-ID:\\Łukasz\\Documents\\ArduinoData\\packages\\esp8266\\hardware\\esp8266\\2.6.3/tools/sdk/libc/xtensa-lx106-elf/include" "-IC:\\Users\\kotos\\AppData\\Local\\Temp\\arduino_build_268169/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=gnu++11 -ffunction-sections -fdata-sections -fno-exceptions -w -x c++ -E -CC -DNONOSDK22x_190703=1 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10812 -DARDUINO_ESP8266_GENERIC -DARDUINO_ARCH_ESP8266 "-DARDUINO_BOARD=\"ESP8266_GENERIC\"" -DLED_BUILTIN=2 -DFLASHMODE_DOUT -DESP8266 "-ID:\\Łukasz\\Documents\\ArduinoData\\packages\\esp8266\\hardware\\esp8266\\2.6.3\\cores\\esp8266" "-ID:\\Łukasz\\Documents\\ArduinoData\\packages\\esp8266\\hardware\\esp8266\\2.6.3\\variants\\generic" "-ID:\\Łukasz\\Documents\\Arduino\\libraries\\OneButton\\src" "C:\\Users\\kotos\\AppData\\Local\\Temp\\arduino_build_268169\\sketch\\sketch_mar23b.ino.cpp" -o nul
"D:\\Łukasz\\Documents\\ArduinoData\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\2.5.0-4-b40a506/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-ID:\\Łukasz\\Documents\\ArduinoData\\packages\\esp8266\\hardware\\esp8266\\2.6.3/tools/sdk/include" "-ID:\\Łukasz\\Documents\\ArduinoData\\packages\\esp8266\\hardware\\esp8266\\2.6.3/tools/sdk/lwip2/include" "-ID:\\Łukasz\\Documents\\ArduinoData\\packages\\esp8266\\hardware\\esp8266\\2.6.3/tools/sdk/libc/xtensa-lx106-elf/include" "-IC:\\Users\\kotos\\AppData\\Local\\Temp\\arduino_build_268169/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=gnu++11 -ffunction-sections -fdata-sections -fno-exceptions -w -x c++ -E -CC -DNONOSDK22x_190703=1 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10812 -DARDUINO_ESP8266_GENERIC -DARDUINO_ARCH_ESP8266 "-DARDUINO_BOARD=\"ESP8266_GENERIC\"" -DLED_BUILTIN=2 -DFLASHMODE_DOUT -DESP8266 "-ID:\\Łukasz\\Documents\\ArduinoData\\packages\\esp8266\\hardware\\esp8266\\2.6.3\\cores\\esp8266" "-ID:\\Łukasz\\Documents\\ArduinoData\\packages\\esp8266\\hardware\\esp8266\\2.6.3\\variants\\generic" "-ID:\\Łukasz\\Documents\\Arduino\\libraries\\OneButton\\src" "D:\\Łukasz\\Documents\\Arduino\\libraries\\OneButton\\src\\OneButton — kopia.cpp" -o nul
"D:\\Łukasz\\Documents\\ArduinoData\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\2.5.0-4-b40a506/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-ID:\\Łukasz\\Documents\\ArduinoData\\packages\\esp8266\\hardware\\esp8266\\2.6.3/tools/sdk/include" "-ID:\\Łukasz\\Documents\\ArduinoData\\packages\\esp8266\\hardware\\esp8266\\2.6.3/tools/sdk/lwip2/include" "-ID:\\Łukasz\\Documents\\ArduinoData\\packages\\esp8266\\hardware\\esp8266\\2.6.3/tools/sdk/libc/xtensa-lx106-elf/include" "-IC:\\Users\\kotos\\AppData\\Local\\Temp\\arduino_build_268169/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=gnu++11 -ffunction-sections -fdata-sections -fno-exceptions -w -x c++ -E -CC -DNONOSDK22x_190703=1 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10812 -DARDUINO_ESP8266_GENERIC -DARDUINO_ARCH_ESP8266 "-DARDUINO_BOARD=\"ESP8266_GENERIC\"" -DLED_BUILTIN=2 -DFLASHMODE_DOUT -DESP8266 "-ID:\\Łukasz\\Documents\\ArduinoData\\packages\\esp8266\\hardware\\esp8266\\2.6.3\\cores\\esp8266" "-ID:\\Łukasz\\Documents\\ArduinoData\\packages\\esp8266\\hardware\\esp8266\\2.6.3\\variants\\generic" "-ID:\\Łukasz\\Documents\\Arduino\\libraries\\OneButton\\src" "D:\\Łukasz\\Documents\\Arduino\\libraries\\OneButton\\src\\OneButton.cpp" -o nul
Generating function prototypes...
"D:\\Łukasz\\Documents\\ArduinoData\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\2.5.0-4-b40a506/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-ID:\\Łukasz\\Documents\\ArduinoData\\packages\\esp8266\\hardware\\esp8266\\2.6.3/tools/sdk/include" "-ID:\\Łukasz\\Documents\\ArduinoData\\packages\\esp8266\\hardware\\esp8266\\2.6.3/tools/sdk/lwip2/include" "-ID:\\Łukasz\\Documents\\ArduinoData\\packages\\esp8266\\hardware\\esp8266\\2.6.3/tools/sdk/libc/xtensa-lx106-elf/include" "-IC:\\Users\\kotos\\AppData\\Local\\Temp\\arduino_build_268169/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=gnu++11 -ffunction-sections -fdata-sections -fno-exceptions -w -x c++ -E -CC -DNONOSDK22x_190703=1 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10812 -DARDUINO_ESP8266_GENERIC -DARDUINO_ARCH_ESP8266 "-DARDUINO_BOARD=\"ESP8266_GENERIC\"" -DLED_BUILTIN=2 -DFLASHMODE_DOUT -DESP8266 "-ID:\\Łukasz\\Documents\\ArduinoData\\packages\\esp8266\\hardware\\esp8266\\2.6.3\\cores\\esp8266" "-ID:\\Łukasz\\Documents\\ArduinoData\\packages\\esp8266\\hardware\\esp8266\\2.6.3\\variants\\generic" "-ID:\\Łukasz\\Documents\\Arduino\\libraries\\OneButton\\src" "C:\\Users\\kotos\\AppData\\Local\\Temp\\arduino_build_268169\\sketch\\sketch_mar23b.ino.cpp" -o "C:\\Users\\kotos\\AppData\\Local\\Temp\\arduino_build_268169\\preproc\\ctags_target_for_gcc_minus_e.cpp"
"C:\\Program Files\\WindowsApps\\ArduinoLLC.ArduinoIDE_1.8.33.0_x86__mdqgnx93n4wtt\\tools-builder\\ctags\\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\\Users\\kotos\\AppData\\Local\\Temp\\arduino_build_268169\\preproc\\ctags_target_for_gcc_minus_e.cpp"
Kompilowanie szkicu...
"D:\\Łukasz\\Documents\\ArduinoData\\packages\\esp8266\\tools\\python3\\3.7.2-post1/python3" "D:\\Łukasz\\Documents\\ArduinoData\\packages\\esp8266\\hardware\\esp8266\\2.6.3/tools/signing.py" --mode header --publickey "C:\\Users\\kotos\\AppData\\Local\\Temp\\arduino_modified_sketch_267573/public.key" --out "C:\\Users\\kotos\\AppData\\Local\\Temp\\arduino_build_268169/core/Updater_Signing.h"
"D:\\Łukasz\\Documents\\ArduinoData\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\2.5.0-4-b40a506/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-ID:\\Łukasz\\Documents\\ArduinoData\\packages\\esp8266\\hardware\\esp8266\\2.6.3/tools/sdk/include" "-ID:\\Łukasz\\Documents\\ArduinoData\\packages\\esp8266\\hardware\\esp8266\\2.6.3/tools/sdk/lwip2/include" "-ID:\\Łukasz\\Documents\\ArduinoData\\packages\\esp8266\\hardware\\esp8266\\2.6.3/tools/sdk/libc/xtensa-lx106-elf/include" "-IC:\\Users\\kotos\\AppData\\Local\\Temp\\arduino_build_268169/core" -c -Wall -Wextra -Os -g -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=gnu++11 -MMD -ffunction-sections -fdata-sections -fno-exceptions -DNONOSDK22x_190703=1 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10812 -DARDUINO_ESP8266_GENERIC -DARDUINO_ARCH_ESP8266 "-DARDUINO_BOARD=\"ESP8266_GENERIC\"" -DLED_BUILTIN=2 -DFLASHMODE_DOUT -DESP8266 "-ID:\\Łukasz\\Documents\\ArduinoData\\packages\\esp8266\\hardware\\esp8266\\2.6.3\\cores\\esp8266" "-ID:\\Łukasz\\Documents\\ArduinoData\\packages\\esp8266\\hardware\\esp8266\\2.6.3\\variants\\generic" "-ID:\\Łukasz\\Documents\\Arduino\\libraries\\OneButton\\src" "C:\\Users\\kotos\\AppData\\Local\\Temp\\arduino_build_268169\\sketch\\sketch_mar23b.ino.cpp" -o "C:\\Users\\kotos\\AppData\\Local\\Temp\\arduino_build_268169\\sketch\\sketch_mar23b.ino.cpp.o"
Compiling libraries...
Compiling library "OneButton"
"D:\\Łukasz\\Documents\\ArduinoData\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\2.5.0-4-b40a506/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-ID:\\Łukasz\\Documents\\ArduinoData\\packages\\esp8266\\hardware\\esp8266\\2.6.3/tools/sdk/include" "-ID:\\Łukasz\\Documents\\ArduinoData\\packages\\esp8266\\hardware\\esp8266\\2.6.3/tools/sdk/lwip2/include" "-ID:\\Łukasz\\Documents\\ArduinoData\\packages\\esp8266\\hardware\\esp8266\\2.6.3/tools/sdk/libc/xtensa-lx106-elf/include" "-IC:\\Users\\kotos\\AppData\\Local\\Temp\\arduino_build_268169/core" -c -Wall -Wextra -Os -g -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=gnu++11 -MMD -ffunction-sections -fdata-sections -fno-exceptions -DNONOSDK22x_190703=1 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10812 -DARDUINO_ESP8266_GENERIC -DARDUINO_ARCH_ESP8266 "-DARDUINO_BOARD=\"ESP8266_GENERIC\"" -DLED_BUILTIN=2 -DFLASHMODE_DOUT -DESP8266 "-ID:\\Łukasz\\Documents\\ArduinoData\\packages\\esp8266\\hardware\\esp8266\\2.6.3\\cores\\esp8266" "-ID:\\Łukasz\\Documents\\ArduinoData\\packages\\esp8266\\hardware\\esp8266\\2.6.3\\variants\\generic" "-ID:\\Łukasz\\Documents\\Arduino\\libraries\\OneButton\\src" "D:\\Łukasz\\Documents\\Arduino\\libraries\\OneButton\\src\\OneButton — kopia.cpp" -o "C:\\Users\\kotos\\AppData\\Local\\Temp\\arduino_build_268169\\libraries\\OneButton\\OneButton — kopia.cpp.o"
"D:\\Łukasz\\Documents\\ArduinoData\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\2.5.0-4-b40a506/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-ID:\\Łukasz\\Documents\\ArduinoData\\packages\\esp8266\\hardware\\esp8266\\2.6.3/tools/sdk/include" "-ID:\\Łukasz\\Documents\\ArduinoData\\packages\\esp8266\\hardware\\esp8266\\2.6.3/tools/sdk/lwip2/include" "-ID:\\Łukasz\\Documents\\ArduinoData\\packages\\esp8266\\hardware\\esp8266\\2.6.3/tools/sdk/libc/xtensa-lx106-elf/include" "-IC:\\Users\\kotos\\AppData\\Local\\Temp\\arduino_build_268169/core" -c -Wall -Wextra -Os -g -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=gnu++11 -MMD -ffunction-sections -fdata-sections -fno-exceptions -DNONOSDK22x_190703=1 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10812 -DARDUINO_ESP8266_GENERIC -DARDUINO_ARCH_ESP8266 "-DARDUINO_BOARD=\"ESP8266_GENERIC\"" -DLED_BUILTIN=2 -DFLASHMODE_DOUT -DESP8266 "-ID:\\Łukasz\\Documents\\ArduinoData\\packages\\esp8266\\hardware\\esp8266\\2.6.3\\cores\\esp8266" "-ID:\\Łukasz\\Documents\\ArduinoData\\packages\\esp8266\\hardware\\esp8266\\2.6.3\\variants\\generic" "-ID:\\Łukasz\\Documents\\Arduino\\libraries\\OneButton\\src" "D:\\Łukasz\\Documents\\Arduino\\libraries\\OneButton\\src\\OneButton.cpp" -o "C:\\Users\\kotos\\AppData\\Local\\Temp\\arduino_build_268169\\libraries\\OneButton\\OneButton.cpp.o"
D:\�ukasz\Documents\Arduino\libraries\OneButton\src\OneButton.cpp:15:1: error: prototype for 'OneButton::OneButton(int, int)' does not match any in class 'OneButton'

OneButton::OneButton(int pin, int activeLow)

^

In file included from D:\�ukasz\Documents\Arduino\libraries\OneButton\src\OneButton.cpp:11:0:

D:\�ukasz\Documents\Arduino\libraries\OneButton\src\OneButton.h:36:7: error: candidates are: constexpr OneButton::OneButton(OneButton&&)

class OneButton

      ^

D:\�ukasz\Documents\Arduino\libraries\OneButton\src\OneButton.h:36:7: error:                constexpr OneButton::OneButton(const OneButton&)

D:\�ukasz\Documents\Arduino\libraries\OneButton\src\OneButton.h:42:3: error:                OneButton::OneButton(int, int, bool)

  OneButton(int pin, int active, bool pullupActive = true);

  ^

D:\�ukasz\Documents\Arduino\libraries\OneButton\src\OneButton.h:40:3: error:                OneButton::OneButton()

  OneButton();

  ^

D:\�ukasz\Documents\Arduino\libraries\OneButton\src\OneButton.cpp: In member function 'void OneButton::tick()':

D:\�ukasz\Documents\Arduino\libraries\OneButton\src\OneButton.cpp:123:25: error: '_buttonReleased' was not declared in this scope

    if ((buttonLevel == _buttonReleased) && ((unsigned long)(now - _startTime) < _debounceTicks)) {

                        ^

D:\�ukasz\Documents\Arduino\libraries\OneButton\src\OneButton.cpp:153:24: error: '_buttonReleased' was not declared in this scope

    if (buttonLevel == _buttonReleased) {

                        ^

D:\�ukasz\Documents\Arduino\libraries\OneButton\src\OneButton.cpp:160:24: error: '_buttonReleased' was not declared in this scope

    if (buttonLevel == _buttonReleased) {

                        ^

Użycie biblioteki OneButton w wersji 1.4.0 z folderu: D:\Łukasz\Documents\Arduino\libraries\OneButton
exit status 1
Błąd kompilacji dla płytki Generic ESP8266 Module.

lbernstone
Posts: 831
Joined: Mon Jul 22, 2019 3:20 pm

Re: OneButton with ESP8622

Postby lbernstone » Tue Mar 24, 2020 4:52 pm

This forum is for ESP32, not the non-existent esp8622
https://github.com/esp8266/Arduino/issues

Who is online

Users browsing this forum: No registered users and 60 guests