<?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%2FGenuino101CurieIMUTapDetect</id>
	<title>Arduino:Примеры/Genuino101CurieIMUTapDetect - История изменений</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%2FGenuino101CurieIMUTapDetect"/>
	<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/Genuino101CurieIMUTapDetect&amp;action=history"/>
	<updated>2026-04-06T19:10:51Z</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/Genuino101CurieIMUTapDetect&amp;diff=8495934&amp;oldid=prev</id>
		<title>EducationBot в 08:35, 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/Genuino101CurieIMUTapDetect&amp;diff=8495934&amp;oldid=prev"/>
		<updated>2023-07-08T08:35:26Z</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, 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-l114&quot;&gt;Строка 114:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Строка 114:&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-7673409:rev-8495934 --&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/Genuino101CurieIMUTapDetect&amp;diff=7673409&amp;oldid=prev</id>
		<title>EducationBot в 14:19, 14 мая 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/Genuino101CurieIMUTapDetect&amp;diff=7673409&amp;oldid=prev"/>
		<updated>2023-05-14T14:19:07Z</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;Версия от 18:19, 14 мая 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-l25&quot;&gt;Строка 25:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Строка 25:&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:Справочник языка Arduino/setup()|setup()]], который содержит весь код, необходимый, чтобы задать событие для определения двойного нажатия. Если двойное нажатие будет определено, запустится прерывание, с помощью которого будет вызвана функция '''eventCallback()''', определяющая и через монитор порта сообщающая, по какой оси и в каком направлении было совершено двойное нажатие. Блок [[Arduino:Справочник языка Arduino/loop()|loop()]] оставляем пустым.&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:Справочник языка Arduino/setup()|setup()]], который содержит весь код, необходимый, чтобы задать событие для определения двойного нажатия. Если двойное нажатие будет определено, запустится прерывание, с помощью которого будет вызвана функция '''eventCallback()''', определяющая и через монитор порта сообщающая, по какой оси и в каком направлении было совершено двойное нажатие. Блок [[Arduino:Справочник языка Arduino/loop()|loop()]] оставляем пустым.&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;div&gt;    Правообладатель – Intel Corporation (2015).  Все права защищены.&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;    Правообладатель – Intel Corporation (2015).  Все права защищены.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wikihandbkcom:diff::1.12:old-21044:rev-7673409 --&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/Genuino101CurieIMUTapDetect&amp;diff=21044&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/Genuino101CurieIMUTapDetect&amp;diff=21044&amp;oldid=prev"/>
		<updated>2016-12-13T20:52:37Z</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://www.arduino.cc/en/Tutorial/Genuino101CurieIMUTapDetect Arduino.cc - Arduino/Genuino 101 CurieIMU Tap detection]&amp;lt;/ref&amp;gt;=&lt;br /&gt;
&lt;br /&gt;
Этот пример показывает, как настроить '''IMU'''-устройство на определение двойного нажатия, сделанного по '''оси X, Y или Z'''. В данном случае диапазон значений от акселерометра выставлен на более сильные нажатия, а интервал между ними должен быть не менее четверти секунды.&lt;br /&gt;
&lt;br /&gt;
==Необходимое оборудование==&lt;br /&gt;
&lt;br /&gt;
* Плата '''Arduino/Genuino 101'''&lt;br /&gt;
&lt;br /&gt;
==Цепь==&lt;br /&gt;
&lt;br /&gt;
[[Файл:genuino101fzz.jpg|center]]&lt;br /&gt;
&lt;br /&gt;
Никакого дополнительного оборудования для этого примера не нужно.&lt;br /&gt;
&lt;br /&gt;
==Наиболее важные части скетча==&lt;br /&gt;
&lt;br /&gt;
[[Arduino:Библиотеки/CurieIMU|Библиотека CurieIMU.h]], дающая доступ ко всем параметрам, функциям и значениям '''IMU'''-чипа платы '''Arduino/Genuino 101'''. В этот чип встроены '''3-осевой акселерометр''' и '''3-осевой гироскоп'''. [[Arduino:Библиотеки/CurieIMU|Библиотека Curie IMU]] является частью ядра '''платы 101''' и загружается вместе с ее ключевыми файлами. В этом примере мы настроим плату таким образом, чтобы она смогла определить двойное нажатие, для чего будет использована специальные функции из [[Arduino:Библиотеки/CurieIMU|библиотеки Curie IMU]].&lt;br /&gt;
&lt;br /&gt;
==Код==&lt;br /&gt;
&lt;br /&gt;
Этот скетч включает в себя только блок [[Arduino:Справочник языка Arduino/setup()|setup()]], который содержит весь код, необходимый, чтобы задать событие для определения двойного нажатия. Если двойное нажатие будет определено, запустится прерывание, с помощью которого будет вызвана функция '''eventCallback()''', определяющая и через монитор порта сообщающая, по какой оси и в каком направлении было совершено двойное нажатие. Блок [[Arduino:Справочник языка Arduino/loop()|loop()]] оставляем пустым.&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;
   Правообладатель – Intel Corporation (2015).  Все права защищены.&lt;br /&gt;
&lt;br /&gt;
   Эта библиотека является бесплатной; ее можно распространять &lt;br /&gt;
   и/или модифицировать согласно условиям Стандартной общественной&lt;br /&gt;
   лицензии ограниченного применения GNU (т.к. она выпущена Фондом&lt;br /&gt;
   свободного ПО) – либо версии 2.1 этой лицензии, либо более поздней&lt;br /&gt;
   версии (на ваш выбор). &lt;br /&gt;
