{"id":129611,"date":"2022-11-12T15:38:34","date_gmt":"2022-11-12T09:38:34","guid":{"rendered":"http:\/\/rcl-radio.ru\/?p=129611"},"modified":"2022-11-20T10:01:28","modified_gmt":"2022-11-20T04:01:28","slug":"%d0%bc%d0%be%d0%b4%d1%83%d0%bb%d1%8c-bt201-stm32-arduino","status":"publish","type":"post","link":"http:\/\/rcl-radio.ru\/?p=129611","title":{"rendered":"\u041c\u043e\u0434\u0443\u043b\u044c BT201 + STM32 (Arduino)"},"content":{"rendered":"<div>\u041c\u043e\u0434\u0443\u043b\u044c BT201 5.0 Bluetooth \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u043e\u0431\u043e\u0439 \u0435\u0434\u0438\u043d\u044b\u0439 \u0447\u0438\u043f 4-\u0432-1, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 Bluetooth, USB-\u0444\u043b\u0435\u0448\u043a\u0443 \u0438 TF-\u043a\u0430\u0440\u0442\u0443.<\/div>\n<div><\/div>\n<div><a href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/11\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2022-11-12-14-52-10.png\" class=\"highslide-image\" onclick=\"return hs.expand(this);\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-129612\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/11\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2022-11-12-14-52-10.png\" alt=\"\" width=\"377\" height=\"269\" srcset=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/11\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2022-11-12-14-52-10.png 377w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/11\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2022-11-12-14-52-10-200x143.png 200w\" sizes=\"auto, (max-width: 377px) 100vw, 377px\" \/><\/a><\/div>\n<div><\/div>\n<div><strong>\u0424\u0443\u043d\u043a\u0446\u0438\u0438:<\/strong><\/div>\n<ul>\n<li>\u041f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 Bluetooth-\u0430\u0443\u0434\u0438\u043e, \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0430 \u0434\u0430\u043d\u043d\u044b\u0445 BLE, \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435 U-\u0434\u0438\u0441\u043a\u0430, \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435 TF-\u043a\u0430\u0440\u0442\u044b, SPIFLASH. \u041f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 \u0434\u0435\u043a\u043e\u0434\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0444\u043e\u0440\u043c\u0430\u0442\u043e\u0432 MP3, WAV, WMA, FLAC, AAC, APE.<\/li>\n<li>16-\u0431\u0438\u0442\u043d\u044b\u0439 \u0441\u0442\u0435\u0440\u0435\u043e \u0426\u0410\u041f \u0441 \u0443\u0441\u0438\u043b\u0438\u0442\u0435\u043b\u0435\u043c \u0434\u043b\u044f \u043d\u0430\u0443\u0448\u043d\u0438\u043a\u043e\u0432, \u043e\u0442\u043d\u043e\u0448\u0435\u043d\u0438\u0435 \u0441\u0438\u0433\u043d\u0430\u043b\/\u0448\u0443\u043c &gt;= 95 \u0434\u0411<\/li>\n<li>\u041f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043f\u043e\u0440\u0442 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 AT. \u041f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 \u0434\u043b\u044f \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0438\u043c\u0435\u043d\u0438 Bluetooth, \u0443\u043a\u0430\u0437\u0430\u043d\u0438\u044f \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u043e\u0433\u043e \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430.<\/li>\n<li>\u041f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 \u0434\u0432\u0443\u0445\u0440\u0435\u0436\u0438\u043c\u043d\u043e\u0439 \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 BLE \u0438 SPP, \u0432 \u0442\u043e \u0436\u0435 \u0432\u0440\u0435\u043c\u044f \u043c\u043e\u0436\u0435\u0442 \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u044c \u0437\u0432\u0443\u043a Bluetooth, \u0431\u0435\u0437 \u043a\u043e\u043d\u0444\u043b\u0438\u043a\u0442\u043e\u0432.<\/li>\n<li>\u041f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 \u0432\u044b\u0437\u043e\u0432\u0430 Bluetooth, \u043c\u043d\u043e\u0433\u043e\u043a\u043d\u043e\u043f\u043e\u0447\u043d\u043e\u0433\u043e \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f, \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0439 \u043c\u0443\u0437\u044b\u043a\u0438, \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u043c\u0443\u0437\u044b\u043a\u0438, \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u043f\u0430\u0443\u0437\u044b, \u0440\u0435\u0433\u0443\u043b\u0438\u0440\u043e\u0432\u043a\u0438 \u0433\u0440\u043e\u043c\u043a\u043e\u0441\u0442\u0438 \u0438 \u0434\u0440\u0443\u0433\u0438\u0445 \u043f\u0440\u043e\u0441\u0442\u044b\u0445 \u0444\u0443\u043d\u043a\u0446\u0438\u0439.<\/li>\n<li>\u041f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u043f\u043e\u043b\u043d\u043e\u0433\u043e \u0438\u043c\u0435\u043d\u0438 \u0444\u0430\u0439\u043b\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u043e\u0440\u0442\u0430 \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u044f, \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0433\u043e \u043f\u0443\u0442\u0438 \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u044f, \u0446\u0438\u043a\u043b\u0430 \u0438\u043b\u0438 \u043e\u0434\u0438\u043d\u043e\u0447\u043d\u043e\u0433\u043e \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u044f.<\/li>\n<li>\u041f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0437\u0430\u043f\u0438\u0441\u0438 128KBS. \u0417\u0430\u043f\u0438\u0441\u044c \u043d\u0430 TF-\u043a\u0430\u0440\u0442\u0443 \u0438\u043b\u0438 U-\u0434\u0438\u0441\u043a, \u0437\u0430\u043f\u0438\u0441\u044c, \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u0435, \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0438 \u0442. \u0434.<\/li>\n<\/ul>\n<div id=\"marketWidget\"><\/div>\n<div>\u041f\u0440\u0438 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 \u043c\u043e\u0434\u0443\u043b\u044f BT201 \u0431\u044b\u043b \u0432\u044b\u0431\u0440\u0430\u043d \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440 STM32 (\u043f\u043b\u0430\u0442\u0430 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430 STM32F103C8T6), \u0442\u0430\u043a \u043e\u043d \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e UART \u043f\u043e\u0440\u0442\u043e\u0432, \u043e\u0434\u0438\u043d \u0431\u0443\u0434\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d \u0434\u043b\u044f \u0432\u044b\u0432\u043e\u0434\u0430 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u0432 \u043c\u043e\u043d\u0438\u0442\u043e\u0440 \u043f\u043e\u0440\u0442\u0430, \u0434\u0440\u0443\u0433\u043e\u0439 (Serial3) \u0434\u043b\u044f \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 \u0410\u0422 \u043a\u043e\u043c\u0430\u043d\u0434 \u0432 \u043c\u043e\u0434\u0443\u043b\u044c BT201.<\/div>\n<div><a href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/11\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2022-11-12-15-00-32.png\" class=\"highslide-image\" onclick=\"return hs.expand(this);\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-129613\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/11\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2022-11-12-15-00-32.png\" alt=\"\" width=\"783\" height=\"498\" srcset=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/11\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2022-11-12-15-00-32.png 783w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/11\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2022-11-12-15-00-32-500x318.png 500w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/11\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2022-11-12-15-00-32-200x127.png 200w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/11\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2022-11-12-15-00-32-768x488.png 768w\" sizes=\"auto, (max-width: 783px) 100vw, 783px\" \/><\/a><\/div>\n<div>\u041a\u0430\u043a \u043f\u0440\u043e\u0448\u0438\u0432\u0430\u0442\u044c STM32 \u0432 \u0441\u0440\u0435\u0434\u0435 Arduino IDE \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043e \u0432 &#8212; <strong><a href=\"http:\/\/rcl-radio.ru\/?p=68376\">http:\/\/rcl-radio.ru\/?p=68376<\/a><\/strong><\/div>\n<div><\/div>\n<div>\u0422\u0430\u043a \u043a\u0430\u043a STM32 \u043f\u0440\u043e\u0448\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u043d\u0438\u043a USB to COM (RS232) YP-01 \u043d\u0430 \u0447\u0438\u043f\u0435 PL2303HX, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0438\u043c\u0435\u044e\u0442\u0441\u044f 2 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0430 \u043d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u044f, \u0442\u043e \u043d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u0435 3,3 \u0412 \u0431\u0443\u0434\u0443\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u044b \u0434\u043b\u044f \u043f\u0438\u0442\u0430\u043d\u0438\u044f STM32, \u0430 \u043d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u0435 5 \u0412 \u0434\u043b\u044f \u043f\u0438\u0442\u0430\u043d\u0438\u044f \u043c\u043e\u0434\u0443\u043b\u044f BT201.<\/div>\n<div><\/div>\n<div><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/12\/%D0%A1%D0%BD%D0%B8%D0%BC%D0%BE%D0%BA-%D1%8D%D0%BA%D1%80%D0%B0%D0%BD%D0%B0-%D0%BE%D1%82-2019-12-14-143532.png\" width=\"432\" height=\"158\" \/><\/div>\n<div style=\"text-align: center;\"><strong>\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f STM32 \u043a USB to COM \u0438 BT201<\/strong><\/div>\n<div>\n<table style=\"border-collapse: collapse; width: 100%;\" border=\"1\">\n<tbody>\n<tr style=\"height: 21px;\">\n<td style=\"width: 33.6486%; text-align: center; height: 21px;\"><strong>USB to COM<\/strong><\/td>\n<td style=\"width: 36.8919%; text-align: center; height: 21px;\"><strong>STM32<\/strong><\/td>\n<td style=\"width: 29.4595%; text-align: center; height: 21px;\"><strong>BT201<\/strong><\/td>\n<\/tr>\n<tr style=\"height: 21px;\">\n<td style=\"width: 33.6486%; text-align: center; height: 21px; background-color: #676e7a;\"><span style=\"color: #ffffff;\">3.3 V<\/span><\/td>\n<td style=\"width: 36.8919%; text-align: center; height: 21px; background-color: #676e7a;\"><span style=\"color: #ffffff;\">3.3<\/span><\/td>\n<td style=\"width: 29.4595%; text-align: center; height: 21px;\">&#8212;<\/td>\n<\/tr>\n<tr style=\"height: 21px;\">\n<td style=\"width: 33.6486%; height: 21px; background-color: #ccadad; text-align: center;\">5 V<\/td>\n<td style=\"width: 36.8919%; text-align: center; height: 21px;\">&#8212;<\/td>\n<td style=\"width: 29.4595%; height: 21px; background-color: #ccadad; text-align: center;\">VCC<\/td>\n<\/tr>\n<tr style=\"height: 21px;\">\n<td style=\"width: 33.6486%; text-align: center; height: 21px; background-color: #d6dbbd;\">TX<\/td>\n<td style=\"width: 36.8919%; text-align: center; height: 21px; background-color: #d6dbbd;\">PA10 (RX1)<\/td>\n<td style=\"width: 29.4595%; text-align: center; height: 21px;\">&#8212;<\/td>\n<\/tr>\n<tr style=\"height: 21px;\">\n<td style=\"width: 33.6486%; text-align: center; height: 21px; background-color: #d6dbbd;\">RX<\/td>\n<td style=\"width: 36.8919%; text-align: center; height: 21px; background-color: #d6dbbd;\">PA9 (TX1)<\/td>\n<td style=\"width: 29.4595%; text-align: center; height: 21px;\">&#8212;<\/td>\n<\/tr>\n<tr style=\"height: 21px;\">\n<td style=\"width: 33.6486%; text-align: center; background-color: #d5e1e6; height: 21px;\">GND<\/td>\n<td style=\"width: 36.8919%; text-align: center; background-color: #d5e1e6; height: 21px;\">G<\/td>\n<td style=\"width: 29.4595%; text-align: center; background-color: #d5e1e6; height: 21px;\">GND<\/td>\n<\/tr>\n<tr style=\"height: 21px;\">\n<td style=\"width: 33.6486%; text-align: center; height: 21px;\">&#8212;<\/td>\n<td style=\"width: 36.8919%; text-align: center; background-color: #d6d0d0; height: 21px;\">PB10 (TX3)<\/td>\n<td style=\"width: 29.4595%; text-align: center; background-color: #d6d0d0; height: 21px;\">RX<\/td>\n<\/tr>\n<tr style=\"height: 21px;\">\n<td style=\"width: 33.6486%; text-align: center; height: 21px;\">&#8212;<\/td>\n<td style=\"width: 36.8919%; text-align: center; background-color: #d6d0d0; height: 21px;\">PB9 (RX3)<\/td>\n<td style=\"width: 29.4595%; text-align: center; background-color: #d6d0d0; height: 21px;\">TX<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<div><strong>\u0422\u0435\u0441\u0442\u043e\u0432\u044b\u0439 \u0441\u043a\u0435\u0442\u0447<\/strong><\/div>\n<pre class=\"actionscript\" style=\"font-family: monospace; font-size: 10px;\"><span style=\"color: #0066cc;\">void<\/span> setup<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>\r\nSerial.<span style=\"color: #006600;\">begin<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">115200<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\nSerial3.<span style=\"color: #006600;\">begin<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">115200<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\nSerial.<span style=\"color: #006600;\">println<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\ndelay<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">500<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n<span style=\"color: #66cc66;\">}<\/span>\r\n\u00a0\r\n<span style=\"color: #0066cc;\">void<\/span> loop<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>\r\n<span style=\"color: #b1b100;\">if<\/span> <span style=\"color: #66cc66;\">(<\/span>Serial.<span style=\"color: #006600;\">available<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span> <span style=\"color: #66cc66;\">&gt;<\/span> <span style=\"color: #cc66cc;\">0<\/span><span style=\"color: #66cc66;\">)<\/span> <span style=\"color: #66cc66;\">{<\/span>\r\n<span style=\"color: #0066cc;\">String<\/span> str = Serial.<span style=\"color: #006600;\">readString<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\nSerial.<span style=\"color: #006600;\">println<\/span><span style=\"color: #66cc66;\">(<\/span>str<span style=\"color: #66cc66;\">)<\/span>;\r\nSerial3.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span>str+<span style=\"color: #ff0000;\">\"<span style=\"color: #000099; font-weight: bold;\">\\r<\/span><span style=\"color: #000099; font-weight: bold;\">\\n<\/span>\"<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n<span style=\"color: #66cc66;\">}<\/span>\r\n\u00a0\r\n<span style=\"color: #b1b100;\">if<\/span> <span style=\"color: #66cc66;\">(<\/span>Serial3.<span style=\"color: #006600;\">available<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span> <span style=\"color: #66cc66;\">&gt;<\/span> <span style=\"color: #cc66cc;\">0<\/span><span style=\"color: #66cc66;\">)<\/span> <span style=\"color: #66cc66;\">{<\/span>\r\n<span style=\"color: #0066cc;\">String<\/span> str = Serial3.<span style=\"color: #006600;\">readString<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\nSerial.<span style=\"color: #006600;\">println<\/span><span style=\"color: #66cc66;\">(<\/span>str<span style=\"color: #66cc66;\">)<\/span>;\r\n<span style=\"color: #66cc66;\">}<\/span>\r\n<span style=\"color: #66cc66;\">}<\/span><\/pre>\n<p>\u041a\u043e\u043c\u0430\u043d\u0434\u044b \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043e\u0442\u0441\u044b\u043b\u0430\u0435\u0442\u0435 \u0447\u0435\u0440\u0435\u0437 \u043c\u043e\u043d\u0438\u0442\u043e\u0440 \u043f\u043e\u0440\u0442\u0430, \u0438 \u043e\u043d\u0438 \u043f\u0435\u0440\u0435\u0441\u044b\u043b\u0430\u044e\u0442\u0441\u044f \u043d\u0430 \u043c\u043e\u0434\u0443\u043b\u044c BT201.<br \/>\n\u0412\u0441\u0435, \u0447\u0442\u043e \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442 \u0441 \u043c\u043e\u0434\u0443\u043b\u044f (\u043e\u0442\u0432\u0435\u0442\u044b, \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u0438 \u0442.\u0434.), \u043f\u0438\u0448\u0435\u0442\u0441\u044f \u0432 \u043c\u043e\u043d\u0438\u0442\u043e\u0440 \u043f\u043e\u0440\u0442\u0430.<\/p>\n<p><a href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/11\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2022-11-12-15-27-47.png\" class=\"highslide-image\" onclick=\"return hs.expand(this);\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-129614\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/11\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2022-11-12-15-27-47.png\" alt=\"\" width=\"309\" height=\"373\" srcset=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/11\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2022-11-12-15-27-47.png 309w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/11\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2022-11-12-15-27-47-200x241.png 200w\" sizes=\"auto, (max-width: 309px) 100vw, 309px\" \/><\/a><\/p>\n<p>\u0421\u043f\u0438\u0441\u043e\u043a \u0410\u0422 \u043a\u043e\u043c\u0430\u043d\u0434 &#8212;<strong><a href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/11\/BT201 Module _KT1025A_B_User Manual _V2.3.pdf\">BT201 Module _KT1025A_B_User Manual _V2.3.pdf<\/a><\/strong><\/p>\n<p>\u0421\u043f\u0438\u0441\u043e\u043a \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0445 \u0410\u0422 \u043a\u043e\u043c\u0430\u043d\u0434:<\/p>\n<ul>\n<li>AT+CB\u00a0 &#8212; \u0441\u0442\u043e\u043f\\\u043f\u0430\u0443\u0437\u044b<\/li>\n<li>AT+CC &#8212; \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0442\u0440\u0435\u043a<\/li>\n<li>AT+CD &#8212; \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0439 \u0442\u0440\u0435\u043a<\/li>\n<li>AT+CE &#8212; \u0433\u0440\u043e\u043c\u043a\u043e\u0441\u0442\u044c +++<\/li>\n<li>AT+CF &#8212; \u0433\u0440\u043e\u043c\u043a\u043e\u0441\u0442\u044c &#8212;<\/li>\n<li>AT+CA15 &#8212; \u0433\u0440\u043e\u043c\u043a\u043e\u0441\u0442\u044c \u0443\u0440\u043e\u0432\u0435\u043d\u044c 15 (0-30)<\/li>\n<li>AT+CM01 &#8212; Bluetooth<\/li>\n<li>AT+CM02 &#8212; USB<\/li>\n<\/ul>\n<hr \/>\n<p>\u041d\u0438\u0436\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u043d \u043f\u0440\u0438\u043c\u0435\u0440 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043c\u043e\u0434\u0443\u043b\u0435\u043c BT201 \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 STM32 \u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u043a\u043d\u043e\u043f\u043e\u043a, \u0440\u0435\u0436\u0438\u043c\u044b \u0440\u0430\u0431\u043e\u0442\u044b \u0438 \u0434\u0440\u0443\u0433\u0430\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u0442\u0441\u044f \u043d\u0430 \u0434\u0438\u0441\u043f\u043b\u0435\u0435 0.96\u2032 I2C 128X64 OLED.<\/p>\n<p>\u0414\u0438\u0441\u043f\u043b\u0435\u0439 0.96\u2032 I2C 128X64 OLED \u043d\u0430 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0435 SSD1306 \u0438\u043c\u0435\u0435\u0442 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435 128\u044564 \u043f\u0438\u043a\u0441\u0435\u043b \u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u043a \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0443 \u043f\u043e \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0443 I2C.<\/p>\n<table border=\"1\">\n<tbody>\n<tr>\n<td><a class=\"highslide-image\" href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/01\/%D0%A1%D0%BD%D0%B8%D0%BC%D0%BE%D0%BA-%D1%8D%D0%BA%D1%80%D0%B0%D0%BD%D0%B0-%D0%BE%D1%82-2022-01-27-210731.png\" class=\"highslide-image\" onclick=\"return hs.expand(this);\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-112671\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/01\/%D0%A1%D0%BD%D0%B8%D0%BC%D0%BE%D0%BA-%D1%8D%D0%BA%D1%80%D0%B0%D0%BD%D0%B0-%D0%BE%D1%82-2022-01-27-210731.png\" sizes=\"auto, (max-width: 283px) 100vw, 283px\" srcset=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/01\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2022-01-27-210731.png 283w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/01\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2022-01-27-210731-200x208.png 200w\" alt=\"\" width=\"283\" height=\"295\" \/><\/a><\/td>\n<td><a class=\"highslide-image\" href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/01\/%D0%A1%D0%BD%D0%B8%D0%BC%D0%BE%D0%BA-%D1%8D%D0%BA%D1%80%D0%B0%D0%BD%D0%B0-%D0%BE%D1%82-2022-01-27-210631.png\" class=\"highslide-image\" onclick=\"return hs.expand(this);\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-112672\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/01\/%D0%A1%D0%BD%D0%B8%D0%BC%D0%BE%D0%BA-%D1%8D%D0%BA%D1%80%D0%B0%D0%BD%D0%B0-%D0%BE%D1%82-2022-01-27-210631.png\" sizes=\"auto, (max-width: 290px) 100vw, 290px\" srcset=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/01\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2022-01-27-210631.png 290w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/01\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2022-01-27-210631-200x197.png 200w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/01\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2022-01-27-210631-45x45.png 45w\" alt=\"\" width=\"290\" height=\"285\" \/><\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0434\u0438\u0441\u043f\u043b\u0435\u044f SSD1306:<\/p>\n<ul>\n<li>\u0422\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u044f \u0434\u0438\u0441\u043f\u043b\u0435\u044f: OLED<\/li>\n<li>\u0420\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0434\u0438\u0441\u043f\u043b\u0435\u044f: 128 \u043d\u0430 64 \u0442\u043e\u0447\u043a\u0438<\/li>\n<li>\u0414\u0438\u0430\u0433\u043e\u043d\u0430\u043b\u044c \u0434\u0438\u0441\u043f\u043b\u0435\u044f: 0,96 \u0434\u044e\u0439\u043c\u0430<\/li>\n<li>\u0423\u0433\u043e\u043b \u043e\u0431\u0437\u043e\u0440\u0430: 160\u00b0<\/li>\n<li>\u041d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u0435 \u043f\u0438\u0442\u0430\u043d\u0438\u044f: 2.8 \u0412 ~ 5.5 \u0412<\/li>\n<li>\u041c\u043e\u0449\u043d\u043e\u0441\u0442\u044c: 0,08 \u0412\u0442<\/li>\n<li>\u0413\u0430\u0431\u0430\u0440\u0438\u0442\u044b: 27.3 \u043c\u043c \u0445 27.8 \u043c\u043c \u0445 3.7 \u043c\u043c<\/li>\n<\/ul>\n<table style=\"border-collapse: collapse; width: 100%;\" border=\"1\">\n<tbody>\n<tr>\n<td style=\"width: 50%;\"><a href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/11\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2022-11-12-15-49-19.png\" class=\"highslide-image\" onclick=\"return hs.expand(this);\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-129620\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/11\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2022-11-12-15-49-19.png\" alt=\"\" width=\"169\" height=\"102\" \/><\/a><\/td>\n<td style=\"width: 50%;\"><a href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/11\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2022-11-12-15-49-14.png\" class=\"highslide-image\" onclick=\"return hs.expand(this);\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-129621\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/11\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2022-11-12-15-49-14.png\" alt=\"\" width=\"164\" height=\"102\" \/><\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u041a\u043d\u043e\u043f\u043a\u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f:<\/p>\n<ul>\n<li>PLAY \/ STOP &#8212; \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \\ \u043f\u0430\u0443\u0437\u0430 \u0432 \u0440\u0435\u0436\u0438\u043c\u0435 Bluetooth \u0438 USB<\/li>\n<li>&gt;&gt;&gt; &#8212; \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0442\u0440\u0435\u043a (\u0444\u0430\u0439\u043b, \u0440\u043e\u043b\u0438\u043a)\u00a0\u0432 \u0440\u0435\u0436\u0438\u043c\u0435 Bluetooth \u0438 USB<\/li>\n<li>&lt;&lt;&lt; &#8212; \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0439 \u0442\u0440\u0435\u043a (\u0444\u0430\u0439\u043b, \u0440\u043e\u043b\u0438\u043a) \u0432 \u0440\u0435\u0436\u0438\u043c\u0435 Bluetooth \u0438 USB<\/li>\n<li>Bluetooth \\ USB &#8212; \u043a\u043d\u043e\u043f\u043a\u0430 \u0432\u044b\u0431\u043e\u0440\u0430 Bluetooth \u0438\u043b\u0438 USB<\/li>\n<li>VOLUME UP &#8212; \u0433\u0440\u043e\u043c\u043a\u043e\u0441\u0442\u044c \u043f\u0440\u0438\u0431\u0430\u0432\u0438\u0442\u044c \u043d\u0430 1 \u0435\u0434.<\/li>\n<li>VOLUME WD &#8212; \u0433\u0440\u043e\u043c\u043a\u043e\u0441\u0442\u044c \u0443\u0434\u0430\u0432\u0438\u0442\u044c \u043d\u0430 1 \u0435\u0434.<\/li>\n<\/ul>\n<p style=\"text-align: center;\"><strong>\u041c\u0435\u043d\u044e Bluetooth<\/strong><\/p>\n<p><a href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/11\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2022-11-12-15-49-19-1.png\" class=\"highslide-image\" onclick=\"return hs.expand(this);\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-129622\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/11\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2022-11-12-15-49-19-1.png\" alt=\"\" width=\"169\" height=\"102\" \/><\/a><\/p>\n<ol>\n<li><strong>Bluetooth<\/strong><\/li>\n<li>\u0420\u0435\u0436\u0438\u043c \u0440\u0430\u0431\u043e\u0442\u044b:\n<ol>\n<li>not connected &#8212; \u043d\u0435\u0442 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f<\/li>\n<li>connected &#8212; \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043e<\/li>\n<li>play &#8212; \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0438\u0434\u0435\u043d\u0438\u0435<\/li>\n<\/ol>\n<\/li>\n<li>\u0423\u0440\u043e\u0432\u0435\u043d\u044c \u0433\u0440\u043e\u043c\u043a\u043e\u0441\u0442\u0438<\/li>\n<\/ol>\n<p style=\"text-align: center;\"><strong>\u041c\u0435\u043d\u044e USB<\/strong><\/p>\n<p><a href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/11\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2022-11-12-15-49-14-1.png\" class=\"highslide-image\" onclick=\"return hs.expand(this);\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-129623\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/11\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2022-11-12-15-49-14-1.png\" alt=\"\" width=\"164\" height=\"102\" \/><\/a><\/p>\n<ol>\n<li><strong>USB<\/strong><\/li>\n<li>\u041d\u043e\u043c\u0435\u0440 \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u043c\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430 (\u043a\u043e\u043b-\u0432\u043e \u0444\u0430\u0439\u043b\u043e\u0432 \u043d\u0430 \u043d\u043e\u0441\u0438\u0442\u0435\u043b\u0435*)<\/li>\n<li>\u0412\u0440\u0435\u043c\u044f \u0437\u0432\u0443\u0447\u0430\u043d\u0438\u044f \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u043c\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430<\/li>\n<li>\u0442\u0435\u043a\u0443\u0449\u0435\u0435 \u0432\u0440\u0435\u043c\u044f \u043f\u0440\u043e\u0438\u0433\u0440\u044b\u0432\u0430\u043d\u0438\u044f \u0444\u0430\u0439\u043b\u0430<\/li>\n<li>\u0423\u0440\u043e\u0432\u0435\u043d\u044c \u0433\u0440\u043e\u043c\u043a\u043e\u0441\u0442\u0438<\/li>\n<\/ol>\n<p>*\u0417\u0432\u0443\u043a\u043e\u0432\u044b\u0435 \u0444\u0430\u0439\u043b\u044b \u043d\u0430 USB \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0435 \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c \u0437\u0430\u043f\u0438\u0441\u0430\u043d\u044b \u0439 \u0432 \u043a\u043e\u0440\u0435\u043d\u044c \u0444\u0430\u0439\u043b\u043e\u0432\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b.<\/p>\n<p style=\"text-align: center;\"><strong>\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f STM32, \u043a\u043d\u043e\u043f\u043e\u043a \u0438 \u0434\u0438\u0441\u043f\u043b\u0435\u044f<\/strong><\/p>\n<table style=\"border-collapse: collapse; width: 100%;\" border=\"1\">\n<tbody>\n<tr style=\"height: 21px;\">\n<td style=\"width: 33.3333%; text-align: center; height: 21px;\"><strong>STM32<\/strong><\/td>\n<td style=\"width: 33.3333%; text-align: center; height: 21px;\"><strong>\u041a\u043d\u043e\u043f\u043a\u0430**<\/strong><\/td>\n<td style=\"width: 33.3333%; text-align: center; height: 21px;\"><strong>0.96\u2032 I2C 128X64 OLED<\/strong><\/td>\n<\/tr>\n<tr style=\"height: 21px;\">\n<td style=\"width: 33.3333%; text-align: center; height: 21px; background-color: #f2e9f0;\">PB12<\/td>\n<td style=\"width: 33.3333%; text-align: center; height: 21px; background-color: #f2e9f0;\">Bluetooth \\ USB<\/td>\n<td style=\"width: 33.3333%; text-align: center; height: 21px;\">&#8212;<\/td>\n<\/tr>\n<tr style=\"height: 21px;\">\n<td style=\"width: 33.3333%; text-align: center; height: 21px; background-color: #f2e9f0;\">PB14<\/td>\n<td style=\"width: 33.3333%; text-align: center; height: 21px; background-color: #f2e9f0;\">&gt;&gt;&gt;<\/td>\n<td style=\"width: 33.3333%; text-align: center; height: 21px;\">&#8212;<\/td>\n<\/tr>\n<tr style=\"height: 21px;\">\n<td style=\"width: 33.3333%; text-align: center; height: 21px; background-color: #f2e9f0;\">PB15<\/td>\n<td style=\"width: 33.3333%; text-align: center; height: 21px; background-color: #f2e9f0;\">&lt;&lt;&lt;<\/td>\n<td style=\"width: 33.3333%; text-align: center; height: 21px;\">&#8212;<\/td>\n<\/tr>\n<tr style=\"height: 21px;\">\n<td style=\"width: 33.3333%; text-align: center; height: 21px; background-color: #f2e9f0;\">PA12<\/td>\n<td style=\"width: 33.3333%; text-align: center; height: 21px; background-color: #f2e9f0;\">PLAY \/ STOP<\/td>\n<td style=\"width: 33.3333%; text-align: center; height: 21px;\">&#8212;<\/td>\n<\/tr>\n<tr style=\"height: 21px;\">\n<td style=\"width: 33.3333%; text-align: center; height: 21px; background-color: #f2e9f0;\">PA15<\/td>\n<td style=\"width: 33.3333%; text-align: center; height: 21px; background-color: #f2e9f0;\">VOLUME UP<\/td>\n<td style=\"width: 33.3333%; text-align: center; height: 21px;\">&#8212;<\/td>\n<\/tr>\n<tr style=\"height: 21px;\">\n<td style=\"width: 33.3333%; text-align: center; height: 21px; background-color: #f2e9f0;\">PA11<\/td>\n<td style=\"width: 33.3333%; text-align: center; height: 21px; background-color: #f2e9f0;\">VOLUME DW<\/td>\n<td style=\"width: 33.3333%; text-align: center; height: 21px;\">&#8212;<\/td>\n<\/tr>\n<tr style=\"height: 21px;\">\n<td style=\"width: 33.3333%; text-align: center; height: 21px; background-color: #c8dece;\">PB7<\/td>\n<td style=\"width: 33.3333%; text-align: center; height: 21px;\">&#8212;<\/td>\n<td style=\"width: 33.3333%; text-align: center; height: 21px; background-color: #c8dece;\">SDA<\/td>\n<\/tr>\n<tr style=\"height: 21px;\">\n<td style=\"width: 33.3333%; text-align: center; height: 21px; background-color: #c8dece;\">PB6<\/td>\n<td style=\"width: 33.3333%; text-align: center; height: 21px;\">&#8212;<\/td>\n<td style=\"width: 33.3333%; text-align: center; height: 21px; background-color: #c8dece;\">SCL<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>** \u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043a\u043d\u043e\u043f\u043e\u043a<\/p>\n<p><a href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/11\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2022-11-12-16-12-38.png\" class=\"highslide-image\" onclick=\"return hs.expand(this);\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-129624\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/11\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2022-11-12-16-12-38.png\" alt=\"\" width=\"282\" height=\"90\" srcset=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/11\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2022-11-12-16-12-38.png 282w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/11\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2022-11-12-16-12-38-200x64.png 200w\" sizes=\"auto, (max-width: 282px) 100vw, 282px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<div style=\"text-align: center;\"><strong>\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f STM32 \u043a\u00a0 BT201<\/strong><\/div>\n<div>\n<table style=\"border-collapse: collapse; width: 100%;\" border=\"1\">\n<tbody>\n<tr style=\"height: 21px;\">\n<td style=\"width: 36.8919%; text-align: center; height: 21px;\"><strong>STM32<\/strong><\/td>\n<td style=\"width: 29.4595%; text-align: center; height: 21px;\"><strong>BT201<\/strong><\/td>\n<\/tr>\n<tr style=\"height: 21px;\">\n<td style=\"width: 36.8919%; text-align: center; height: 21px; background-color: #bd8080;\"><strong><span style=\"color: #ffffff;\">5V<\/span><\/strong><\/td>\n<td style=\"width: 29.4595%; height: 21px; text-align: center; background-color: #bd8080;\"><strong><span style=\"color: #ffffff;\">VCC<\/span><\/strong><\/td>\n<\/tr>\n<tr style=\"height: 21px;\">\n<td style=\"width: 36.8919%; text-align: center; background-color: #d5e1e6; height: 21px;\">G<\/td>\n<td style=\"width: 29.4595%; text-align: center; background-color: #d5e1e6; height: 21px;\">GND<\/td>\n<\/tr>\n<tr style=\"height: 21px;\">\n<td style=\"width: 36.8919%; text-align: center; background-color: #d6d0d0; height: 21px;\">PB10 (TX3)<\/td>\n<td style=\"width: 29.4595%; text-align: center; background-color: #d6d0d0; height: 21px;\">RX<\/td>\n<\/tr>\n<tr style=\"height: 21px;\">\n<td style=\"width: 36.8919%; text-align: center; background-color: #d6d0d0; height: 21px;\">PB9 (RX3)<\/td>\n<td style=\"width: 29.4595%; text-align: center; background-color: #d6d0d0; height: 21px;\">TX<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<pre class=\"actionscript\" style=\"font-family: monospace; font-size: 10px;\"><span style=\"color: #808080; font-style: italic;\">#include &lt;Arduino.h&gt;<\/span>\r\n<span style=\"color: #808080; font-style: italic;\">#include &lt;U8x8lib.h&gt;<\/span>\r\n\u00a0\r\nU8X8_SSD1306_128X64_NONAME_HW_I2C u8x8<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #808080; font-style: italic;\">\/* reset=*\/<\/span> U8X8_PIN_NONE<span style=\"color: #66cc66;\">)<\/span>;           \r\n<span style=\"color: #808080; font-style: italic;\">\/\/U8X8_SSD1306_128X64_NONAME_SW_I2C u8x8(\/* clock=*\/ SCL, \/* data=*\/ SDA, \/* reset=*\/ U8X8_PIN_NONE);  <\/span>\r\n\u00a0\r\n<span style=\"color: #0066cc;\">String<\/span> str;\r\n\u00a0\r\n<span style=\"color: #0066cc;\">int<\/span> a,usb,trek,trek_time,trek_all,trek_off,blu_sos,vol;\r\nunsigned long times,times0;\r\nbool pp,w=<span style=\"color: #cc66cc;\">1<\/span>,w0;\r\n\u00a0\r\n\u00a0\r\n\u00a0\r\n<span style=\"color: #0066cc;\">void<\/span> setup<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>  \r\n  u8x8.<span style=\"color: #006600;\">begin<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n  u8x8.<span style=\"color: #006600;\">setPowerSave<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">0<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n  Serial.<span style=\"color: #006600;\">begin<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">115200<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n  Serial.<span style=\"color: #006600;\">println<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n  Serial3.<span style=\"color: #006600;\">begin<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">115200<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n  pinMode<span style=\"color: #66cc66;\">(<\/span>PB12,INPUT_PULLUP<span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #808080; font-style: italic;\">\/\/pb12 usb\/blu<\/span>\r\n  pinMode<span style=\"color: #66cc66;\">(<\/span>PB14,INPUT_PULLUP<span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #808080; font-style: italic;\">\/\/pb14 &gt;&gt;<\/span>\r\n  pinMode<span style=\"color: #66cc66;\">(<\/span>PB15,INPUT_PULLUP<span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #808080; font-style: italic;\">\/\/pb15 &lt;&lt;<\/span>\r\n  pinMode<span style=\"color: #66cc66;\">(<\/span>PA12,INPUT_PULLUP<span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #808080; font-style: italic;\">\/\/pa12 &gt;\/=<\/span>\r\n  pinMode<span style=\"color: #66cc66;\">(<\/span>PA15,INPUT_PULLUP<span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #808080; font-style: italic;\">\/\/pa15 vol+<\/span>\r\n  pinMode<span style=\"color: #66cc66;\">(<\/span>PA11,INPUT_PULLUP<span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #808080; font-style: italic;\">\/\/pa11 vol-<\/span>\r\n  delay<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">300<\/span><span style=\"color: #66cc66;\">)<\/span>; \r\n  Serial3.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\"AT+QM<span style=\"color: #000099; font-weight: bold;\">\\r<\/span><span style=\"color: #000099; font-weight: bold;\">\\n<\/span>\"<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n  delay<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">300<\/span><span style=\"color: #66cc66;\">)<\/span>; \r\n  Serial3.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\"AT+QA<span style=\"color: #000099; font-weight: bold;\">\\r<\/span><span style=\"color: #000099; font-weight: bold;\">\\n<\/span>\"<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n  delay<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">300<\/span><span style=\"color: #66cc66;\">)<\/span>; \r\n  Serial3.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\"AT+M1<span style=\"color: #000099; font-weight: bold;\">\\r<\/span><span style=\"color: #000099; font-weight: bold;\">\\n<\/span>\"<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n<span style=\"color: #66cc66;\">}<\/span>\r\n\u00a0\r\n<span style=\"color: #0066cc;\">void<\/span> loop<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>\r\n  u8x8.<span style=\"color: #006600;\">setFont<\/span><span style=\"color: #66cc66;\">(<\/span>u8x8_font_chroma48medium8_r<span style=\"color: #66cc66;\">)<\/span>;\r\n  <span style=\"color: #b1b100;\">if<\/span><span style=\"color: #66cc66;\">(<\/span>w==<span style=\"color: #cc66cc;\">1<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>w=<span style=\"color: #cc66cc;\">0<\/span>;\r\n  u8x8.<span style=\"color: #006600;\">setCursor<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">0<\/span>,<span style=\"color: #cc66cc;\">1<\/span><span style=\"color: #66cc66;\">)<\/span>;u8x8.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\"----------------\"<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n  u8x8.<span style=\"color: #006600;\">setCursor<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">0<\/span>,<span style=\"color: #cc66cc;\">4<\/span><span style=\"color: #66cc66;\">)<\/span>;u8x8.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\"----------------\"<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n  u8x8.<span style=\"color: #006600;\">setCursor<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">0<\/span>,<span style=\"color: #cc66cc;\">6<\/span><span style=\"color: #66cc66;\">)<\/span>;u8x8.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\"----------------\"<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n  u8x8.<span style=\"color: #006600;\">setCursor<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">0<\/span>,<span style=\"color: #cc66cc;\">7<\/span><span style=\"color: #66cc66;\">)<\/span>;u8x8.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\"USB+Bluetooth\"<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n  <span style=\"color: #66cc66;\">}<\/span>\r\n<span style=\"color: #808080; font-style: italic;\">\/\/\/\/ BUTTON  <\/span>\r\n  <span style=\"color: #b1b100;\">if<\/span><span style=\"color: #66cc66;\">(<\/span>digitalRead<span style=\"color: #66cc66;\">(<\/span>PB12<span style=\"color: #66cc66;\">)<\/span>==LOW <span style=\"color: #66cc66;\">&amp;&amp;<\/span> usb==<span style=\"color: #cc66cc;\">0<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>pp=<span style=\"color: #cc66cc;\">0<\/span>;w0=<span style=\"color: #cc66cc;\">1<\/span>;times0=millis<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span>;Serial3.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\"AT+CM02<span style=\"color: #000099; font-weight: bold;\">\\r<\/span><span style=\"color: #000099; font-weight: bold;\">\\n<\/span>\"<\/span><span style=\"color: #66cc66;\">)<\/span>;Serial.<span style=\"color: #006600;\">println<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\"USB\"<\/span><span style=\"color: #66cc66;\">)<\/span>;delay<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">20<\/span><span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #66cc66;\">}<\/span> <span style=\"color: #808080; font-style: italic;\">\/\/ start usb<\/span>\r\n  <span style=\"color: #b1b100;\">if<\/span><span style=\"color: #66cc66;\">(<\/span>digitalRead<span style=\"color: #66cc66;\">(<\/span>PB12<span style=\"color: #66cc66;\">)<\/span>==LOW <span style=\"color: #66cc66;\">&amp;&amp;<\/span> usb==<span style=\"color: #cc66cc;\">1<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>pp=<span style=\"color: #cc66cc;\">0<\/span>;w0=<span style=\"color: #cc66cc;\">1<\/span>;times0=millis<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span>;Serial3.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\"AT+CM01<span style=\"color: #000099; font-weight: bold;\">\\r<\/span><span style=\"color: #000099; font-weight: bold;\">\\n<\/span>\"<\/span><span style=\"color: #66cc66;\">)<\/span>;Serial.<span style=\"color: #006600;\">println<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\"BLUT\"<\/span><span style=\"color: #66cc66;\">)<\/span>;delay<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">20<\/span><span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #66cc66;\">}<\/span><span style=\"color: #808080; font-style: italic;\">\/\/ start bl<\/span>\r\n  <span style=\"color: #b1b100;\">if<\/span><span style=\"color: #66cc66;\">(<\/span>digitalRead<span style=\"color: #66cc66;\">(<\/span>PB14<span style=\"color: #66cc66;\">)<\/span>==LOW<span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>pp=<span style=\"color: #cc66cc;\">0<\/span>;w0=<span style=\"color: #cc66cc;\">1<\/span>;times0=millis<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span>;Serial3.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\"AT+CC<span style=\"color: #000099; font-weight: bold;\">\\r<\/span><span style=\"color: #000099; font-weight: bold;\">\\n<\/span>\"<\/span><span style=\"color: #66cc66;\">)<\/span>;Serial.<span style=\"color: #006600;\">println<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\"&gt;&gt;&gt;\"<\/span><span style=\"color: #66cc66;\">)<\/span>;delay<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">500<\/span><span style=\"color: #66cc66;\">)<\/span>;Serial3.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\"AT+M1<span style=\"color: #000099; font-weight: bold;\">\\r<\/span><span style=\"color: #000099; font-weight: bold;\">\\n<\/span>\"<\/span><span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #66cc66;\">}<\/span><span style=\"color: #808080; font-style: italic;\">\/\/ &gt;&gt;&gt;<\/span>\r\n  <span style=\"color: #b1b100;\">if<\/span><span style=\"color: #66cc66;\">(<\/span>digitalRead<span style=\"color: #66cc66;\">(<\/span>PB15<span style=\"color: #66cc66;\">)<\/span>==LOW<span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>pp=<span style=\"color: #cc66cc;\">0<\/span>;w0=<span style=\"color: #cc66cc;\">1<\/span>;times0=millis<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span>;Serial3.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\"AT+CD<span style=\"color: #000099; font-weight: bold;\">\\r<\/span><span style=\"color: #000099; font-weight: bold;\">\\n<\/span>\"<\/span><span style=\"color: #66cc66;\">)<\/span>;Serial.<span style=\"color: #006600;\">println<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\"&lt;&lt;&lt;\"<\/span><span style=\"color: #66cc66;\">)<\/span>;delay<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">500<\/span><span style=\"color: #66cc66;\">)<\/span>;Serial3.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\"AT+M1<span style=\"color: #000099; font-weight: bold;\">\\r<\/span><span style=\"color: #000099; font-weight: bold;\">\\n<\/span>\"<\/span><span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #66cc66;\">}<\/span><span style=\"color: #808080; font-style: italic;\">\/\/ &lt;&lt;&lt;<\/span>\r\n  <span style=\"color: #b1b100;\">if<\/span><span style=\"color: #66cc66;\">(<\/span>digitalRead<span style=\"color: #66cc66;\">(<\/span>PA12<span style=\"color: #66cc66;\">)<\/span>==LOW <span style=\"color: #66cc66;\">&amp;&amp;<\/span> usb==<span style=\"color: #cc66cc;\">0<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>Serial3.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\"AT+CB<span style=\"color: #000099; font-weight: bold;\">\\r<\/span><span style=\"color: #000099; font-weight: bold;\">\\n<\/span>\"<\/span><span style=\"color: #66cc66;\">)<\/span>;Serial.<span style=\"color: #006600;\">println<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\"PLAY\/PAUSE\"<\/span><span style=\"color: #66cc66;\">)<\/span>;delay<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">200<\/span><span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #66cc66;\">}<\/span><span style=\"color: #808080; font-style: italic;\">\/\/ &gt;\/=<\/span>\r\n  <span style=\"color: #b1b100;\">if<\/span><span style=\"color: #66cc66;\">(<\/span>digitalRead<span style=\"color: #66cc66;\">(<\/span>PA12<span style=\"color: #66cc66;\">)<\/span>==LOW <span style=\"color: #66cc66;\">&amp;&amp;<\/span> usb==<span style=\"color: #cc66cc;\">1<\/span> <span style=\"color: #66cc66;\">&amp;&amp;<\/span> pp==<span style=\"color: #cc66cc;\">0<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>pp=<span style=\"color: #cc66cc;\">1<\/span>;Serial3.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\"AT+AA02<span style=\"color: #000099; font-weight: bold;\">\\r<\/span><span style=\"color: #000099; font-weight: bold;\">\\n<\/span>\"<\/span><span style=\"color: #66cc66;\">)<\/span>;Serial.<span style=\"color: #006600;\">println<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\"PAUSE\"<\/span><span style=\"color: #66cc66;\">)<\/span>;delay<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">200<\/span><span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #66cc66;\">}<\/span><span style=\"color: #808080; font-style: italic;\">\/\/ &gt;\/=<\/span>\r\n  <span style=\"color: #b1b100;\">if<\/span><span style=\"color: #66cc66;\">(<\/span>digitalRead<span style=\"color: #66cc66;\">(<\/span>PA12<span style=\"color: #66cc66;\">)<\/span>==LOW <span style=\"color: #66cc66;\">&amp;&amp;<\/span> usb==<span style=\"color: #cc66cc;\">1<\/span> <span style=\"color: #66cc66;\">&amp;&amp;<\/span> pp==<span style=\"color: #cc66cc;\">1<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>pp=<span style=\"color: #cc66cc;\">0<\/span>;Serial3.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\"AT+AA01<span style=\"color: #000099; font-weight: bold;\">\\r<\/span><span style=\"color: #000099; font-weight: bold;\">\\n<\/span>\"<\/span><span style=\"color: #66cc66;\">)<\/span>;Serial.<span style=\"color: #006600;\">println<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\"PLAY\"<\/span><span style=\"color: #66cc66;\">)<\/span>;delay<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">200<\/span><span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #66cc66;\">}<\/span><span style=\"color: #808080; font-style: italic;\">\/\/ &gt;\/=<\/span>\r\n  <span style=\"color: #b1b100;\">if<\/span><span style=\"color: #66cc66;\">(<\/span>digitalRead<span style=\"color: #66cc66;\">(<\/span>PA15<span style=\"color: #66cc66;\">)<\/span>==LOW<span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>Serial3.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\"AT+CE<span style=\"color: #000099; font-weight: bold;\">\\r<\/span><span style=\"color: #000099; font-weight: bold;\">\\n<\/span>\"<\/span><span style=\"color: #66cc66;\">)<\/span>;Serial.<span style=\"color: #006600;\">println<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\"&gt;vol+\"<\/span><span style=\"color: #66cc66;\">)<\/span>;delay<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">200<\/span><span style=\"color: #66cc66;\">)<\/span>;Serial3.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\"AT+QA<span style=\"color: #000099; font-weight: bold;\">\\r<\/span><span style=\"color: #000099; font-weight: bold;\">\\n<\/span>\"<\/span><span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #66cc66;\">}<\/span><span style=\"color: #808080; font-style: italic;\">\/\/ vol+<\/span>\r\n  <span style=\"color: #b1b100;\">if<\/span><span style=\"color: #66cc66;\">(<\/span>digitalRead<span style=\"color: #66cc66;\">(<\/span>PA11<span style=\"color: #66cc66;\">)<\/span>==LOW<span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>Serial3.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\"AT+CF<span style=\"color: #000099; font-weight: bold;\">\\r<\/span><span style=\"color: #000099; font-weight: bold;\">\\n<\/span>\"<\/span><span style=\"color: #66cc66;\">)<\/span>;Serial.<span style=\"color: #006600;\">println<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\"&gt;vol-\"<\/span><span style=\"color: #66cc66;\">)<\/span>;delay<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">200<\/span><span style=\"color: #66cc66;\">)<\/span>;Serial3.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\"AT+QA<span style=\"color: #000099; font-weight: bold;\">\\r<\/span><span style=\"color: #000099; font-weight: bold;\">\\n<\/span>\"<\/span><span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #66cc66;\">}<\/span><span style=\"color: #808080; font-style: italic;\">\/\/ vol-<\/span>\r\n\u00a0\r\n  <span style=\"color: #b1b100;\">if<\/span> <span style=\"color: #66cc66;\">(<\/span>Serial.<span style=\"color: #006600;\">available<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span> <span style=\"color: #66cc66;\">&gt;<\/span> <span style=\"color: #cc66cc;\">0<\/span><span style=\"color: #66cc66;\">)<\/span> <span style=\"color: #66cc66;\">{<\/span>str = Serial.<span style=\"color: #006600;\">readString<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span>;Serial.<span style=\"color: #006600;\">println<\/span><span style=\"color: #66cc66;\">(<\/span>str<span style=\"color: #66cc66;\">)<\/span>;Serial3.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span>str+<span style=\"color: #ff0000;\">\"<span style=\"color: #000099; font-weight: bold;\">\\r<\/span><span style=\"color: #000099; font-weight: bold;\">\\n<\/span>\"<\/span><span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #66cc66;\">}<\/span>\r\n\u00a0\r\n  <span style=\"color: #b1b100;\">if<\/span> <span style=\"color: #66cc66;\">(<\/span>Serial3.<span style=\"color: #006600;\">available<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span> <span style=\"color: #66cc66;\">&gt;<\/span> <span style=\"color: #cc66cc;\">0<\/span><span style=\"color: #66cc66;\">)<\/span> <span style=\"color: #66cc66;\">{<\/span> str = Serial3.<span style=\"color: #006600;\">readString<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span>;Serial.<span style=\"color: #006600;\">println<\/span><span style=\"color: #66cc66;\">(<\/span>str<span style=\"color: #66cc66;\">)<\/span>; \r\n\u00a0\r\n  a = str.<span style=\"color: #0066cc;\">indexOf<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\"QM+01\"<\/span><span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #b1b100;\">if<\/span><span style=\"color: #66cc66;\">(<\/span>a<span style=\"color: #66cc66;\">&gt;<\/span>=<span style=\"color: #cc66cc;\">0<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>w0=<span style=\"color: #cc66cc;\">1<\/span>;times0=millis<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span>;usb = <span style=\"color: #cc66cc;\">0<\/span>;Serial.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span>str.<span style=\"color: #0066cc;\">substring<\/span><span style=\"color: #66cc66;\">(<\/span>a+<span style=\"color: #cc66cc;\">0<\/span>,a+<span style=\"color: #cc66cc;\">5<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #66cc66;\">}<\/span><span style=\"color: #808080; font-style: italic;\">\/\/blu<\/span>\r\n  a = str.<span style=\"color: #0066cc;\">indexOf<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\"QM+02\"<\/span><span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #b1b100;\">if<\/span><span style=\"color: #66cc66;\">(<\/span>a<span style=\"color: #66cc66;\">&gt;<\/span>=<span style=\"color: #cc66cc;\">0<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>w0=<span style=\"color: #cc66cc;\">1<\/span>;times0=millis<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span>;usb = <span style=\"color: #cc66cc;\">1<\/span>;Serial.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span>str.<span style=\"color: #0066cc;\">substring<\/span><span style=\"color: #66cc66;\">(<\/span>a+<span style=\"color: #cc66cc;\">0<\/span>,a+<span style=\"color: #cc66cc;\">5<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #66cc66;\">}<\/span><span style=\"color: #808080; font-style: italic;\">\/\/usb<\/span>\r\n  a = str.<span style=\"color: #0066cc;\">indexOf<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\"M1+\"<\/span><span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #b1b100;\">if<\/span><span style=\"color: #66cc66;\">(<\/span>a<span style=\"color: #66cc66;\">&gt;<\/span>=<span style=\"color: #cc66cc;\">0<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>str.<span style=\"color: #006600;\">setCharAt<\/span><span style=\"color: #66cc66;\">(<\/span>a+<span style=\"color: #cc66cc;\">4<\/span>, <span style=\"color: #ff0000;\">'x'<\/span><span style=\"color: #66cc66;\">)<\/span>;trek = strtol<span style=\"color: #66cc66;\">(<\/span>str.<span style=\"color: #0066cc;\">substring<\/span><span style=\"color: #66cc66;\">(<\/span>a+<span style=\"color: #cc66cc;\">3<\/span>,a+<span style=\"color: #cc66cc;\">11<\/span><span style=\"color: #66cc66;\">)<\/span>.<span style=\"color: #006600;\">c_str<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span>,<span style=\"color: #000000; font-weight: bold;\">NULL<\/span>,<span style=\"color: #cc66cc;\">0<\/span><span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #66cc66;\">}<\/span>\r\n  a = str.<span style=\"color: #0066cc;\">indexOf<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\"M2+\"<\/span><span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #b1b100;\">if<\/span><span style=\"color: #66cc66;\">(<\/span>a<span style=\"color: #66cc66;\">&gt;<\/span>=<span style=\"color: #cc66cc;\">0<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>str.<span style=\"color: #006600;\">setCharAt<\/span><span style=\"color: #66cc66;\">(<\/span>a+<span style=\"color: #cc66cc;\">4<\/span>, <span style=\"color: #ff0000;\">'x'<\/span><span style=\"color: #66cc66;\">)<\/span>;trek_all = strtol<span style=\"color: #66cc66;\">(<\/span>str.<span style=\"color: #0066cc;\">substring<\/span><span style=\"color: #66cc66;\">(<\/span>a+<span style=\"color: #cc66cc;\">3<\/span>,a+<span style=\"color: #cc66cc;\">11<\/span><span style=\"color: #66cc66;\">)<\/span>.<span style=\"color: #006600;\">c_str<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span>,<span style=\"color: #000000; font-weight: bold;\">NULL<\/span>,<span style=\"color: #cc66cc;\">0<\/span><span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #66cc66;\">}<\/span>\r\n  a = str.<span style=\"color: #0066cc;\">indexOf<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\"MT+\"<\/span><span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #b1b100;\">if<\/span><span style=\"color: #66cc66;\">(<\/span>a<span style=\"color: #66cc66;\">&gt;<\/span>=<span style=\"color: #cc66cc;\">0<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>str.<span style=\"color: #006600;\">setCharAt<\/span><span style=\"color: #66cc66;\">(<\/span>a+<span style=\"color: #cc66cc;\">4<\/span>, <span style=\"color: #ff0000;\">'x'<\/span><span style=\"color: #66cc66;\">)<\/span>;trek_time = strtol<span style=\"color: #66cc66;\">(<\/span>str.<span style=\"color: #0066cc;\">substring<\/span><span style=\"color: #66cc66;\">(<\/span>a+<span style=\"color: #cc66cc;\">3<\/span>,a+<span style=\"color: #cc66cc;\">11<\/span><span style=\"color: #66cc66;\">)<\/span>.<span style=\"color: #006600;\">c_str<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span>,<span style=\"color: #000000; font-weight: bold;\">NULL<\/span>,<span style=\"color: #cc66cc;\">0<\/span><span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #66cc66;\">}<\/span>\r\n  a = str.<span style=\"color: #0066cc;\">indexOf<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\"MK+\"<\/span><span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #b1b100;\">if<\/span><span style=\"color: #66cc66;\">(<\/span>a<span style=\"color: #66cc66;\">&gt;<\/span>=<span style=\"color: #cc66cc;\">0<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>str.<span style=\"color: #006600;\">setCharAt<\/span><span style=\"color: #66cc66;\">(<\/span>a+<span style=\"color: #cc66cc;\">4<\/span>, <span style=\"color: #ff0000;\">'x'<\/span><span style=\"color: #66cc66;\">)<\/span>;trek_off = strtol<span style=\"color: #66cc66;\">(<\/span>str.<span style=\"color: #0066cc;\">substring<\/span><span style=\"color: #66cc66;\">(<\/span>a+<span style=\"color: #cc66cc;\">3<\/span>,a+<span style=\"color: #cc66cc;\">11<\/span><span style=\"color: #66cc66;\">)<\/span>.<span style=\"color: #006600;\">c_str<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span>,<span style=\"color: #000000; font-weight: bold;\">NULL<\/span>,<span style=\"color: #cc66cc;\">0<\/span><span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #66cc66;\">}<\/span>\r\n  a = str.<span style=\"color: #0066cc;\">indexOf<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\"TS+00\"<\/span><span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #b1b100;\">if<\/span><span style=\"color: #66cc66;\">(<\/span>a<span style=\"color: #66cc66;\">&gt;<\/span>=<span style=\"color: #cc66cc;\">0<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>blu_sos=<span style=\"color: #cc66cc;\">0<\/span>;<span style=\"color: #66cc66;\">}<\/span>\r\n  a = str.<span style=\"color: #0066cc;\">indexOf<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\"TS+01\"<\/span><span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #b1b100;\">if<\/span><span style=\"color: #66cc66;\">(<\/span>a<span style=\"color: #66cc66;\">&gt;<\/span>=<span style=\"color: #cc66cc;\">0<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>blu_sos=<span style=\"color: #cc66cc;\">1<\/span>;<span style=\"color: #66cc66;\">}<\/span>\r\n  a = str.<span style=\"color: #0066cc;\">indexOf<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\"TS+02\"<\/span><span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #b1b100;\">if<\/span><span style=\"color: #66cc66;\">(<\/span>a<span style=\"color: #66cc66;\">&gt;<\/span>=<span style=\"color: #cc66cc;\">0<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>blu_sos=<span style=\"color: #cc66cc;\">2<\/span>;<span style=\"color: #66cc66;\">}<\/span>\r\n  a = str.<span style=\"color: #0066cc;\">indexOf<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\"QA+\"<\/span><span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #b1b100;\">if<\/span><span style=\"color: #66cc66;\">(<\/span>a<span style=\"color: #66cc66;\">&gt;<\/span>=<span style=\"color: #cc66cc;\">0<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>vol = str.<span style=\"color: #0066cc;\">substring<\/span><span style=\"color: #66cc66;\">(<\/span>a+<span style=\"color: #cc66cc;\">3<\/span>,a+<span style=\"color: #cc66cc;\">5<\/span><span style=\"color: #66cc66;\">)<\/span>.<span style=\"color: #006600;\">toInt<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #66cc66;\">}<\/span><span style=\"color: #808080; font-style: italic;\">\/\/vol<\/span>\r\n <span style=\"color: #66cc66;\">}<\/span>\r\n\u00a0\r\n  <span style=\"color: #b1b100;\">if<\/span><span style=\"color: #66cc66;\">(<\/span>usb==<span style=\"color: #cc66cc;\">0<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>\r\n  u8x8.<span style=\"color: #006600;\">setCursor<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">0<\/span>,<span style=\"color: #cc66cc;\">0<\/span><span style=\"color: #66cc66;\">)<\/span>;u8x8.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\"Bluetooth \"<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n  u8x8.<span style=\"color: #006600;\">setCursor<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">0<\/span>,<span style=\"color: #cc66cc;\">2<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n    <span style=\"color: #b1b100;\">switch<\/span><span style=\"color: #66cc66;\">(<\/span>blu_sos<span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>\r\n      <span style=\"color: #b1b100;\">case<\/span> <span style=\"color: #cc66cc;\">0<\/span>: u8x8.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\"not connected\"<\/span><span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #b1b100;\">break<\/span>;\r\n      <span style=\"color: #b1b100;\">case<\/span> <span style=\"color: #cc66cc;\">1<\/span>: u8x8.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\"connected    \"<\/span><span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #b1b100;\">break<\/span>;\r\n      <span style=\"color: #b1b100;\">case<\/span> <span style=\"color: #cc66cc;\">2<\/span>: u8x8.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\"play         \"<\/span><span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #b1b100;\">break<\/span>;\r\n      <span style=\"color: #66cc66;\">}<\/span>\r\n    u8x8.<span style=\"color: #006600;\">setCursor<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">0<\/span>,<span style=\"color: #cc66cc;\">3<\/span><span style=\"color: #66cc66;\">)<\/span>;u8x8.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\"              \"<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n    <span style=\"color: #66cc66;\">}<\/span>\r\n\u00a0\r\n<span style=\"color: #b1b100;\">if<\/span><span style=\"color: #66cc66;\">(<\/span>usb==<span style=\"color: #cc66cc;\">1<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>\r\n  <span style=\"color: #b1b100;\">if<\/span><span style=\"color: #66cc66;\">(<\/span>pp==<span style=\"color: #cc66cc;\">0<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>u8x8.<span style=\"color: #006600;\">setCursor<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">0<\/span>,<span style=\"color: #cc66cc;\">0<\/span><span style=\"color: #66cc66;\">)<\/span>;u8x8.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\"USB play     \"<\/span><span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #66cc66;\">}<\/span>\r\n  <span style=\"color: #b1b100;\">if<\/span><span style=\"color: #66cc66;\">(<\/span>pp==<span style=\"color: #cc66cc;\">1<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>u8x8.<span style=\"color: #006600;\">setCursor<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">0<\/span>,<span style=\"color: #cc66cc;\">0<\/span><span style=\"color: #66cc66;\">)<\/span>;u8x8.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\"USB pause    \"<\/span><span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #66cc66;\">}<\/span>\r\n  u8x8.<span style=\"color: #006600;\">setCursor<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">0<\/span>,<span style=\"color: #cc66cc;\">2<\/span><span style=\"color: #66cc66;\">)<\/span>;u8x8.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\"File \"<\/span><span style=\"color: #66cc66;\">)<\/span>;u8x8.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span>trek<span style=\"color: #66cc66;\">)<\/span>;u8x8.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\"(\"<\/span><span style=\"color: #66cc66;\">)<\/span>;u8x8.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span>trek_all<span style=\"color: #66cc66;\">)<\/span>;u8x8.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\")     \"<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n  u8x8.<span style=\"color: #006600;\">setCursor<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">0<\/span>,<span style=\"color: #cc66cc;\">3<\/span><span style=\"color: #66cc66;\">)<\/span>;u8x8.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\"Time \"<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n  <span style=\"color: #0066cc;\">int<\/span> minut = trek_time <span style=\"color: #66cc66;\">\/<\/span> <span style=\"color: #cc66cc;\">60<\/span>;<span style=\"color: #0066cc;\">int<\/span> secon = trek_time - <span style=\"color: #66cc66;\">(<\/span>minut <span style=\"color: #66cc66;\">*<\/span> <span style=\"color: #cc66cc;\">60<\/span><span style=\"color: #66cc66;\">)<\/span>;u8x8.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span>minut<span style=\"color: #66cc66;\">)<\/span>;u8x8.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\":\"<\/span><span style=\"color: #66cc66;\">)<\/span>;u8x8.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span>secon<span style=\"color: #66cc66;\">\/<\/span><span style=\"color: #cc66cc;\">10<\/span><span style=\"color: #66cc66;\">)<\/span>;u8x8.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span>secon<span style=\"color: #66cc66;\">%<\/span>10<span style=\"color: #66cc66;\">)<\/span>;\r\n  u8x8.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\" \"<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n  <span style=\"color: #0066cc;\">int<\/span> minut_off = trek_off <span style=\"color: #66cc66;\">\/<\/span> <span style=\"color: #cc66cc;\">60<\/span>;<span style=\"color: #0066cc;\">int<\/span> secon_off = trek_off - <span style=\"color: #66cc66;\">(<\/span>minut_off <span style=\"color: #66cc66;\">*<\/span> <span style=\"color: #cc66cc;\">60<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n  u8x8.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span>minut_off<span style=\"color: #66cc66;\">)<\/span>;u8x8.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\":\"<\/span><span style=\"color: #66cc66;\">)<\/span>;u8x8.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span>secon_off<span style=\"color: #66cc66;\">\/<\/span><span style=\"color: #cc66cc;\">10<\/span><span style=\"color: #66cc66;\">)<\/span>;u8x8.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span>secon_off<span style=\"color: #66cc66;\">%<\/span>10<span style=\"color: #66cc66;\">)<\/span>;u8x8.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\" \"<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n  <span style=\"color: #b1b100;\">if<\/span><span style=\"color: #66cc66;\">(<\/span>millis<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span>-times<span style=\"color: #66cc66;\">&gt;<\/span><span style=\"color: #cc66cc;\">999<\/span> <span style=\"color: #66cc66;\">&amp;&amp;<\/span> pp==<span style=\"color: #cc66cc;\">0<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>times=millis<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span>;trek_off=trek_off+<span style=\"color: #cc66cc;\">1<\/span>;<span style=\"color: #66cc66;\">}<\/span>\r\n  <span style=\"color: #b1b100;\">if<\/span><span style=\"color: #66cc66;\">(<\/span>millis<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span>-times0<span style=\"color: #66cc66;\">&gt;<\/span><span style=\"color: #cc66cc;\">1999<\/span> <span style=\"color: #66cc66;\">&amp;&amp;<\/span> w0==<span style=\"color: #cc66cc;\">1<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>w0=<span style=\"color: #cc66cc;\">0<\/span>;Serial3.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\"AT+M1<span style=\"color: #000099; font-weight: bold;\">\\r<\/span><span style=\"color: #000099; font-weight: bold;\">\\n<\/span>\"<\/span><span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #66cc66;\">}<\/span>\r\n<span style=\"color: #66cc66;\">}<\/span>\r\n  u8x8.<span style=\"color: #006600;\">setCursor<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">0<\/span>,<span style=\"color: #cc66cc;\">5<\/span><span style=\"color: #66cc66;\">)<\/span>;u8x8.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\"VOLUME \"<\/span><span style=\"color: #66cc66;\">)<\/span>;u8x8.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span>vol<span style=\"color: #66cc66;\">\/<\/span><span style=\"color: #cc66cc;\">10<\/span><span style=\"color: #66cc66;\">)<\/span>;u8x8.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span>vol<span style=\"color: #66cc66;\">%<\/span>10<span style=\"color: #66cc66;\">)<\/span>;\r\n\u00a0\r\n<span style=\"color: #66cc66;\">}<\/span><\/pre>\n<p style=\"text-align: center;\"><iframe loading=\"lazy\" title=\"\u041c\u043e\u0434\u0443\u043b\u044c BT201 + STM32 (Arduino)\" src=\"https:\/\/www.youtube.com\/embed\/vFNDCz8iw2M\" width=\"320\" height=\"560\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041c\u043e\u0434\u0443\u043b\u044c BT201 5.0 Bluetooth \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u043e\u0431\u043e\u0439 \u0435\u0434\u0438\u043d\u044b\u0439 \u0447\u0438\u043f 4-\u0432-1, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 Bluetooth, USB-\u0444\u043b\u0435\u0448\u043a\u0443 \u0438 TF-\u043a\u0430\u0440\u0442\u0443. \u0424\u0443\u043d\u043a\u0446\u0438\u0438: \u041f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 Bluetooth-\u0430\u0443\u0434\u0438\u043e, \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0430 \u0434\u0430\u043d\u043d\u044b\u0445 BLE, \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435 U-\u0434\u0438\u0441\u043a\u0430, \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435 TF-\u043a\u0430\u0440\u0442\u044b, SPIFLASH. \u041f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 \u0434\u0435\u043a\u043e\u0434\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0444\u043e\u0440\u043c\u0430\u0442\u043e\u0432 MP3, WAV, WMA, FLAC, AAC, APE. 16-\u0431\u0438\u0442\u043d\u044b\u0439 \u0441\u0442\u0435\u0440\u0435\u043e \u0426\u0410\u041f \u0441 \u0443\u0441\u0438\u043b\u0438\u0442\u0435\u043b\u0435\u043c \u0434\u043b\u044f \u043d\u0430\u0443\u0448\u043d\u0438\u043a\u043e\u0432, \u043e\u0442\u043d\u043e\u0448\u0435\u043d\u0438\u0435 \u0441\u0438\u0433\u043d\u0430\u043b\/\u0448\u0443\u043c &gt;= 95 \u0434\u0411 \u041f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043f\u043e\u0440\u0442 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 AT. \u041f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u0438 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":129617,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[239,5],"tags":[],"class_list":["post-129611","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-arduino","category-5"],"views":7305,"_links":{"self":[{"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/129611","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=129611"}],"version-history":[{"count":7,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/129611\/revisions"}],"predecessor-version":[{"id":129685,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/129611\/revisions\/129685"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/media\/129617"}],"wp:attachment":[{"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=129611"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=129611"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=129611"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}