ESP8266かESP32で使うディスプレイ ILI9225は書き込めなかった

今回はESP8266で2インチほどの大きなディスプレイを使ってみたいと思い、実験してみました。が、 ILI9225のほうはTFT_22_ILI9225ライブラリでエラーになってスケッチ書き込みできなかった。

ILI9341も買ってみたので来るのを待ちます。

今回もメモなのであまりお役に立てずスンマセンm(_ _)m

ILI9341

ILI9341(Banggood)

こちらはまでディスプレイ本体が来てないので試してません。後ほど更新します。

ライブラリ2つ

以下の2つを使うようです。

Library for Adafruit ILI9341 displays. Contribute to adafruit/Adafruit_ILI9341 development by creating an account on GitHub.
Adafruit GFX graphics core library, this is the 'core' class that all our other graphics libraries derive from - adafruit/Adafruit-GFX-Library

ILI9225

2.2 inch LCD Screen TFT Serial Peripheral Interface Module fr Development Board(ebay.com)

ESP8266かAnduiroのみ?・・・エラーも出る。

スケッチ例を試してみる

ファイル > スケッチ例 > TFT_22_ILI9225 > Basic_Demo

コンパイル

この設定で一応はコンパイルできた。

#define TFT_RST 10
#define TFT_RS 9
#define TFT_CS SS // SS CSピン
#define TFT_SDI MOSI // MOSI
#define TFT_CLK CLK // SCK
#define TFT_LED 0 // 0 if wired to +5V directly

こちらのピン設定のほうがあってそう↓

Library for 2.2" TFT display modules with ILI9225 driver for Arduino and ESP8266 - jorgegarciadev/TFT_22_ILI9225

書き込み失敗

エラーになって書き込みできなかった。

エラーの原因がよくわからないのでILI9341のほうを買うしかなさそう。

長いエラー↓

Arduino:1.8.5 (Windows 10), ボード:”NodeMCU 1.0 (ESP-12E Module), 80 MHz, 4M (1M SPIFFS), v2 Lower Memory, Disabled, None, Only Sketch, 115200″

ビルドオプションが変更されました。全体をリビルドしています。
C:\Users\USER\Dropbox\Arduino\libraries\TFT_22_ILI9225\src\TFT_22_ILI9225.cpp: In member function ‘void TFT_22_ILI9225::_setWindow(uint16_t, uint16_t, uint16_t, uint16_t, autoIncMode_t)’:

C:\Users\USER\Dropbox\Arduino\libraries\TFT_22_ILI9225\src\TFT_22_ILI9225.cpp:451:26: error: no matching function for call to ‘min(uint16_t&, int)’

x0 = min( x0,_maxX-1 );

^

C:\Users\USER\Dropbox\Arduino\libraries\TFT_22_ILI9225\src\TFT_22_ILI9225.cpp:451:26: note: candidates are:

In file included from c:\users\USER\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\algorithm:62:0,

from C:\Users\USER\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\cores\esp8266/Arduino.h:254,

from C:\Users\USER\Dropbox\Arduino\libraries\TFT_22_ILI9225\src\TFT_22_ILI9225.h:20,

from C:\Users\USER\Dropbox\Arduino\libraries\TFT_22_ILI9225\src\TFT_22_ILI9225.cpp:1:

c:\users\USER\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\bits\stl_algo.h:4226:5: note: template<class _Tp, class _Compare> _Tp std::min(std::initializer_list<_Tp>, _Compare)

min(initializer_list<_Tp> __l, _Compare __comp)

^

c:\users\USER\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\bits\stl_algo.h:4226:5: note: template argument deduction/substitution failed:

C:\Users\USER\Dropbox\Arduino\libraries\TFT_22_ILI9225\src\TFT_22_ILI9225.cpp:451:26: note: mismatched types ‘std::initializer_list<_Tp>’ and ‘short unsigned int’

x0 = min( x0,_maxX-1 );

^

In file included from c:\users\USER\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\algorithm:62:0,

from C:\Users\USER\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\cores\esp8266/Arduino.h:254,

from C:\Users\USER\Dropbox\Arduino\libraries\TFT_22_ILI9225\src\TFT_22_ILI9225.h:20,

from C:\Users\USER\Dropbox\Arduino\libraries\TFT_22_ILI9225\src\TFT_22_ILI9225.cpp:1:

c:\users\USER\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\bits\stl_algo.h:4221:5: note: template<class _Tp> _Tp std::min(std::initializer_list<_Tp>)

min(initializer_list<_Tp> __l)

^

c:\users\USER\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\bits\stl_algo.h:4221:5: note: template argument deduction/substitution failed:

C:\Users\USER\Dropbox\Arduino\libraries\TFT_22_ILI9225\src\TFT_22_ILI9225.cpp:451:26: note: mismatched types ‘std::initializer_list<_Tp>’ and ‘short unsigned int’

x0 = min( x0,_maxX-1 );

^

In file included from c:\users\USER\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\algorithm:61:0,

from C:\Users\USER\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\cores\esp8266/Arduino.h:254,

from C:\Users\USER\Dropbox\Arduino\libraries\TFT_22_ILI9225\src\TFT_22_ILI9225.h:20,

from C:\Users\USER\Dropbox\Arduino\libraries\TFT_22_ILI9225\src\TFT_22_ILI9225.cpp:1:

c:\users\USER\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\bits\stl_algobase.h:239:5: note: template<class _Tp, class _Compare> const _Tp& std::min(const _Tp&, const _Tp&, _Compare)

min(const _Tp& __a, const _Tp& __b, _Compare __comp)

^

c:\users\USER\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\bits\stl_algobase.h:239:5: note: template argument deduction/substitution failed:

C:\Users\USER\Dropbox\Arduino\libraries\TFT_22_ILI9225\src\TFT_22_ILI9225.cpp:451:26: note: deduced conflicting types for parameter ‘const _Tp’ (‘short unsigned int’ and ‘int’)

x0 = min( x0,_maxX-1 );

^

In file included from c:\users\USER\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\algorithm:61:0,

from C:\Users\USER\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\cores\esp8266/Arduino.h:254,

from C:\Users\USER\Dropbox\Arduino\libraries\TFT_22_ILI9225\src\TFT_22_ILI9225.h:20,

from C:\Users\USER\Dropbox\Arduino\libraries\TFT_22_ILI9225\src\TFT_22_ILI9225.cpp:1:

c:\users\USER\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\bits\stl_algobase.h:193:5: note: template<class _Tp> const _Tp& std::min(const _Tp&, const _Tp&)

min(const _Tp& __a, const _Tp& __b)

^

c:\users\USER\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\bits\stl_algobase.h:193:5: note: template argument deduction/substitution failed:

C:\Users\USER\Dropbox\Arduino\libraries\TFT_22_ILI9225\src\TFT_22_ILI9225.cpp:451:26: note: deduced conflicting types for parameter ‘const _Tp’ (‘short unsigned int’ and ‘int’)

x0 = min( x0,_maxX-1 );

^

C:\Users\USER\Dropbox\Arduino\libraries\TFT_22_ILI9225\src\TFT_22_ILI9225.cpp:452:26: error: no matching function for call to ‘min(uint16_t&, int)’

x1 = min( x1,_maxX-1 );

^

C:\Users\USER\Dropbox\Arduino\libraries\TFT_22_ILI9225\src\TFT_22_ILI9225.cpp:452:26: note: candidates are:

In file included from c:\users\USER\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\algorithm:62:0,

from C:\Users\USER\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\cores\esp8266/Arduino.h:254,

from C:\Users\USER\Dropbox\Arduino\libraries\TFT_22_ILI9225\src\TFT_22_ILI9225.h:20,

from C:\Users\USER\Dropbox\Arduino\libraries\TFT_22_ILI9225\src\TFT_22_ILI9225.cpp:1:

c:\users\USER\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\bits\stl_algo.h:4226:5: note: template<class _Tp, class _Compare> _Tp std::min(std::initializer_list<_Tp>, _Compare)

min(initializer_list<_Tp> __l, _Compare __comp)

^

c:\users\USER\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\bits\stl_algo.h:4226:5: note: template argument deduction/substitution failed:

C:\Users\USER\Dropbox\Arduino\libraries\TFT_22_ILI9225\src\TFT_22_ILI9225.cpp:452:26: note: mismatched types ‘std::initializer_list<_Tp>’ and ‘short unsigned int’

x1 = min( x1,_maxX-1 );

^

In file included from c:\users\USER\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\algorithm:62:0,

from C:\Users\USER\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\cores\esp8266/Arduino.h:254,

from C:\Users\USER\Dropbox\Arduino\libraries\TFT_22_ILI9225\src\TFT_22_ILI9225.h:20,

from C:\Users\USER\Dropbox\Arduino\libraries\TFT_22_ILI9225\src\TFT_22_ILI9225.cpp:1:

c:\users\USER\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\bits\stl_algo.h:4221:5: note: template<class _Tp> _Tp std::min(std::initializer_list<_Tp>)

min(initializer_list<_Tp> __l)

^

c:\users\USER\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\bits\stl_algo.h:4221:5: note: template argument deduction/substitution failed:

C:\Users\USER\Dropbox\Arduino\libraries\TFT_22_ILI9225\src\TFT_22_ILI9225.cpp:452:26: note: mismatched types ‘std::initializer_list<_Tp>’ and ‘short unsigned int’

x1 = min( x1,_maxX-1 );

^

In file included from c:\users\USER\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\algorithm:61:0,

from C:\Users\USER\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\cores\esp8266/Arduino.h:254,

from C:\Users\USER\Dropbox\Arduino\libraries\TFT_22_ILI9225\src\TFT_22_ILI9225.h:20,

from C:\Users\USER\Dropbox\Arduino\libraries\TFT_22_ILI9225\src\TFT_22_ILI9225.cpp:1:

c:\users\USER\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\bits\stl_algobase.h:239:5: note: template<class _Tp, class _Compare> const _Tp& std::min(const _Tp&, const _Tp&, _Compare)

min(const _Tp& __a, const _Tp& __b, _Compare __comp)

^

c:\users\USER\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\bits\stl_algobase.h:239:5: note: template argument deduction/substitution failed:

C:\Users\USER\Dropbox\Arduino\libraries\TFT_22_ILI9225\src\TFT_22_ILI9225.cpp:452:26: note: deduced conflicting types for parameter ‘const _Tp’ (‘short unsigned int’ and ‘int’)

x1 = min( x1,_maxX-1 );

^

In file included from c:\users\USER\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\algorithm:61:0,

from C:\Users\USER\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\cores\esp8266/Arduino.h:254,

from C:\Users\USER\Dropbox\Arduino\libraries\TFT_22_ILI9225\src\TFT_22_ILI9225.h:20,

from C:\Users\USER\Dropbox\Arduino\libraries\TFT_22_ILI9225\src\TFT_22_ILI9225.cpp:1:

c:\users\USER\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\bits\stl_algobase.h:193:5: note: template<class _Tp> const _Tp& std::min(const _Tp&, const _Tp&)

min(const _Tp& __a, const _Tp& __b)

^

c:\users\USER\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\bits\stl_algobase.h:193:5: note: template argument deduction/substitution failed:

C:\Users\USER\Dropbox\Arduino\libraries\TFT_22_ILI9225\src\TFT_22_ILI9225.cpp:452:26: note: deduced conflicting types for parameter ‘const _Tp’ (‘short unsigned int’ and ‘int’)

x1 = min( x1,_maxX-1 );

^

C:\Users\USER\Dropbox\Arduino\libraries\TFT_22_ILI9225\src\TFT_22_ILI9225.cpp:453:26: error: no matching function for call to ‘min(uint16_t&, int)’

y0 = min( y0,_maxY-1 );

^

C:\Users\USER\Dropbox\Arduino\libraries\TFT_22_ILI9225\src\TFT_22_ILI9225.cpp:453:26: note: candidates are:

In file included from c:\users\USER\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\algorithm:62:0,

from C:\Users\USER\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\cores\esp8266/Arduino.h:254,

from C:\Users\USER\Dropbox\Arduino\libraries\TFT_22_ILI9225\src\TFT_22_ILI9225.h:20,

from C:\Users\USER\Dropbox\Arduino\libraries\TFT_22_ILI9225\src\TFT_22_ILI9225.cpp:1:

c:\users\USER\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\bits\stl_algo.h:4226:5: note: template<class _Tp, class _Compare> _Tp std::min(std::initializer_list<_Tp>, _Compare)

min(initializer_list<_Tp> __l, _Compare __comp)

^

c:\users\USER\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\bits\stl_algo.h:4226:5: note: template argument deduction/substitution failed:

C:\Users\USER\Dropbox\Arduino\libraries\TFT_22_ILI9225\src\TFT_22_ILI9225.cpp:453:26: note: mismatched types ‘std::initializer_list<_Tp>’ and ‘short unsigned int’

y0 = min( y0,_maxY-1 );

^

In file included from c:\users\USER\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\algorithm:62:0,

from C:\Users\USER\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\cores\esp8266/Arduino.h:254,

from C:\Users\USER\Dropbox\Arduino\libraries\TFT_22_ILI9225\src\TFT_22_ILI9225.h:20,

from C:\Users\USER\Dropbox\Arduino\libraries\TFT_22_ILI9225\src\TFT_22_ILI9225.cpp:1:

c:\users\USER\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\bits\stl_algo.h:4221:5: note: template<class _Tp> _Tp std::min(std::initializer_list<_Tp>)

min(initializer_list<_Tp> __l)

^

c:\users\USER\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\bits\stl_algo.h:4221:5: note: template argument deduction/substitution failed:

C:\Users\USER\Dropbox\Arduino\libraries\TFT_22_ILI9225\src\TFT_22_ILI9225.cpp:453:26: note: mismatched types ‘std::initializer_list<_Tp>’ and ‘short unsigned int’

y0 = min( y0,_maxY-1 );

^

In file included from c:\users\USER\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\algorithm:61:0,

from C:\Users\USER\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\cores\esp8266/Arduino.h:254,

from C:\Users\USER\Dropbox\Arduino\libraries\TFT_22_ILI9225\src\TFT_22_ILI9225.h:20,

from C:\Users\USER\Dropbox\Arduino\libraries\TFT_22_ILI9225\src\TFT_22_ILI9225.cpp:1:

c:\users\USER\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\bits\stl_algobase.h:239:5: note: template<class _Tp, class _Compare> const _Tp& std::min(const _Tp&, const _Tp&, _Compare)

min(const _Tp& __a, const _Tp& __b, _Compare __comp)

^

c:\users\USER\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\bits\stl_algobase.h:239:5: note: template argument deduction/substitution failed:

C:\Users\USER\Dropbox\Arduino\libraries\TFT_22_ILI9225\src\TFT_22_ILI9225.cpp:453:26: note: deduced conflicting types for parameter ‘const _Tp’ (‘short unsigned int’ and ‘int’)

y0 = min( y0,_maxY-1 );

^

In file included from c:\users\USER\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\algorithm:61:0,

from C:\Users\USER\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\cores\esp8266/Arduino.h:254,

from C:\Users\USER\Dropbox\Arduino\libraries\TFT_22_ILI9225\src\TFT_22_ILI9225.h:20,

from C:\Users\USER\Dropbox\Arduino\libraries\TFT_22_ILI9225\src\TFT_22_ILI9225.cpp:1:

c:\users\USER\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\bits\stl_algobase.h:193:5: note: template<class _Tp> const _Tp& std::min(const _Tp&, const _Tp&)

min(const _Tp& __a, const _Tp& __b)

^

c:\users\USER\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\bits\stl_algobase.h:193:5: note: template argument deduction/substitution failed:

C:\Users\USER\Dropbox\Arduino\libraries\TFT_22_ILI9225\src\TFT_22_ILI9225.cpp:453:26: note: deduced conflicting types for parameter ‘const _Tp’ (‘short unsigned int’ and ‘int’)

y0 = min( y0,_maxY-1 );

^

C:\Users\USER\Dropbox\Arduino\libraries\TFT_22_ILI9225\src\TFT_22_ILI9225.cpp:454:26: error: no matching function for call to ‘min(uint16_t&, int)’

y1 = min( y1,_maxY-1 );

^

C:\Users\USER\Dropbox\Arduino\libraries\TFT_22_ILI9225\src\TFT_22_ILI9225.cpp:454:26: note: candidates are:

In file included from c:\users\USER\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\algorithm:62:0,

from C:\Users\USER\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\cores\esp8266/Arduino.h:254,

from C:\Users\USER\Dropbox\Arduino\libraries\TFT_22_ILI9225\src\TFT_22_ILI9225.h:20,

from C:\Users\USER\Dropbox\Arduino\libraries\TFT_22_ILI9225\src\TFT_22_ILI9225.cpp:1:

c:\users\USER\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\bits\stl_algo.h:4226:5: note: template<class _Tp, class _Compare> _Tp std::min(std::initializer_list<_Tp>, _Compare)

min(initializer_list<_Tp> __l, _Compare __comp)

^

c:\users\USER\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\bits\stl_algo.h:4226:5: note: template argument deduction/substitution failed:

C:\Users\USER\Dropbox\Arduino\libraries\TFT_22_ILI9225\src\TFT_22_ILI9225.cpp:454:26: note: mismatched types ‘std::initializer_list<_Tp>’ and ‘short unsigned int’

y1 = min( y1,_maxY-1 );

^

In file included from c:\users\USER\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\algorithm:62:0,

from C:\Users\USER\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\cores\esp8266/Arduino.h:254,

from C:\Users\USER\Dropbox\Arduino\libraries\TFT_22_ILI9225\src\TFT_22_ILI9225.h:20,

from C:\Users\USER\Dropbox\Arduino\libraries\TFT_22_ILI9225\src\TFT_22_ILI9225.cpp:1:

c:\users\USER\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\bits\stl_algo.h:4221:5: note: template<class _Tp> _Tp std::min(std::initializer_list<_Tp>)

min(initializer_list<_Tp> __l)

^

c:\users\USER\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\bits\stl_algo.h:4221:5: note: template argument deduction/substitution failed:

C:\Users\USER\Dropbox\Arduino\libraries\TFT_22_ILI9225\src\TFT_22_ILI9225.cpp:454:26: note: mismatched types ‘std::initializer_list<_Tp>’ and ‘short unsigned int’

y1 = min( y1,_maxY-1 );

^

In file included from c:\users\USER\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\algorithm:61:0,

from C:\Users\USER\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\cores\esp8266/Arduino.h:254,

from C:\Users\USER\Dropbox\Arduino\libraries\TFT_22_ILI9225\src\TFT_22_ILI9225.h:20,

from C:\Users\USER\Dropbox\Arduino\libraries\TFT_22_ILI9225\src\TFT_22_ILI9225.cpp:1:

c:\users\USER\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\bits\stl_algobase.h:239:5: note: template<class _Tp, class _Compare> const _Tp& std::min(const _Tp&, const _Tp&, _Compare)

min(const _Tp& __a, const _Tp& __b, _Compare __comp)

^

c:\users\USER\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\bits\stl_algobase.h:239:5: note: template argument deduction/substitution failed:

C:\Users\USER\Dropbox\Arduino\libraries\TFT_22_ILI9225\src\TFT_22_ILI9225.cpp:454:26: note: deduced conflicting types for parameter ‘const _Tp’ (‘short unsigned int’ and ‘int’)

y1 = min( y1,_maxY-1 );

^

In file included from c:\users\USER\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\algorithm:61:0,

from C:\Users\USER\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\cores\esp8266/Arduino.h:254,

from C:\Users\USER\Dropbox\Arduino\libraries\TFT_22_ILI9225\src\TFT_22_ILI9225.h:20,

from C:\Users\USER\Dropbox\Arduino\libraries\TFT_22_ILI9225\src\TFT_22_ILI9225.cpp:1:

c:\users\USER\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\bits\stl_algobase.h:193:5: note: template<class _Tp> const _Tp& std::min(const _Tp&, const _Tp&)

min(const _Tp& __a, const _Tp& __b)

^

c:\users\USER\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\bits\stl_algobase.h:193:5: note: template argument deduction/substitution failed:

C:\Users\USER\Dropbox\Arduino\libraries\TFT_22_ILI9225\src\TFT_22_ILI9225.cpp:454:26: note: deduced conflicting types for parameter ‘const _Tp’ (‘short unsigned int’ and ‘int’)

y1 = min( y1,_maxY-1 );

^

exit status 1
ボードNodeMCU 1.0 (ESP-12E Module)に対するコンパイル時にエラーが発生しました。

「ファイル」メニューの「環境設定」から
「より詳細な情報を表示する:コンパイル」を有効にすると
より詳しい情報が表示されます。

シェアする

  • このエントリーをはてなブックマークに追加

フォローする