Arduino: 1.8.5 (Linux), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, Flash, Enabled, 4M (no SPIFFS), v2 Lower Memory, Disabled, None, Only Sketch, 115200" /home/bakers/Arduino/libraries/LedMatrix/src/CoreMax72xx.cpp: In member function 'void CoreMax72xx::_setScanLimit(uint8_t) const': /home/bakers/Arduino/libraries/LedMatrix/src/CoreMax72xx.cpp:218:51: error: no matching function for call to 'max(uint8_t&, int)' _spiTransfer(OP_SCANLIMIT, max(limit, _limit-1)); ^ /home/bakers/Arduino/libraries/LedMatrix/src/CoreMax72xx.cpp:218:51: note: candidates are: In file included from /home/bakers/.arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/xtensa-lx106-elf/include/c++/4.8.2/algorithm:62:0, from /home/bakers/.arduino15/packages/esp8266/hardware/esp8266/2.5.0-beta2/cores/esp8266/Arduino.h:257, from /home/bakers/Arduino/libraries/LedMatrix/src/CoreMax72xx.h:13, from /home/bakers/Arduino/libraries/LedMatrix/src/CoreMax72xx.cpp:18: /home/bakers/.arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/xtensa-lx106-elf/include/c++/4.8.2/bits/stl_algo.h:4236:5: note: template _Tp std::max(std::initializer_list<_Tp>, _Compare) max(initializer_list<_Tp> __l, _Compare __comp) ^ /home/bakers/.arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/xtensa-lx106-elf/include/c++/4.8.2/bits/stl_algo.h:4236:5: note: template argument deduction/substitution failed: /home/bakers/Arduino/libraries/LedMatrix/src/CoreMax72xx.cpp:218:51: note: mismatched types 'std::initializer_list<_Tp>' and 'unsigned char' _spiTransfer(OP_SCANLIMIT, max(limit, _limit-1)); ^ In file included from /home/bakers/.arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/xtensa-lx106-elf/include/c++/4.8.2/algorithm:62:0, from /home/bakers/.arduino15/packages/esp8266/hardware/esp8266/2.5.0-beta2/cores/esp8266/Arduino.h:257, from /home/bakers/Arduino/libraries/LedMatrix/src/CoreMax72xx.h:13, from /home/bakers/Arduino/libraries/LedMatrix/src/CoreMax72xx.cpp:18: /home/bakers/.arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/xtensa-lx106-elf/include/c++/4.8.2/bits/stl_algo.h:4231:5: note: template _Tp std::max(std::initializer_list<_Tp>) max(initializer_list<_Tp> __l) ^ /home/bakers/.arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/xtensa-lx106-elf/include/c++/4.8.2/bits/stl_algo.h:4231:5: note: template argument deduction/substitution failed: /home/bakers/Arduino/libraries/LedMatrix/src/CoreMax72xx.cpp:218:51: note: mismatched types 'std::initializer_list<_Tp>' and 'unsigned char' _spiTransfer(OP_SCANLIMIT, max(limit, _limit-1)); ^ In file included from /home/bakers/.arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/xtensa-lx106-elf/include/c++/4.8.2/algorithm:61:0, from /home/bakers/.arduino15/packages/esp8266/hardware/esp8266/2.5.0-beta2/cores/esp8266/Arduino.h:257, from /home/bakers/Arduino/libraries/LedMatrix/src/CoreMax72xx.h:13, from /home/bakers/Arduino/libraries/LedMatrix/src/CoreMax72xx.cpp:18: /home/bakers/.arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/xtensa-lx106-elf/include/c++/4.8.2/bits/stl_algobase.h:260:5: note: template const _Tp& std::max(const _Tp&, const _Tp&, _Compare) max(const _Tp& __a, const _Tp& __b, _Compare __comp) ^ /home/bakers/.arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/xtensa-lx106-elf/include/c++/4.8.2/bits/stl_algobase.h:260:5: note: template argument deduction/substitution failed: /home/bakers/Arduino/libraries/LedMatrix/src/CoreMax72xx.cpp:218:51: note: deduced conflicting types for parameter 'const _Tp' ('unsigned char' and 'int') _spiTransfer(OP_SCANLIMIT, max(limit, _limit-1)); ^ In file included from /home/bakers/.arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/xtensa-lx106-elf/include/c++/4.8.2/algorithm:61:0, from /home/bakers/.arduino15/packages/esp8266/hardware/esp8266/2.5.0-beta2/cores/esp8266/Arduino.h:257, from /home/bakers/Arduino/libraries/LedMatrix/src/CoreMax72xx.h:13, from /home/bakers/Arduino/libraries/LedMatrix/src/CoreMax72xx.cpp:18: /home/bakers/.arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/xtensa-lx106-elf/include/c++/4.8.2/bits/stl_algobase.h:216:5: note: template const _Tp& std::max(const _Tp&, const _Tp&) max(const _Tp& __a, const _Tp& __b) ^ /home/bakers/.arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/xtensa-lx106-elf/include/c++/4.8.2/bits/stl_algobase.h:216:5: note: template argument deduction/substitution failed: /home/bakers/Arduino/libraries/LedMatrix/src/CoreMax72xx.cpp:218:51: note: deduced conflicting types for parameter 'const _Tp' ('unsigned char' and 'int') _spiTransfer(OP_SCANLIMIT, max(limit, _limit-1)); ^ exit status 1 Error compiling for board NodeMCU 1.0 (ESP-12E Module). This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences.