<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
	<id>http://wikihandbk.com/ruwiki/index.php?action=history&amp;feed=atom&amp;title=Arduino%3A%D0%9F%D1%80%D0%B8%D0%BC%D0%B5%D1%80%D1%8B%2Fgraphicstest</id>
	<title>Arduino:Примеры/graphicstest - История изменений</title>
	<link rel="self" type="application/atom+xml" href="http://wikihandbk.com/ruwiki/index.php?action=history&amp;feed=atom&amp;title=Arduino%3A%D0%9F%D1%80%D0%B8%D0%BC%D0%B5%D1%80%D1%8B%2Fgraphicstest"/>
	<link rel="alternate" type="text/html" href="http://wikihandbk.com/ruwiki/index.php?title=Arduino:%D0%9F%D1%80%D0%B8%D0%BC%D0%B5%D1%80%D1%8B/graphicstest&amp;action=history"/>
	<updated>2026-04-08T20:44:27Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>http://wikihandbk.com/ruwiki/index.php?title=Arduino:%D0%9F%D1%80%D0%B8%D0%BC%D0%B5%D1%80%D1%8B/graphicstest&amp;diff=8496074&amp;oldid=prev</id>
		<title>EducationBot в 08:39, 8 июля 2023</title>
		<link rel="alternate" type="text/html" href="http://wikihandbk.com/ruwiki/index.php?title=Arduino:%D0%9F%D1%80%D0%B8%D0%BC%D0%B5%D1%80%D1%8B/graphicstest&amp;diff=8496074&amp;oldid=prev"/>
		<updated>2023-07-08T08:39:47Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Предыдущая версия&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Версия от 12:39, 8 июля 2023&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l328&quot;&gt;Строка 328:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Строка 328:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;references /&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;references /&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{{Навигационная таблица/Портал/Arduino}}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Категория:Пример]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Категория:Пример]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Категория:Примеры]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Категория:Примеры]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Категория:Пример программирования Arduino]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Категория:Пример программирования Arduino]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Категория:Примеры программирования Arduino]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Категория:Примеры программирования Arduino]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wikihandbkcom:diff::1.12:old-7735810:rev-8496074 --&gt;
&lt;/table&gt;</summary>
		<author><name>EducationBot</name></author>
	</entry>
	<entry>
		<id>http://wikihandbk.com/ruwiki/index.php?title=Arduino:%D0%9F%D1%80%D0%B8%D0%BC%D0%B5%D1%80%D1%8B/graphicstest&amp;diff=7735810&amp;oldid=prev</id>
		<title>EducationBot в 08:35, 20 мая 2023</title>
		<link rel="alternate" type="text/html" href="http://wikihandbk.com/ruwiki/index.php?title=Arduino:%D0%9F%D1%80%D0%B8%D0%BC%D0%B5%D1%80%D1%8B/graphicstest&amp;diff=7735810&amp;oldid=prev"/>
		<updated>2023-05-20T08:35:13Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Предыдущая версия&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Версия от 12:35, 20 мая 2023&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l9&quot;&gt;Строка 9:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Строка 9:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Код==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Код==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;syntaxhighlight lang=&quot;c&quot; line=&quot;GESHI_NORMAL_LINE_NUMBERS|GESHI_FANCY_LINE_NUMBERS&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&quot; enclose=&quot;div&lt;/del&gt;&quot;&amp;gt;  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;syntaxhighlight lang=&quot;c&quot; line=&quot;GESHI_NORMAL_LINE_NUMBERS|GESHI_FANCY_LINE_NUMBERS&quot;&amp;gt;  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;/***************************************************&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;/***************************************************&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>EducationBot</name></author>
	</entry>
	<entry>
		<id>http://wikihandbk.com/ruwiki/index.php?title=Arduino:%D0%9F%D1%80%D0%B8%D0%BC%D0%B5%D1%80%D1%8B/graphicstest&amp;diff=21308&amp;oldid=prev</id>
		<title>Myagkij: Замена текста — «&lt;syntaxhighlight lang=&quot;c&quot; line=&quot;GESHI_NORMAL_LINE_NUMBERS|GESHI_FANCY_LINE_NUMBERS&quot;&gt;» на «&lt;syntaxhighlight lang=&quot;c&quot; line=&quot;GESHI_NORMAL_LINE_NUMBERS|GESHI_FANCY_LINE_NUMBERS&quot; enclose=&quot;div&quot;&gt;»</title>
		<link rel="alternate" type="text/html" href="http://wikihandbk.com/ruwiki/index.php?title=Arduino:%D0%9F%D1%80%D0%B8%D0%BC%D0%B5%D1%80%D1%8B/graphicstest&amp;diff=21308&amp;oldid=prev"/>
		<updated>2016-12-14T05:23:10Z</updated>

		<summary type="html">&lt;p&gt;Замена текста — «&amp;lt;syntaxhighlight lang=&amp;quot;c&amp;quot; line=&amp;quot;GESHI_NORMAL_LINE_NUMBERS|GESHI_FANCY_LINE_NUMBERS&amp;quot;&amp;gt;» на «&amp;lt;syntaxhighlight lang=&amp;quot;c&amp;quot; line=&amp;quot;GESHI_NORMAL_LINE_NUMBERS|GESHI_FANCY_LINE_NUMBERS&amp;quot; enclose=&amp;quot;div&amp;quot;&amp;gt;»&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Arduino панель перехода}}&lt;br /&gt;
{{Перевод от Сubewriter}}&lt;br /&gt;
{{Myagkij-редактор}}&lt;br /&gt;
&lt;br /&gt;
=Графический тест&amp;lt;ref&amp;gt;[https://github.com/adafruit/Adafruit-ST7735-Library/blob/master/examples/graphicstest/graphicstest.ino github.com - graphicstest.ino]&amp;lt;/ref&amp;gt;=&lt;br /&gt;
&lt;br /&gt;
Это текстовый скетч для [[Arduino:Библиотеки/ST7735|библиотеки ST7735]], который при помощи платы '''Arduino''' совершает с '''TFT'''-дисплеем различные действия: печатает текст, картинки, рисует фигуры и пр.&lt;br /&gt;
&lt;br /&gt;
==Код==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;c&amp;quot; line=&amp;quot;GESHI_NORMAL_LINE_NUMBERS|GESHI_FANCY_LINE_NUMBERS&amp;quot; enclose=&amp;quot;div&amp;quot;&amp;gt; &lt;br /&gt;
/***************************************************&lt;br /&gt;
&lt;br /&gt;
Графический тест&lt;br /&gt;
&lt;br /&gt;
Эта библиотека предназначена для работы с TFT-дисплеями (с SPI-интерфейсом) от Adafruit. Библиотека поддерживает следующие устройства:&lt;br /&gt;
&lt;br /&gt;
* 1,8-дюймовую TFT-плату с SD-картой:&lt;br /&gt;
  https://www.adafruit.com/products/358&lt;br /&gt;
* 1,8-дюймовый TFT-модуль:&lt;br /&gt;
  https://www.adafruit.com/product/802&lt;br /&gt;
* 1,44-дюймовую TFT-плату:&lt;br /&gt;
  https://www.adafruit.com/product/2088&lt;br /&gt;
* «Голый» 1,8-дюймовый TFT-дисплей (без плат и модулей):&lt;br /&gt;
  https://www.adafruit.com/products/618  &lt;br /&gt;
&lt;br /&gt;
Руководства и схемы подключения ищите по ссылкам выше. Этим дисплеям &lt;br /&gt;
для коммуникации требуется SPI-интерфейс с 4 или 5 контактами (контакт &lt;br /&gt;
RST опционален).&lt;br /&gt;
&lt;br /&gt;
Adafruit инвестировала время и ресурсы, создавая эту библиотеку с &lt;br /&gt;
открытым кодом. Пожалуйста, поддержите Adafruit и оборудование с &lt;br /&gt;
открытым кодом, покупая продукты Adafruit!&lt;br /&gt;
&lt;br /&gt;
Библиотека написана Лимор Фрид (Limor Fried, Ladyada) для Adafruit &lt;br /&gt;
Industries. Весь текст выше должен быть включен при любом повторном &lt;br /&gt;
распространении.&lt;br /&gt;
&lt;br /&gt;
****************************************************/&lt;br /&gt;
&lt;br /&gt;
#include &amp;lt;Adafruit_GFX.h&amp;gt;    // подключаем графическую библиотеку&lt;br /&gt;
#include &amp;lt;Adafruit_ST7735.h&amp;gt; // подключаем библиотеку для управления дисплеем&lt;br /&gt;
#include &amp;lt;SPI.h&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
// для TFT-платы можно использовать 2-3 контакта;&lt;br /&gt;
// эти контакты будут работать и для 1,8-дюймового TFT-модуля:&lt;br /&gt;
#define TFT_CS     10&lt;br /&gt;
#define TFT_RST    9  // этот контакт можно подключить к RESET-&lt;br /&gt;
                      // контакту Arduino, но тогда вместе «9» &lt;br /&gt;
                      // надо указать «0».&lt;br /&gt;
#define TFT_DC     8&lt;br /&gt;
&lt;br /&gt;
// Вариант 1 (рекомендуемый): используются аппаратные SPI-контакты&lt;br /&gt;
// (на UNO: SCLK – это 13-ый контакт, а MOSI – это 11-ый контакт),&lt;br /&gt;
// а 10-ый контакт должен быть выходным. Этот способ быстрее, и его&lt;br /&gt;
// необходимо использовать, если вы работаете с картой microSD&lt;br /&gt;
// (подробнее смотрите в примере, где рисуется изображение):&lt;br /&gt;
Adafruit_ST7735 tft = Adafruit_ST7735(TFT_CS,  TFT_DC, TFT_RST);&lt;br /&gt;
&lt;br /&gt;
// Вариант 2: можно использовать любые контакты,&lt;br /&gt;
// но процесс будет идти медленней!&lt;br /&gt;
#define TFT_SCLK 13   // здесь можно задать любой контакт&lt;br /&gt;
#define TFT_MOSI 11   // здесь можно задать любой контакт&lt;br /&gt;
//Adafruit_ST7735 tft = Adafruit_ST7735(TFT_CS, TFT_DC, TFT_MOSI, TFT_SCLK, TFT_RST);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
float p = 3.1415926;&lt;br /&gt;
&lt;br /&gt;
void setup(void) {&lt;br /&gt;
  Serial.begin(9600);&lt;br /&gt;
  Serial.print(&amp;quot;Hello! ST7735 TFT Test&amp;quot;);  //  &amp;quot;Привет! Это тест TFT-дисплея ST7735&amp;quot;&lt;br /&gt;
&lt;br /&gt;
  // используйте этот инициализатор, если работаете &lt;br /&gt;
  // с 1,8-дюймовым TFT-дисплеем:&lt;br /&gt;
  tft.initR(INITR_BLACKTAB);   //  инициализируем чипa ST7735S, черный ярлычок&lt;br /&gt;
&lt;br /&gt;
  // используйте этот инициализатор, если работаете &lt;br /&gt;
  // с 1,44-дюймовым TFT-дисплеем (нужно раскомментировать):&lt;br /&gt;
  //tft.initR(INITR_144GREENTAB);   // инициализируем чипa ST7735S, зеленый ярлычок&lt;br /&gt;
&lt;br /&gt;
  Serial.println(&amp;quot;Initialized&amp;quot;);  //  &amp;quot;Дисплей инициализирован&amp;quot;&lt;br /&gt;
&lt;br /&gt;
  uint16_t time = millis();&lt;br /&gt;
  tft.fillScreen(ST7735_BLACK);&lt;br /&gt;
  time = millis() - time;&lt;br /&gt;
&lt;br /&gt;
  Serial.println(time, DEC);&lt;br /&gt;
  delay(500);&lt;br /&gt;
&lt;br /&gt;
  // большой блок текста:&lt;br /&gt;
  tft.fillScreen(ST7735_BLACK);&lt;br /&gt;
  testdrawtext(&amp;quot;Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur adipiscing ante sed nibh tincidunt feugiat. Maecenas enim massa, fringilla sed malesuada et, malesuada sit amet turpis. Sed porttitor neque ut ante pretium vitae malesuada nunc bibendum. Nullam aliquet ultrices massa eu hendrerit. Ut sed nisi lorem. In vestibulum purus a tortor imperdiet posuere. &amp;quot;, ST7735_WHITE);&lt;br /&gt;
  delay(1000);&lt;br /&gt;
&lt;br /&gt;
  // функция печати на TFT-дисплее:&lt;br /&gt;
  tftPrintTest();&lt;br /&gt;
  delay(4000);&lt;br /&gt;
&lt;br /&gt;
  // рисуем один пиксель:&lt;br /&gt;
  tft.drawPixel(tft.width()/2, tft.height()/2, ST7735_GREEN);&lt;br /&gt;
  delay(500);&lt;br /&gt;
&lt;br /&gt;
  // тест, проверяющий рисование линии:&lt;br /&gt;
  testlines(ST7735_YELLOW);&lt;br /&gt;
  delay(500);&lt;br /&gt;
&lt;br /&gt;
  // оптимизированные линии:&lt;br /&gt;
  testfastlines(ST7735_RED, ST7735_BLUE);&lt;br /&gt;
  delay(500);&lt;br /&gt;
&lt;br /&gt;
  testdrawrects(ST7735_GREEN);&lt;br /&gt;
  delay(500);&lt;br /&gt;
&lt;br /&gt;
  testfillrects(ST7735_YELLOW, ST7735_MAGENTA);&lt;br /&gt;
  delay(500);&lt;br /&gt;
&lt;br /&gt;
  tft.fillScreen(ST7735_BLACK);&lt;br /&gt;
  testfillcircles(10, ST7735_BLUE);&lt;br /&gt;
  testdrawcircles(10, ST7735_WHITE);&lt;br /&gt;
  delay(500);&lt;br /&gt;
&lt;br /&gt;
  testroundrects();&lt;br /&gt;
  delay(500);&lt;br /&gt;
&lt;br /&gt;
  testtriangles();&lt;br /&gt;
  delay(500);&lt;br /&gt;
&lt;br /&gt;
  mediabuttons();&lt;br /&gt;
  delay(500);&lt;br /&gt;
&lt;br /&gt;
  Serial.println(&amp;quot;done&amp;quot;);  //  &amp;quot;Дисплей инициализирован&amp;quot;&lt;br /&gt;
  delay(1000);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
void loop() {&lt;br /&gt;
  tft.invertDisplay(true);&lt;br /&gt;
  delay(500);&lt;br /&gt;
  tft.invertDisplay(false);&lt;br /&gt;
  delay(500);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
void testlines(uint16_t color) {&lt;br /&gt;
  tft.fillScreen(ST7735_BLACK);&lt;br /&gt;
  for (int16_t x=0; x &amp;lt; tft.width(); x+=6) {&lt;br /&gt;
    tft.drawLine(0, 0, x, tft.height()-1, color);&lt;br /&gt;
  }&lt;br /&gt;
  for (int16_t y=0; y &amp;lt; tft.height(); y+=6) {&lt;br /&gt;
    tft.drawLine(0, 0, tft.width()-1, y, color);&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
  tft.fillScreen(ST7735_BLACK);&lt;br /&gt;
  for (int16_t x=0; x &amp;lt; tft.width(); x+=6) {&lt;br /&gt;
    tft.drawLine(tft.width()-1, 0, x, tft.height()-1, color);&lt;br /&gt;
  }&lt;br /&gt;
  for (int16_t y=0; y &amp;lt; tft.height(); y+=6) {&lt;br /&gt;
    tft.drawLine(tft.width()-1, 0, 0, y, color);&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
  tft.fillScreen(ST7735_BLACK);&lt;br /&gt;
  for (int16_t x=0; x &amp;lt; tft.width(); x+=6) {&lt;br /&gt;
    tft.drawLine(0, tft.height()-1, x, 0, color);&lt;br /&gt;
  }&lt;br /&gt;
  for (int16_t y=0; y &amp;lt; tft.height(); y+=6) {&lt;br /&gt;
    tft.drawLine(0, tft.height()-1, tft.width()-1, y, color);&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
  tft.fillScreen(ST7735_BLACK);&lt;br /&gt;
  for (int16_t x=0; x &amp;lt; tft.width(); x+=6) {&lt;br /&gt;
    tft.drawLine(tft.width()-1, tft.height()-1, x, 0, color);&lt;br /&gt;
  }&lt;br /&gt;
  for (int16_t y=0; y &amp;lt; tft.height(); y+=6) {&lt;br /&gt;
    tft.drawLine(tft.width()-1, tft.height()-1, 0, y, color);&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
void testdrawtext(char *text, uint16_t color) {&lt;br /&gt;
  tft.setCursor(0, 0);&lt;br /&gt;
  tft.setTextColor(color);&lt;br /&gt;
  tft.setTextWrap(true);&lt;br /&gt;
  tft.print(text);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
void testfastlines(uint16_t color1, uint16_t color2) {&lt;br /&gt;
  tft.fillScreen(ST7735_BLACK);&lt;br /&gt;
  for (int16_t y=0; y &amp;lt; tft.height(); y+=5) {&lt;br /&gt;
    tft.drawFastHLine(0, y, tft.width(), color1);&lt;br /&gt;
  }&lt;br /&gt;
  for (int16_t x=0; x &amp;lt; tft.width(); x+=5) {&lt;br /&gt;
    tft.drawFastVLine(x, 0, tft.height(), color2);&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
void testdrawrects(uint16_t color) {&lt;br /&gt;
  tft.fillScreen(ST7735_BLACK);&lt;br /&gt;
  for (int16_t x=0; x &amp;lt; tft.width(); x+=6) {&lt;br /&gt;
    tft.drawRect(tft.width()/2 -x/2, tft.height()/2 -x/2 , x, x, color);&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
void testfillrects(uint16_t color1, uint16_t color2) {&lt;br /&gt;
  tft.fillScreen(ST7735_BLACK);&lt;br /&gt;
  for (int16_t x=tft.width()-1; x &amp;gt; 6; x-=6) {&lt;br /&gt;
    tft.fillRect(tft.width()/2 -x/2, tft.height()/2 -x/2 , x, x, color1);&lt;br /&gt;
    tft.drawRect(tft.width()/2 -x/2, tft.height()/2 -x/2 , x, x, color2);&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
void testfillcircles(uint8_t radius, uint16_t color) {&lt;br /&gt;
  for (int16_t x=radius; x &amp;lt; tft.width(); x+=radius*2) {&lt;br /&gt;
    for (int16_t y=radius; y &amp;lt; tft.height(); y+=radius*2) {&lt;br /&gt;
      tft.fillCircle(x, y, radius, color);&lt;br /&gt;
    }&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
void testdrawcircles(uint8_t radius, uint16_t color) {&lt;br /&gt;
  for (int16_t x=0; x &amp;lt; tft.width()+radius; x+=radius*2) {&lt;br /&gt;
    for (int16_t y=0; y &amp;lt; tft.height()+radius; y+=radius*2) {&lt;br /&gt;
      tft.drawCircle(x, y, radius, color);&lt;br /&gt;
    }&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
void testtriangles() {&lt;br /&gt;
  tft.fillScreen(ST7735_BLACK);&lt;br /&gt;
  int color = 0xF800;&lt;br /&gt;
  int t;&lt;br /&gt;
  int w = tft.width()/2;&lt;br /&gt;
  int x = tft.height()-1;&lt;br /&gt;
  int y = 0;&lt;br /&gt;
  int z = tft.width();&lt;br /&gt;
  for(t = 0 ; t &amp;lt;= 15; t+=1) {&lt;br /&gt;
    tft.drawTriangle(w, y, y, x, z, x, color);&lt;br /&gt;
    x-=4;&lt;br /&gt;
    y+=4;&lt;br /&gt;
    z-=4;&lt;br /&gt;
    color+=100;&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
void testroundrects() {&lt;br /&gt;
  tft.fillScreen(ST7735_BLACK);&lt;br /&gt;
  int color = 100;&lt;br /&gt;
  int i;&lt;br /&gt;
  int t;&lt;br /&gt;
  for(t = 0 ; t &amp;lt;= 4; t+=1) {&lt;br /&gt;
    int x = 0;&lt;br /&gt;
    int y = 0;&lt;br /&gt;
    int w = tft.width()-2;&lt;br /&gt;
    int h = tft.height()-2;&lt;br /&gt;
    for(i = 0 ; i &amp;lt;= 16; i+=1) {&lt;br /&gt;
      tft.drawRoundRect(x, y, w, h, 5, color);&lt;br /&gt;
      x+=2;&lt;br /&gt;
      y+=3;&lt;br /&gt;
      w-=4;&lt;br /&gt;
      h-=6;&lt;br /&gt;
      color+=1100;&lt;br /&gt;
    }&lt;br /&gt;
    color+=100;&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
void tftPrintTest() {&lt;br /&gt;
  tft.setTextWrap(false);&lt;br /&gt;
  tft.fillScreen(ST7735_BLACK);&lt;br /&gt;
  tft.setCursor(0, 30);&lt;br /&gt;
  tft.setTextColor(ST7735_RED);&lt;br /&gt;
  tft.setTextSize(1);&lt;br /&gt;
  tft.println(&amp;quot;Hello World!&amp;quot;);  //  &amp;quot;Привет, мир!&amp;quot;&lt;br /&gt;
  tft.setTextColor(ST7735_YELLOW);&lt;br /&gt;
  tft.setTextSize(2);&lt;br /&gt;
  tft.println(&amp;quot;Hello World!&amp;quot;);  //  &amp;quot;Привет, мир!&amp;quot;&lt;br /&gt;
  tft.setTextColor(ST7735_GREEN);&lt;br /&gt;
  tft.setTextSize(3);&lt;br /&gt;
  tft.println(&amp;quot;Hello World!&amp;quot;);  //  &amp;quot;Привет, мир!&amp;quot;&lt;br /&gt;
  tft.setTextColor(ST7735_BLUE);&lt;br /&gt;
  tft.setTextSize(4);&lt;br /&gt;
  tft.print(1234.567);&lt;br /&gt;
  delay(1500);&lt;br /&gt;
  tft.setCursor(0, 0);&lt;br /&gt;
  tft.fillScreen(ST7735_BLACK);&lt;br /&gt;
  tft.setTextColor(ST7735_WHITE);&lt;br /&gt;
  tft.setTextSize(0);&lt;br /&gt;
  tft.println(&amp;quot;Hello World!&amp;quot;);  //  &amp;quot;Привет, мир!&amp;quot;&lt;br /&gt;
  tft.setTextSize(1);&lt;br /&gt;
  tft.setTextColor(ST7735_GREEN);&lt;br /&gt;
  tft.print(p, 6);&lt;br /&gt;
  tft.println(&amp;quot; Want pi?&amp;quot;);  //  &amp;quot; А хотите число «Пи»?&amp;quot;&lt;br /&gt;
  tft.println(&amp;quot; &amp;quot;);&lt;br /&gt;
  tft.print(8675309, HEX); // печатаем число «8,675,309» в шестнадцатеричном виде&lt;br /&gt;
  tft.println(&amp;quot; Print HEX!&amp;quot;);  //  &amp;quot; Печатаем шестнадцатеричный формат!&amp;quot;&lt;br /&gt;
  tft.println(&amp;quot; &amp;quot;);&lt;br /&gt;
  tft.setTextColor(ST7735_WHITE);&lt;br /&gt;
  tft.println(&amp;quot;Sketch has been&amp;quot;);  //  &amp;quot;Скетч&amp;quot;&lt;br /&gt;
  tft.println(&amp;quot;running for: &amp;quot;);  //  &amp;quot;работает в течение: &amp;quot;&lt;br /&gt;
  tft.setTextColor(ST7735_MAGENTA);&lt;br /&gt;
  tft.print(millis() / 1000);&lt;br /&gt;
  tft.setTextColor(ST7735_WHITE);&lt;br /&gt;
  tft.print(&amp;quot; seconds.&amp;quot;);  //  &amp;quot; секунд.&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
void mediabuttons() {&lt;br /&gt;
  // кнопка «Play»:&lt;br /&gt;
  tft.fillScreen(ST7735_BLACK);&lt;br /&gt;
  tft.fillRoundRect(25, 10, 78, 60, 8, ST7735_WHITE);&lt;br /&gt;
  tft.fillTriangle(42, 20, 42, 60, 90, 40, ST7735_RED);&lt;br /&gt;
  delay(500);&lt;br /&gt;
  // кнопка «Пауза»:&lt;br /&gt;
  tft.fillRoundRect(25, 90, 78, 60, 8, ST7735_WHITE);&lt;br /&gt;
  tft.fillRoundRect(39, 98, 20, 45, 5, ST7735_GREEN);&lt;br /&gt;
  tft.fillRoundRect(69, 98, 20, 45, 5, ST7735_GREEN);&lt;br /&gt;
  delay(500);&lt;br /&gt;
  // цветная кнопка «Play» (синяя):&lt;br /&gt;
  tft.fillTriangle(42, 20, 42, 60, 90, 40, ST7735_BLUE);&lt;br /&gt;
  delay(50);&lt;br /&gt;
  // цветная кнопка «Pause»:&lt;br /&gt;
  tft.fillRoundRect(39, 98, 20, 45, 5, ST7735_RED);&lt;br /&gt;
  tft.fillRoundRect(69, 98, 20, 45, 5, ST7735_RED);&lt;br /&gt;
  // цветная кнопка «Play» (зеленая):&lt;br /&gt;
  tft.fillTriangle(42, 20, 42, 60, 90, 40, ST7735_GREEN);&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=См.также=&lt;br /&gt;
&lt;br /&gt;
=Внешние ссылки=&lt;br /&gt;
&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;br /&gt;
[[Категория:Пример]]&lt;br /&gt;
[[Категория:Примеры]]&lt;br /&gt;
[[Категория:Пример программирования Arduino]]&lt;br /&gt;
[[Категория:Примеры программирования Arduino]]&lt;/div&gt;</summary>
		<author><name>Myagkij</name></author>
	</entry>
</feed>