&lt;br /&gt;
   Эта библиотека распространяется в надежде на то, что будет &lt;br /&gt;
   полезна кому-либо, но БЕЗО ВСЯКИХ ГАРАНТИЙ – даже без гарантий на &lt;br /&gt;
   коммерческое качество и пригодность применения для конкретных &lt;br /&gt;
   целей. Более подробно читайте в Стандартной общественной лицензии&lt;br /&gt;
   ограниченного применения GNU. &lt;br /&gt;
&lt;br /&gt;
   Вы должны получить копию Стандартной общественной лицензии&lt;br /&gt;
   ограниченного применения вместе с этой библиотекой. Если не&lt;br /&gt;
   получили, напишите в Фонд бесплатного ПО на адрес: Free Software&lt;br /&gt;
   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,    &lt;br /&gt;
   MA  02110-1301  USA &lt;br /&gt;
*/&lt;br /&gt;
&lt;br /&gt;
/*&lt;br /&gt;
   Этот скетч-пример демонстрирует, как можно использовать&lt;br /&gt;
   акселерометр BMI160 на модуле Intel Curie для определения двойного&lt;br /&gt;
   нажатия &lt;br /&gt;
*/&lt;br /&gt;
&lt;br /&gt;
#include &amp;quot;CurieIMU.h&amp;quot;&lt;br /&gt;
&lt;br /&gt;
void setup() {&lt;br /&gt;
  Serial.begin(9600);&lt;br /&gt;
&lt;br /&gt;
  // инициализируем IMU-устройство:&lt;br /&gt;
  CurieIMU.begin();&lt;br /&gt;
  CurieIMU.attachInterrupt(eventCallback);&lt;br /&gt;
&lt;br /&gt;
  // увеличиваем диапазон значений акселерометра, чтобы можно было&lt;br /&gt;
  // определять более сильные нажатия (&amp;lt; 4g):&lt;br /&gt;
  CurieIMU.setAccelerometerRange(4);&lt;br /&gt;
&lt;br /&gt;
  // снижаем порог, чтобы можно было определять более &lt;br /&gt;
  // слабые нажатия (&amp;gt;= 750mg):&lt;br /&gt;
  CurieIMU.setDetectionThreshold(CURIE_IMU_TAP, 750); // (750mg)&lt;br /&gt;
&lt;br /&gt;
  // включаем определение двойного нажатия:&lt;br /&gt;
  CurieIMU.interrupts(CURIE_IMU_TAP);&lt;br /&gt;
&lt;br /&gt;
  Serial.println(&amp;quot;IMU initialization complete, waiting for events...&amp;quot;);  //  &amp;quot;Инициализация IMU-устройства завершена, ждем наступления событий...&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
void loop() {&lt;br /&gt;
  // в блоке loop() ничего не пишем, потому что все нужные действия&lt;br /&gt;
  // происходят в функции внешнего вызова, т.е. в eventCallback()&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
static void eventCallback()&lt;br /&gt;
{&lt;br /&gt;
  if (CurieIMU.getInterruptStatus(CURIE_IMU_TAP)) {&lt;br /&gt;
    if (CurieIMU.tapDetected(X_AXIS, NEGATIVE))&lt;br /&gt;
      Serial.println(&amp;quot;Tap detected on negative X-axis&amp;quot;);  //  &amp;quot;Определено двойное нажатие по оси X в направлении от бесконечности к 0&amp;quot;&lt;br /&gt;
    if (CurieIMU.tapDetected(X_AXIS, POSITIVE))&lt;br /&gt;
      Serial.println(&amp;quot;Tap detected on positive X-axis&amp;quot;);  //  &amp;quot;Определено двойное нажатие по оси X в направлении от 0 к бесконечности&amp;quot;&lt;br /&gt;
    if (CurieIMU.tapDetected(Y_AXIS, NEGATIVE))&lt;br /&gt;
      Serial.println(&amp;quot;Tap detected on negative Y-axis&amp;quot;);  //  &amp;quot;Определено двойное нажатие по оси Y в направлении от бесконечности к 0&amp;quot;&lt;br /&gt;
    if (CurieIMU.tapDetected(Y_AXIS, POSITIVE))&lt;br /&gt;
      Serial.println(&amp;quot;Tap detected on positive Y-axis&amp;quot;);  //  &amp;quot;Определено двойное нажатие по оси Y в направлении от 0 к бесконечности&amp;quot;&lt;br /&gt;
    if (CurieIMU.tapDetected(Z_AXIS, NEGATIVE))&lt;br /&gt;
      Serial.println(&amp;quot;Tap detected on negative Z-axis&amp;quot;);  //  &amp;quot;Определено двойное нажатие по оси Z в направлении от бесконечности к 0&amp;quot;&lt;br /&gt;
    if (CurieIMU.tapDetected(Z_AXIS, POSITIVE))&lt;br /&gt;
      Serial.println(&amp;quot;Tap detected on positive Z-axis&amp;quot;);  //  &amp;quot;Определено двойное нажатие по оси Z в направлении от 0 к бесконечности&amp;quot;&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= См.также=&lt;br /&gt;
&lt;br /&gt;
# Curie IMU Orientation Visualizer&lt;br /&gt;
# Curie IMU Accelerometer&lt;br /&gt;
# Curie IMU Accelerometer Orientation&lt;br /&gt;
# Curie IMU Gyro&lt;br /&gt;
# Curie IMU Raw Imu Data Serial&lt;br /&gt;
# Curie IMU Shock Detect&lt;br /&gt;
# Curie IMU Step Count&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>