{"id":61998,"date":"2019-06-06T15:21:30","date_gmt":"2019-06-06T09:21:30","guid":{"rendered":"http:\/\/rcl-radio.ru\/?p=61998"},"modified":"2022-01-09T23:44:21","modified_gmt":"2022-01-09T17:44:21","slug":"tft-%d0%b4%d0%b8%d1%81%d0%bf%d0%bb%d0%b5%d0%b9-spi-320x240-arduino","status":"publish","type":"post","link":"http:\/\/rcl-radio.ru\/?p=61998","title":{"rendered":"TFT-\u0434\u0438\u0441\u043f\u043b\u0435\u0439 SPI 320&#215;240 (Arduino)"},"content":{"rendered":"<p>\u0426\u0432\u0435\u0442\u043d\u043e\u0439 TFT-\u0434\u0438\u0441\u043f\u043b\u0435\u0439 SPI 320&#215;240 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0442\u0435\u043a\u0441\u0442\u0430 \u0438 \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432: \u0438\u043a\u043e\u043d\u043e\u043a, \u043a\u0430\u0440\u0442\u0438\u043d\u043e\u043a, \u0433\u0440\u0430\u0444\u0438\u043a\u043e\u0432, \u043a\u0430\u0434\u0440\u043e\u0432 \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u0438.<\/p>\n<p><a href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/06\/Screenshot-06.06.2019-152358.png\" class=\"highslide-image\" onclick=\"return hs.expand(this);\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-62007\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/06\/Screenshot-06.06.2019-152358.png\" alt=\"\" width=\"651\" height=\"399\" srcset=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/06\/Screenshot-06.06.2019-152358.png 651w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/06\/Screenshot-06.06.2019-152358-200x123.png 200w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/06\/Screenshot-06.06.2019-152358-500x306.png 500w\" sizes=\"auto, (max-width: 651px) 100vw, 651px\" \/><\/a><\/p>\n<p>\u041e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u0438\u0441\u0442\u0438\u043a\u0438 \u0434\u0438\u0441\u043f\u043b\u0435\u044f:<\/p>\n<ul>\n<li class=\"li\">\u041d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435: TFT01-22SP<\/li>\n<li class=\"li\">\u041a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440: ILI9341C<\/li>\n<li class=\"li\">\u0414\u0438\u0430\u0433\u043e\u043d\u0430\u043b\u044c: 3,2 \u0434\u044e\u0439\u043c\u0430<\/li>\n<li class=\"li\">\u041d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u0435 \u043f\u0438\u0442\u0430\u043d\u0438\u0435: 5 \u0412<\/li>\n<li class=\"li\">\u041d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u0435 \u0441\u0438\u0433\u043d\u0430\u043b\u043e\u0432: 3,3 \u0412<\/li>\n<li class=\"li\">\u0420\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435: 240 x 320 (RGB)<\/li>\n<\/ul>\n<p>\u0414\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u0434\u0438\u0441\u043f\u043b\u0435\u044f\u043c\u0438 \u043e\u0442\u043b\u0438\u0447\u043d\u043e \u043f\u043e\u0434\u043e\u0439\u0434\u0435\u0442 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 UTFT. \u0411\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u0430\u044f \u0438 \u0443\u0434\u043e\u0431\u043d\u0430\u044f \u0434\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f. \u0411\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0433\u043e\u0442\u043e\u0432\u044b\u0445 \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u0432.<\/p>\n<h3>\u0411\u0430\u0437\u043e\u0432\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438:<\/h3>\n<ul>\n<li><strong>InitLCD<\/strong><strong>(<\/strong>[\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435]<strong>);<\/strong>\u00a0\u2013 \u0418\u043d\u0438\u0446\u0438\u0438\u0440\u0443\u0435\u0442 \u043d\u0430\u0447\u0430\u043b\u043e \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0434\u0438\u0441\u043f\u043b\u0435\u0435\u043c. \u041d\u0435\u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \u043c\u043e\u0436\u0435\u0442 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0442\u044c \u043e\u0434\u043d\u043e \u0438\u0437 \u0434\u0432\u0443\u0445 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439: PORTRAIT (\u0432\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u044c\u043d\u0430\u044f \u043e\u0440\u0438\u0435\u043d\u0442\u0430\u0446\u0438\u044f) \u0438\u043b\u0438 LANDSCAPE (\u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044c\u043d\u0430\u044f \u043e\u0440\u0438\u0435\u043d\u0442\u0430\u0446\u0438\u044f &#8212; \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e).<\/li>\n<li><strong>clrScr();<\/strong>\u00a0\u2013 \u041e\u0447\u0438\u0449\u0430\u0435\u0442 \u0434\u0438\u0441\u043f\u043b\u0435\u0439, \u0441\u0442\u0438\u0440\u0430\u044f \u0432\u0441\u044e \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u043c\u0443\u044e \u043d\u0430 \u0434\u0438\u0441\u043f\u043b\u0435\u0435 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u0438 \u0437\u0430\u043b\u0438\u0432\u0430\u044f \u0434\u0438\u0441\u043f\u043b\u0435\u0439 \u0447\u0435\u0440\u043d\u044b\u043c \u0446\u0432\u0435\u0442\u043e\u043c.<\/li>\n<li><strong>fillScr(<\/strong>color<strong>);<\/strong>\u00a0\u2013 \u041e\u0447\u0438\u0449\u0430\u0435\u0442 \u0434\u0438\u0441\u043f\u043b\u0435\u0439, \u0441\u0442\u0438\u0440\u0430\u044f \u0432\u0441\u044e \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u043c\u0443\u044e \u043d\u0430 \u0434\u0438\u0441\u043f\u043b\u0435\u0435 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u0438 \u0437\u0430\u043b\u0438\u0432\u0430\u044f \u0435\u0433\u043e \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u043c \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430 \u0446\u0432\u0435\u0442\u043e\u043c \u0444\u043e\u043d\u0430.<\/li>\n<li><strong>getDisplayXSize();<\/strong>\u00a0\u2013 \u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043f\u0438\u043a\u0441\u0435\u043b\u0435\u0439 \u0434\u0438\u0441\u043f\u043b\u0435\u044f \u043f\u043e \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u0438, \u0447\u0438\u0441\u043b\u043e \u0442\u0438\u043f\u0430 int.<\/li>\n<li><strong>getDisplayYSize();<\/strong>\u00a0\u2013 \u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043f\u0438\u043a\u0441\u0435\u043b\u0435\u0439 \u0434\u0438\u0441\u043f\u043b\u0435\u044f \u043f\u043e \u0432\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u0438, \u0447\u0438\u0441\u043b\u043e \u0442\u0438\u043f\u0430 int.<\/li>\n<li><strong>setColor(<\/strong>color<strong>);<\/strong>\u00a0\u2013 \u0412\u044b\u0431\u043e\u0440 \u0446\u0432\u0435\u0442\u0430 \u0434\u043b\u044f \u0442\u0435\u043a\u0441\u0442\u0430 \u0438 \u0444\u0438\u0433\u0443\u0440, \u0432\u044b\u0432\u043e\u0434\u0438\u043c\u044b\u0445 \u043f\u043e\u0441\u043b\u0435 \u0434\u0430\u043d\u043d\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438.<\/li>\n<li><strong>getColor();<\/strong>\u00a0\u2013 \u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u0439 \u0446\u0432\u0435\u0442 \u0434\u043b\u044f \u0442\u0435\u043a\u0441\u0442\u0430 \u0438 \u0444\u0438\u0433\u0443\u0440 \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 RGB565, \u0447\u0438\u0441\u043b\u043e \u0442\u0438\u043f\u0430 word.<\/li>\n<li><strong>setBackColor(<\/strong>color<strong>);<\/strong>\u00a0\u2013 \u0412\u044b\u0431\u043e\u0440 \u0446\u0432\u0435\u0442\u0430 \u0434\u043b\u044f \u0444\u043e\u043d\u0430 \u0442\u0435\u043a\u0441\u0442\u0430, \u0432\u044b\u0432\u043e\u0434\u0438\u043c\u043e\u0433\u043e \u043f\u043e\u0441\u043b\u0435 \u0434\u0430\u043d\u043d\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438.<\/li>\n<li><strong>getBackColor();<\/strong>\u00a0\u2013 \u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u0439 \u0446\u0432\u0435\u0442 \u0434\u043b\u044f \u0444\u043e\u043d\u0430 \u0442\u0435\u043a\u0441\u0442\u0430 \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 RGB565, \u0447\u0438\u0441\u043b\u043e \u0442\u0438\u043f\u0430 word.<\/li>\n<li><strong>setFont(<\/strong>fontName<strong>);<\/strong>\u00a0\u2013 \u0412\u044b\u0431\u043e\u0440 \u0448\u0440\u0438\u0444\u0442\u0430 \u0434\u043b\u044f \u0442\u0435\u043a\u0441\u0442\u0430 \u0432\u044b\u0432\u043e\u0434\u0438\u043c\u043e\u0433\u043e \u043f\u043e\u0441\u043b\u0435 \u0434\u0430\u043d\u043d\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438.<\/li>\n<li><strong>getFont();<\/strong>\u00a0\u2013 \u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u043d\u0430 \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u0439 \u0448\u0440\u0438\u0444\u0442.<\/li>\n<li><strong>getFontXsize();<\/strong>\u00a0\u2013 \u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043f\u0438\u043a\u0441\u0435\u043b\u0435\u0439 \u0432 \u043e\u0434\u043d\u043e\u043c \u0441\u0438\u043c\u0432\u043e\u043b\u0435 \u0448\u0440\u0438\u0444\u0442\u0430, \u043f\u043e \u0448\u0438\u0440\u0438\u043d\u0435.<\/li>\n<li><strong>getFontYsize();<\/strong>\u00a0\u2013 \u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043f\u0438\u043a\u0441\u0435\u043b\u0435\u0439 \u0432 \u043e\u0434\u043d\u043e\u043c \u0441\u0438\u043c\u0432\u043e\u043b\u0435 \u0448\u0440\u0438\u0444\u0442\u0430, \u043f\u043e \u0432\u044b\u0441\u043e\u0442\u0435.<\/li>\n<li><strong>print(<\/strong>str,x,y[,r]<strong>);<\/strong>\u00a0\u2013 \u0412\u044b\u0432\u043e\u0434 \u043d\u0430 \u0434\u0438\u0441\u043f\u043b\u0435\u0439 \u0441\u0442\u0440\u043e\u043a \u0438\u043b\u0438 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0433\u043e \u0441\u0442\u0440\u043e\u043a\u043e\u0432\u044b\u0445 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445.<\/li>\n<li><strong>printNumI(<\/strong>int,x,y[,len[,sym]]<strong>);<\/strong>\u00a0\u2013 \u0412\u044b\u0432\u043e\u0434 \u043d\u0430 \u0434\u0438\u0441\u043f\u043b\u0435\u0439 \u0446\u0435\u043b\u043e\u0433\u043e \u0447\u0438\u0441\u043b\u0430 \u0438\u043b\u0438 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0433\u043e \u0446\u0435\u043b\u043e\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u043e\u0439 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439.<\/li>\n<li><strong>printNumF(<\/strong>float,dec,x,y[,sym1[,len[,sym2]]]<strong>);<\/strong>\u00a0\u2013 \u0412\u044b\u0432\u043e\u0434 \u043d\u0430 \u0434\u0438\u0441\u043f\u043b\u0435\u0439 \u0432\u0435\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0433\u043e \u0447\u0438\u0441\u043b\u0430 \u0438\u043b\u0438 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0433\u043e \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u0432\u0435\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0433\u043e \u0442\u0438\u043f\u0430<\/li>\n<li><strong>drawPixel(<\/strong>x,y<strong>);<\/strong>\u00a0\u2013 \u0412\u044b\u0432\u043e\u0434 \u043d\u0430 \u0434\u0438\u0441\u043f\u043b\u0435\u0439 \u0442\u043e\u0447\u043a\u0438. \u0426\u0432\u0435\u0442 \u0442\u043e\u0447\u043a\u0438 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442\u0441\u044f \u0442\u0435\u043a\u0443\u0449\u0438\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c \u0446\u0432\u0435\u0442\u0430, \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c\u044b\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 setColor().<\/li>\n<li><strong>drawLine(<\/strong>x1,y1,x2,y2<strong>);<\/strong>\u00a0\u2013 \u0412\u044b\u0432\u043e\u0434 \u043d\u0430 \u0434\u0438\u0441\u043f\u043b\u0435\u0439 \u043b\u0438\u043d\u0438\u0438, \u0437\u0430\u0434\u0430\u043d\u043d\u043e\u0439 \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u0430\u043c\u0438 \u0434\u0432\u0443\u0445 \u0442\u043e\u0447\u0435\u043a.<\/li>\n<li><strong>drawRect(<\/strong>x1,y1,x2,y2<strong>);<\/strong>\u00a0\u2013 \u0412\u044b\u0432\u043e\u0434 \u043d\u0430 \u0434\u0438\u0441\u043f\u043b\u0435\u0439 \u043f\u0440\u044f\u043c\u043e\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a\u0430, \u043f\u0440\u043e\u0442\u0438\u0432\u043e\u043f\u043e\u043b\u043e\u0436\u043d\u044b\u0435 \u0443\u0433\u043b\u044b \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0437\u0430\u0434\u0430\u043d\u044b \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u0430\u043c\u0438 \u0434\u0432\u0443\u0445 \u0442\u043e\u0447\u0435\u043a.<\/li>\n<li><strong>drawRoundRect(<\/strong>x1,y1,x2,y2<strong>);<\/strong>\u00a0\u2013 \u0412\u044b\u0432\u043e\u0434 \u043d\u0430 \u0434\u0438\u0441\u043f\u043b\u0435\u0439 \u043f\u0440\u044f\u043c\u043e\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a\u0430 \u0441\u043e \u0441\u043a\u0440\u0443\u0433\u043b\u0435\u043d\u043d\u044b\u043c\u0438 \u0443\u0433\u043b\u0430\u043c\u0438.<\/li>\n<li><strong>fillRect(<\/strong>x1,y1,x2,y2<strong>);<\/strong>\u00a0\u2013 \u0412\u044b\u0432\u043e\u0434 \u043d\u0430 \u0434\u0438\u0441\u043f\u043b\u0435\u0439 \u0437\u0430\u043a\u0440\u0430\u0448\u0435\u043d\u043d\u043e\u0433\u043e \u043f\u0440\u044f\u043c\u043e\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a\u0430.<\/li>\n<li><strong>drawCircle(<\/strong>x,y,R<strong>);<\/strong>\u00a0\u2013 \u0412\u044b\u0432\u043e\u0434 \u043d\u0430 \u0434\u0438\u0441\u043f\u043b\u0435\u0439 \u043e\u043a\u0440\u0443\u0436\u043d\u043e\u0441\u0442\u0438, \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u043c\u0443\u044e \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u0430\u043c\u0438 \u0446\u0435\u043d\u0442\u0440\u0430 \u0438 \u0440\u0430\u0434\u0438\u0443\u0441\u043e\u043c.<\/li>\n<li><strong>fillCircle(<\/strong>x,y,R<strong>);<\/strong>\u00a0\u2013 \u0412\u044b\u0432\u043e\u0434 \u043d\u0430 \u0434\u0438\u0441\u043f\u043b\u0435\u0439 \u0437\u0430\u043a\u0440\u0430\u0448\u0435\u043d\u043d\u043e\u0439 \u043e\u043a\u0440\u0443\u0436\u043d\u043e\u0441\u0442\u0438.<\/li>\n<li><strong>drawBitmap(<\/strong>x1,y1,x2,y2,data[,scale]<strong>);<\/strong>\u00a0\u2013 \u0412\u044b\u0432\u043e\u0434 \u043d\u0430 \u0434\u0438\u0441\u043f\u043b\u0435\u0439 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438 \u0438\u0437 \u043c\u0430\u0441\u0441\u0438\u0432\u0430.<\/li>\n<\/ul>\n<p>\u0422\u0430\u043a \u043a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0430 \u043b\u043e\u0433\u0438\u043a\u0438 \u0438\u043c\u0435\u0435\u0442 \u043d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u0435 3,3 \u0412, \u0442\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0434\u0438\u0441\u043f\u043b\u0435\u044f \u043a \u043f\u043b\u0430\u0442\u0435 Arduino \u0438\u043c\u0435\u0435\u0442 \u0441\u0432\u043e\u0438 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u0438, \u0432\u044b\u0432\u043e\u0434\u044b \u0434\u0438\u0441\u043f\u043b\u0435\u044f SDI (MOSI), SCK, CS, RESET, DC \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0442\u044c \u043a \u043f\u043b\u0430\u0442\u0435 Arduino \u0447\u0435\u0440\u0435\u0437 \u0434\u0435\u043b\u0438\u0442\u0435\u043b\u0438 \u043d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u044f \u043d\u0430 \u0440\u0435\u0437\u0438\u0441\u0442\u043e\u0440\u0430\u0445.<\/p>\n<div id=\"marketWidget\"><\/div>\n<p><a href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/06\/Screenshot-06.06.2019-150606.png\" class=\"highslide-image\" onclick=\"return hs.expand(this);\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-62001\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/06\/Screenshot-06.06.2019-150606.png\" alt=\"\" width=\"230\" height=\"208\" srcset=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/06\/Screenshot-06.06.2019-150606.png 230w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/06\/Screenshot-06.06.2019-150606-200x181.png 200w\" sizes=\"auto, (max-width: 230px) 100vw, 230px\" \/><\/a><\/p>\n<table style=\"border-collapse: collapse; width: 100%;\" border=\"1\">\n<tbody>\n<tr>\n<td style=\"width: 50%;\">Arduino<\/td>\n<td style=\"width: 50%;\">TFT-\u0434\u0438\u0441\u043f\u043b\u0435\u0439 SPI 320&#215;240<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 50%;\">+5V<\/td>\n<td style=\"width: 50%;\">VCC<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 50%;\">GND<\/td>\n<td style=\"width: 50%;\">GND<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 50%;\">D8 \u0447\u0435\u0440\u0435\u0437 \u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044c<\/td>\n<td style=\"width: 50%;\">SDI (MOSI)<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 50%;\">D9 \u0447\u0435\u0440\u0435\u0437 \u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044c<\/td>\n<td style=\"width: 50%;\">SCK<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 50%;\">D12 \u0447\u0435\u0440\u0435\u0437 \u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044c<\/td>\n<td style=\"width: 50%;\">CS<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 50%;\">D11 \u0447\u0435\u0440\u0435\u0437 \u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044c<\/td>\n<td style=\"width: 50%;\">RESET<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 50%;\">D10 \u0447\u0435\u0440\u0435\u0437 \u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044c<\/td>\n<td style=\"width: 50%;\">DC<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 50%;\">+3.3V<\/td>\n<td style=\"width: 50%;\">LED<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u0411\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430:<\/p>\n<ul>\n<li><strong> <a href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/06\/UTFT.zip\">UTFT.zip<\/a><\/strong><\/li>\n<\/ul>\n<p>\u0422\u0435\u0441\u0442\u043e\u0432\u044b\u0439 \u0441\u043a\u0435\u0442\u0447 &#8212; \u0432\u044b\u0432\u043e\u0434 \u0442\u0435\u043a\u0441\u0442\u0430<\/p>\n<pre class=\"actionscript\" style=\"font-family: monospace; font-size: 10px;\"><span style=\"color: #808080; font-style: italic;\">\/\/ \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0434\u0438\u0441\u043f\u043b\u0435\u0435\u043c<\/span>\r\n<span style=\"color: #808080; font-style: italic;\">#include &lt;UTFT.h&gt;<\/span>\r\n<span style=\"color: #808080; font-style: italic;\">\/\/ \u0441\u043e\u0437\u0434\u0430\u0451\u043c \u043e\u0431\u044a\u0435\u043a\u0442 \u043a\u043b\u0430\u0441\u0441\u0430 UTFT<\/span>\r\n<span style=\"color: #808080; font-style: italic;\">\/\/ \u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0451\u043c \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u043c\u043e\u0434\u0435\u043b\u0438 \u0434\u0438\u0441\u043f\u043b\u0435\u044f \u0438 \u043d\u043e\u043c\u0435\u0440\u0430 \u043f\u0438\u043d\u043e\u0432<\/span>\r\nUTFT myGLCD<span style=\"color: #66cc66;\">(<\/span>TFT01_22SP, <span style=\"color: #cc66cc;\">8<\/span>, <span style=\"color: #cc66cc;\">9<\/span>, <span style=\"color: #cc66cc;\">12<\/span>, <span style=\"color: #cc66cc;\">11<\/span>, <span style=\"color: #cc66cc;\">10<\/span><span style=\"color: #66cc66;\">)<\/span>; <span style=\"color: #808080; font-style: italic;\">\/\/ SDI (MOSI), SCK, CS, RESET, DC<\/span>\r\n<span style=\"color: #808080; font-style: italic;\">\/\/ \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u044f \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u043e\u0433\u043e \u0448\u0440\u0438\u0444\u0442\u0430<\/span>\r\nextern uint8_t BigFont<span style=\"color: #66cc66;\">[<\/span><span style=\"color: #66cc66;\">]<\/span>;\r\n<span style=\"color: #0066cc;\">void<\/span> setup<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span>\r\n<span style=\"color: #66cc66;\">{<\/span>\r\n  <span style=\"color: #808080; font-style: italic;\">\/\/ \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u043c \u0434\u0438\u0441\u043f\u043b\u0435\u0439 \u0441 \u0432\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u044c\u043d\u043e\u0439 \u043e\u0440\u0438\u0435\u043d\u0442\u0430\u0446\u0438\u0435\u0439<\/span>\r\n  myGLCD.<span style=\"color: #006600;\">InitLCD<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">0<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n  <span style=\"color: #808080; font-style: italic;\">\/\/ \u043e\u0447\u0438\u0449\u0430\u0435\u043c \u044d\u043a\u0440\u0430\u043d<\/span>\r\n  myGLCD.<span style=\"color: #006600;\">clrScr<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n  <span style=\"color: #808080; font-style: italic;\">\/\/ \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0448\u0440\u0438\u0444\u0442<\/span>\r\n  myGLCD.<span style=\"color: #006600;\">setFont<\/span><span style=\"color: #66cc66;\">(<\/span>BigFont<span style=\"color: #66cc66;\">)<\/span>;\r\n  <span style=\"color: #808080; font-style: italic;\">\/\/ \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u043a\u0440\u0430\u0441\u043d\u044b\u0439 \u0446\u0432\u0435\u0442 \u00ab\u0447\u0435\u0440\u043d\u0438\u043b\u00bb \u0434\u043b\u044f \u043f\u0435\u0447\u0430\u0442\u0438 \u0438 \u0440\u0438\u0441\u043e\u0432\u0430\u043d\u0438\u044f<\/span>\r\n  myGLCD.<span style=\"color: #006600;\">setColor<\/span><span style=\"color: #66cc66;\">(<\/span>VGA_RED<span style=\"color: #66cc66;\">)<\/span>;\r\n  <span style=\"color: #808080; font-style: italic;\">\/\/ \u043f\u0435\u0447\u0430\u0442\u0430\u0435\u043c \u0441\u0442\u0440\u043e\u043a\u0443 \u0432 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0435 \u043f\u043e\u0437\u0438\u0446\u0438\u0438<\/span>\r\n  myGLCD.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\"Hello, World!\"<\/span>, CENTER, <span style=\"color: #cc66cc;\">0<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n  <span style=\"color: #808080; font-style: italic;\">\/\/ \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0441\u0438\u043d\u0438\u0439 \u0446\u0432\u0435\u0442 \u00ab\u0447\u0435\u0440\u043d\u0438\u043b\u00bb \u0434\u043b\u044f \u043f\u0435\u0447\u0430\u0442\u0438 \u0438 \u0440\u0438\u0441\u043e\u0432\u0430\u043d\u0438\u044f<\/span>\r\n  myGLCD.<span style=\"color: #006600;\">setColor<\/span><span style=\"color: #66cc66;\">(<\/span>VGA_BLUE<span style=\"color: #66cc66;\">)<\/span>;\r\n  <span style=\"color: #808080; font-style: italic;\">\/\/ \u043f\u0435\u0447\u0430\u0442\u0430\u0435\u043c \u0441\u0442\u0440\u043e\u043a\u0443 \u0432 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0435 \u043f\u043e\u0437\u0438\u0446\u0438\u0438<\/span>\r\n  myGLCD.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\"Hello, World!\"<\/span>, CENTER, <span style=\"color: #cc66cc;\">36<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n  <span style=\"color: #808080; font-style: italic;\">\/\/ \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0437\u0435\u043b\u0451\u043d\u044b\u0439 \u0446\u0432\u0435\u0442 \u00ab\u0447\u0435\u0440\u043d\u0438\u043b\u00bb \u0434\u043b\u044f \u043f\u0435\u0447\u0430\u0442\u0438 \u0438 \u0440\u0438\u0441\u043e\u0432\u0430\u043d\u0438\u044f<\/span>\r\n  myGLCD.<span style=\"color: #006600;\">setColor<\/span><span style=\"color: #66cc66;\">(<\/span>VGA_GREEN<span style=\"color: #66cc66;\">)<\/span>;\r\n  <span style=\"color: #808080; font-style: italic;\">\/\/ \u043f\u0435\u0447\u0430\u0442\u0430\u0435\u043c \u0441\u0442\u0440\u043e\u043a\u0443 \u0432 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0435 \u043f\u043e\u0437\u0438\u0446\u0438\u0438<\/span>\r\n  myGLCD.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\"Hello, World!\"<\/span>, CENTER, <span style=\"color: #cc66cc;\">72<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n  <span style=\"color: #808080; font-style: italic;\">\/\/ \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0441\u0435\u0440\u0435\u0431\u0440\u044f\u043d\u044b\u0439 \u0446\u0432\u0435\u0442 \u00ab\u0447\u0435\u0440\u043d\u0438\u043b\u00bb \u0434\u043b\u044f \u043f\u0435\u0447\u0430\u0442\u0438 \u0438 \u0440\u0438\u0441\u043e\u0432\u0430\u043d\u0438\u044f<\/span>\r\n  myGLCD.<span style=\"color: #006600;\">setColor<\/span><span style=\"color: #66cc66;\">(<\/span>VGA_SILVER<span style=\"color: #66cc66;\">)<\/span>;\r\n  <span style=\"color: #808080; font-style: italic;\">\/\/ \u043f\u0435\u0447\u0430\u0442\u0430\u0435\u043c \u0441\u0442\u0440\u043e\u043a\u0443 \u0432 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0435 \u043f\u043e\u0437\u0438\u0446\u0438\u0438<\/span>\r\n  myGLCD.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\"Hello, World!\"<\/span>, CENTER, <span style=\"color: #cc66cc;\">108<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n<span style=\"color: #66cc66;\">}<\/span>\r\n<span style=\"color: #0066cc;\">void<\/span> loop<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span>\r\n<span style=\"color: #66cc66;\">{<\/span>\r\n<span style=\"color: #66cc66;\">}<\/span><\/pre>\n<p><a href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/06\/Screenshot-06.06.2019-151949.png\" class=\"highslide-image\" onclick=\"return hs.expand(this);\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-62002\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/06\/Screenshot-06.06.2019-151949.png\" alt=\"\" width=\"433\" height=\"653\" srcset=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/06\/Screenshot-06.06.2019-151949.png 433w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/06\/Screenshot-06.06.2019-151949-200x302.png 200w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/06\/Screenshot-06.06.2019-151949-332x500.png 332w\" sizes=\"auto, (max-width: 433px) 100vw, 433px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0426\u0432\u0435\u0442\u043d\u043e\u0439 TFT-\u0434\u0438\u0441\u043f\u043b\u0435\u0439 SPI 320&#215;240 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0442\u0435\u043a\u0441\u0442\u0430 \u0438 \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432: \u0438\u043a\u043e\u043d\u043e\u043a, \u043a\u0430\u0440\u0442\u0438\u043d\u043e\u043a, \u0433\u0440\u0430\u0444\u0438\u043a\u043e\u0432, \u043a\u0430\u0434\u0440\u043e\u0432 \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u0438. \u041e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u0438\u0441\u0442\u0438\u043a\u0438 \u0434\u0438\u0441\u043f\u043b\u0435\u044f: \u041d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435: TFT01-22SP \u041a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440: ILI9341C \u0414\u0438\u0430\u0433\u043e\u043d\u0430\u043b\u044c: 3,2 \u0434\u044e\u0439\u043c\u0430 \u041d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u0435 \u043f\u0438\u0442\u0430\u043d\u0438\u0435: 5 \u0412 \u041d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u0435 \u0441\u0438\u0433\u043d\u0430\u043b\u043e\u0432: 3,3 \u0412 \u0420\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435: 240 x 320 (RGB) \u0414\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u0434\u0438\u0441\u043f\u043b\u0435\u044f\u043c\u0438 \u043e\u0442\u043b\u0438\u0447\u043d\u043e \u043f\u043e\u0434\u043e\u0439\u0434\u0435\u0442 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 UTFT. \u0411\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u0430\u044f \u0438 \u0443\u0434\u043e\u0431\u043d\u0430\u044f \u0434\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":62002,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[239,17],"tags":[],"class_list":["post-61998","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-arduino","category-17"],"views":15233,"_links":{"self":[{"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/61998","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=61998"}],"version-history":[{"count":7,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/61998\/revisions"}],"predecessor-version":[{"id":111370,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/61998\/revisions\/111370"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/media\/62002"}],"wp:attachment":[{"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=61998"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=61998"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=61998"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}