{"id":24007,"date":"2021-04-12T13:55:46","date_gmt":"2021-04-12T09:25:46","guid":{"rendered":"https:\/\/thecaferobot.com\/learn\/?p=24007"},"modified":"2021-06-19T17:42:26","modified_gmt":"2021-06-19T13:12:26","slug":"interfacing-adafruit-bluefruit-le-spi-friend-with-arduino","status":"publish","type":"post","link":"https:\/\/thecaferobot.com\/learn\/interfacing-adafruit-bluefruit-le-spi-friend-with-arduino\/","title":{"rendered":"\u0622\u0645\u0648\u0632\u0634 \u0631\u0627\u0647\u200c\u0627\u0646\u062f\u0627\u0632\u06cc \u0645\u0627\u0698\u0648\u0644 \u0628\u0644\u0648\u062a\u0648\u062b Adafruit Bluefruit LE SPI Friend \u0628\u0627 \u0622\u0631\u062f\u0648\u06cc\u0646\u0648"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"24007\" class=\"elementor elementor-24007\">\n\t\t\t\t\t\t<div class=\"elementor-inner\">\n\t\t\t\t<div class=\"elementor-section-wrap\">\n\t\t\t\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-2a0592a elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"2a0592a\" data-element_type=\"section\">\r\n\t\t\t\r\n\t\t\t\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\r\n\t\t\t\t\t\t\t\t<div class=\"elementor-row\">\r\n\t\t\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-ece1920\" data-id=\"ece1920\" data-element_type=\"column\">\r\n\r\n\t\t\t\t\t<div class=\"elementor-column-wrap elementor-element-populated\">\r\n\t\t\t\t\t\t\t<div class=\"elementor-widget-wrap\">\r\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-16f52faa elementor-widget elementor-widget-heading\" data-id=\"16f52faa\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">\u0648\u06cc\u0698\u06af\u06cc \u0647\u0627\u06cc \u0645\u0627\u0698\u0648\u0644 \u0628\u0644\u0648\u062a\u0648\u062b Adafruit Bluefruit LE SPI Friend<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-445d6bef elementor-widget elementor-widget-text-editor\" data-id=\"445d6bef\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-text-editor elementor-clearfix\">\n\t\t\t\t<p>\u0645\u0627\u0698\u0648\u0644\u200c\u0647\u0627\u06cc \u0628\u0644\u0648\u062a\u0648\u062b \u0627\u0632 \u062c\u0645\u0644\u0647 \u0645\u0627\u0698\u0648\u0644\u200c\u0647\u0627\u06cc \u0627\u0631\u062a\u0628\u0627\u0637 \u0628\u06cc\u200c\u0633\u06cc\u0645 \u0647\u0633\u062a\u0646\u062f \u06a9\u0647 \u0645\u06cc\u200c\u062a\u0648\u0627\u0646 \u0622\u0646\u200c\u0647\u0627 \u0631\u0627 \u0628\u0647 \u0635\u0648\u0631\u062a \u0633\u0631\u06cc\u0627\u0644 \u06cc\u0627 <b>SPI<\/b> \u0628\u0647 \u067e\u0631\u0648\u0698\u0647 \u0627\u0636\u0627\u0641\u0647 \u06a9\u0631\u062f.<\/p>\n<p>\u0645\u0632\u06cc\u062a \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0645\u0627\u0698\u0648\u0644\u200c\u0647\u0627\u06cc \u0628\u0644\u0648\u062a\u0648\u062b \u0631\u0627\u0647\u200c\u0627\u0646\u062f\u0627\u0632\u06cc \u0631\u0627\u062d\u062a \u0648 \u0622\u0633\u0627\u0646 \u0627\u06cc\u0646 \u0645\u0627\u0698\u0648\u0644\u200c\u0647\u0627 \u0645\u06cc\u200c\u0628\u0627\u0634\u062f.<\/p>\n<p>\u0645\u0627\u0698\u0648\u0644 Adafruit Bluefruit<span style=\"letter-spacing: 0px;\">&nbsp;<\/span><span style=\"letter-spacing: 0px;\">LE<\/span><span style=\"letter-spacing: 0px;\">&nbsp;SPI Friend \u0627\u0632 \u067e\u0631\u0648\u062a\u06a9\u0644 <b>SPI<\/b> \u0628\u0631\u0627\u06cc \u0627\u0631\u062a\u0628\u0627\u0637 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc\u200c\u06a9\u0646\u062f.<\/span><\/p>\n<p>\u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0627\u06cc\u0646 \u0645\u0627\u0698\u0648\u0644 \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u0628\u0647 \u0631\u0627\u062d\u062a\u06cc \u0627\u062a\u0635\u0627\u0644 \u0628\u0644\u0648\u062a\u0648\u062b \u0631\u0627 \u0628\u0627 \u0647\u0631 \u0628\u0631\u062f \u062f\u06cc\u06af\u0631\u06cc\u060c \u0628\u0631\u0642\u0631\u0627\u0631 \u06a9\u0646\u06cc\u062f. \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u067e\u0631\u0648\u062a\u06a9\u0644 SPI\u060c \u062f\u06cc\u06af\u0631 \u0644\u0627\u0632\u0645 \u0646\u06cc\u0633\u062a \u0646\u06af\u0631\u0627\u0646 \u0633\u0631\u0639\u062a (baud rate)\u060c \u06a9\u0646\u062a\u0631\u0644 \u062c\u0631\u06cc\u0627\u0646 \u06cc\u0627 \u06a9\u0646\u0627\u0631 \u06af\u0630\u0627\u0634\u062a\u0646 \u067e\u0648\u0631\u062a UART \u0628\u0627\u0634\u06cc\u062f.<\/p>\n<p>\u0642\u0627\u0628\u0644\u06cc\u062a\u200c\u0647\u0627\u06cc \u0627\u06cc\u0646 \u0645\u0627\u0698\u0648\u0644 \u0628\u06cc\u0634 \u0627\u0632 \u062a\u0635\u0648\u0631 \u0634\u0645\u0627\u0633\u062a. \u0628\u0647 \u062f\u0644\u06cc\u0644 \u06cc\u0627\u062f\u06af\u06cc\u0631\u06cc \u0622\u0633\u0627\u0646 \u0645\u062c\u0645\u0648\u0639\u0647 AT Command\u060c \u0634\u0645\u0627 \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u06a9\u0646\u062a\u0631\u0644 \u06a9\u0627\u0645\u0644\u06cc \u0628\u0631 \u0646\u062d\u0648\u0647 \u0639\u0645\u0644\u06a9\u0631\u062f \u062f\u0633\u062a\u06af\u0627\u0647\u060c \u0627\u0632 \u062c\u0645\u0644\u0647 \u0627\u0645\u06a9\u0627\u0646 \u062a\u0639\u0631\u06cc\u0641 \u0648 \u062a\u063a\u06cc\u06cc\u0631 \u062f\u0631 \u0633\u0631\u0648\u06cc\u0633\u200c\u0647\u0627 \u0648 \u0648\u06cc\u0698\u06af\u06cc\u200c\u0647\u0627\u06cc GATT \u062e\u0648\u062f \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u06cc\u062f. \u0647\u0645\u0686\u0646\u06cc\u0646 \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632&nbsp; AT Command \u0628\u0647 \u0645\u0646\u0638\u0648\u0631 \u0627\u0637\u0644\u0627\u0639 \u0627\u0632 \u0627\u062a\u0644\u0627\u0641 \u062f\u0645\u0627\u060c \u0628\u0631\u0631\u0633\u06cc \u0648\u0644\u062a\u0627\u0698 \u0628\u0627\u062a\u0631\u06cc\u060c \u0628\u0631\u0631\u0633\u06cc \u0627\u062a\u0635\u0627\u0644 RSSI \u06cc\u0627 \u0628\u0631\u0631\u0633\u06cc \u0622\u062f\u0631\u0633 MAC \u0648 \u0628\u0631\u0631\u0633\u06cc \u0645\u0648\u0627\u0631\u062f \u062f\u06cc\u06af\u0631 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f.<\/p>\n<p>\u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0627\u067e\u0644\u06cc\u06a9\u06cc\u0634\u0646 Bluefruit Connect \u06a9\u0647 \u062f\u0631 \u062f\u0648 \u0646\u0633\u062e\u0647 iOS&nbsp; \u0648 Android \u0645\u0648\u062c\u0648\u062f \u0645\u06cc\u200c\u0628\u0627\u0634\u062f\u060c \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u0646\u0633\u062e\u0647 \u0627\u0648\u0644\u06cc\u0647 \u067e\u0631\u0648\u0698\u0647 \u062e\u0648\u062f \u0631\u0627 \u062f\u0631\u06cc\u0627\u0641\u062a \u06a9\u0646\u06cc\u062f.<\/p>\n<p>\u0645\u0627\u0698\u0648\u0644 \u0628\u0644\u0648\u062a\u0648\u062b Bluefruit\u060c \u0647\u0645\u0686\u0646\u06cc\u0646 \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u062f \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u06a9\u06cc\u0628\u0648\u0631\u062f HID \u0639\u0645\u0644 \u06a9\u0646\u062f. (\u0628\u0631\u0627\u06cc \u062a\u062c\u0647\u06cc\u0632\u0627\u062a\u06cc \u06a9\u0647 \u0627\u0632 BLE HID \u067e\u0634\u062a\u06cc\u0628\u0627\u0646\u06cc \u0645\u06cc\u200c\u06a9\u0646\u0646\u062f.)<\/p>\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<section class=\"elementor-section elementor-inner-section elementor-element elementor-element-1fa3e5df elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"1fa3e5df\" data-element_type=\"section\">\r\n\t\t\t\r\n\t\t\t\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\r\n\t\t\t\t\t\t\t\t<div class=\"elementor-row\">\r\n\t\t\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-inner-column elementor-element elementor-element-5db4e138\" data-id=\"5db4e138\" data-element_type=\"column\" data-settings=\"{&quot;background_background&quot;:&quot;gradient&quot;}\">\r\n\r\n\t\t\t\t\t<div class=\"elementor-column-wrap elementor-element-populated\">\r\n\t\t\t\t\t\t\t<div class=\"elementor-widget-wrap\">\r\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-3c859160 elementor-view-stacked elementor-widget__width-auto elementor-absolute elementor-shape-circle elementor-widget elementor-widget-icon\" data-id=\"3c859160\" data-element_type=\"widget\" data-settings=\"{&quot;_position&quot;:&quot;absolute&quot;}\" data-widget_type=\"icon.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"elementor-icon-wrapper\">\n\t\t\t<div class=\"elementor-icon\">\n\t\t\t<i aria-hidden=\"true\" class=\"fas fa-pen\"><\/i>\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-2b3590d8 elementor-widget elementor-widget-heading\" data-id=\"2b3590d8\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h5 class=\"elementor-heading-title elementor-size-default\">\u0646\u06a9\u062a\u0647 <\/h5>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-36ec92a3 elementor-widget elementor-widget-text-editor\" data-id=\"36ec92a3\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-text-editor elementor-clearfix\">\n\t\t\t\t<p><strong>\u062c\u0647\u062a \u0628\u0647 \u0631\u0648\u0632\u0631\u0633\u0627\u0646\u06cc <\/strong><b>Framework<\/b><strong> \u0627\u06cc\u0646 \u0645\u0627\u0698\u0648\u0644 \u0646\u06cc\u0627\u0632 \u0627\u0633\u062a \u0645\u0627\u0698\u0648\u0644 \u062f\u0631 \u0645\u0648\u062f <\/strong><b>DFU<\/b><strong> \u0642\u0631\u0627\u0631 \u0628\u06af\u06cc\u0631\u062f \u0648 \u0627\u0632 \u0646\u0631\u0645\u200c\u0627\u0641\u0632\u0627\u0631 <\/strong><a href=\"https:\/\/play.google.com\/store\/apps\/details?id=com.adafruit.bluefruit.le.connect&amp;hl=en&amp;gl=US\"><b>Bluefruit connect<\/b><\/a> <strong>\u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0634\u0648\u062f.<\/strong><\/p>\n<p><strong>\u062c\u0647\u062a \u062a\u0646\u0638\u06cc\u0645 \u0645\u0627\u0698\u0648\u0644 \u062f\u0631 \u062d\u0627\u0644\u062a <\/strong>DFU<strong> \u0646\u06cc\u0627\u0632 \u0627\u0633\u062a \u067e\u0627\u06cc\u0647 <\/strong>DFU<strong> \u0628\u0647 <\/strong>GND<strong> \u0645\u062a\u0635\u0644 \u0634\u0648\u062f.<\/strong><\/p>\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t<\/div>\r\n\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t<\/section>\r\n\t\t\t\t<div class=\"elementor-element elementor-element-32ac2098 elementor-widget elementor-widget-image\" data-id=\"32ac2098\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-image\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"https:\/\/thecaferobot.com\/learn\/wp-content\/uploads\/2021\/03\/1-8.jpg\" data-elementor-open-lightbox=\"yes\" data-elementor-lightbox-title=\"1\" e-action-hash=\"#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6MjQwMTQsInVybCI6Imh0dHBzOlwvXC90aGVjYWZlcm9ib3QuY29tXC9sZWFyblwvd3AtY29udGVudFwvdXBsb2Fkc1wvMjAyMVwvMDNcLzEtOC5qcGcifQ%3D%3D\">\n\t\t\t\t\t\t\t<img width=\"800\" height=\"600\" src=\"https:\/\/thecaferobot.com\/learn\/wp-content\/uploads\/2021\/03\/1-8.jpg\" class=\"attachment-large size-large\" alt=\"\u0628\u0644\u0648\u062a\u0648\u062b ADAFRUIT BLUEFRUIT SPI BLE\" loading=\"lazy\" \/>\t\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-301538 elementor-widget elementor-widget-text-editor\" data-id=\"301538\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-text-editor elementor-clearfix\">\n\t\t\t\t<p>\u062c\u0647\u062a \u062f\u0631\u06cc\u0627\u0641\u062a \u062f\u06cc\u062a\u0627\u0634\u06cc\u062a \u0645\u0627\u0698\u0648\u0644 \u0628\u0644\u0648\u062a\u0648\u062b Adafruit Bluefruit<span style=\"letter-spacing: 0px;\">\u00a0<\/span><span style=\"letter-spacing: 0px;\">LE<\/span><span style=\"letter-spacing: 0px;\">\u00a0SPI Friend<\/span>\u00a0\u0627\u06cc\u0646\u062c\u0627 \u06a9\u0644\u06cc\u06a9 \u06a9\u0646\u06cc\u062f.<\/p><p><div class='w3eden'><!-- WPDM Link Template: Default Template -->\n\n<div class=\"link-template-default card mb-2\">\n    <div class=\"card-body\">\n        <div class=\"media\">\n            <div class=\"mr-3 img-48\"><img class=\"wpdm_icon\" alt=\"Icon\" src=\"https:\/\/thecaferobot.com\/learn\/wp-content\/plugins\/download-manager\/assets\/file-type-icons\/pdf.svg\" \/><\/div>\n            <div class=\"media-body\">\n                <h3 class=\"package-title\"><a href='https:\/\/thecaferobot.com\/learn\/download\/adafruit-bluefruit-le-spi-friend-datasheet\/'>ADAFRUIT BLUEFRUIT LE SPI FRIEND Datasheet<\/a><\/h3>\n                <div class=\"text-muted text-small\"><i class=\"fas fa-copy\"><\/i> 1 file(s) <i class=\"fas fa-hdd ml-3\"><\/i> 5.65 MB<\/div>\n            <\/div>\n            <div class=\"ml-3\">\n                <a class='wpdm-download-link download-on-click btn btn-primary ' rel='nofollow' href='#' data-downloadurl=\"https:\/\/thecaferobot.com\/learn\/download\/adafruit-bluefruit-le-spi-friend-datasheet\/?wpdmdl=24018&#038;refresh=6a4518bf54bf81782913215\">Download<\/a>\n            <\/div>\n        <\/div>\n    <\/div>\n<\/div>\n\n<\/div><\/p><p>\u062c\u0647\u062a \u062f\u0631\u06cc\u0627\u0641\u062a \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u0628\u06cc\u0634\u062a\u0631 \u0628\u0644\u0648\u062a\u0648\u062b Adafruit Bluefruit<span style=\"letter-spacing: 0px;\">\u00a0<\/span><span style=\"letter-spacing: 0px;\">LE<\/span><span style=\"letter-spacing: 0px;\">\u00a0SPI Friend<\/span>\u00a0<a href=\"https:\/\/learn.adafruit.com\/introducing-the-adafruit-bluefruit-spi-breakout\/introduction\">\u0627\u06cc\u0646\u062c\u0627<\/a> \u06a9\u0644\u06cc\u06a9 \u06a9\u0646\u06cc\u062f.<\/p>\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-3b6dc1a5 elementor-widget elementor-widget-heading\" data-id=\"3b6dc1a5\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">\u0645\u0639\u0631\u0641\u06cc \u067e\u0627\u06cc\u0647 \u0647\u0627 (Pinout) \u0645\u0627\u0698\u0648\u0644 \u0628\u0644\u0648\u062a\u0648\u062b Adafruit Bluefruit LE SPI Friend<br><\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-11354ee0 elementor-widget elementor-widget-text-editor\" data-id=\"11354ee0\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-text-editor elementor-clearfix\">\n\t\t\t\t<p>\u0645\u0627\u0698\u0648\u0644 \u0628\u0644\u0648\u062a\u0648\u062b Adafruit Bluefruit<span style=\"letter-spacing: 0px;\">\u00a0<\/span><span style=\"letter-spacing: 0px;\">LE<\/span><span style=\"letter-spacing: 0px;\">\u00a0SPI Friend<\/span>\u00a0\u062f\u0627\u0631\u0627\u06cc 9 \u067e\u0627\u06cc\u0647 \u0628\u0647 \u0634\u0631\u062d \u0632\u06cc\u0631 \u0627\u0633\u062a:<\/p><ul><li><strong>VIN<\/strong>: \u062a\u063a\u0630\u06cc\u0647 \u0645\u0627\u0698\u0648\u0644 &#8211; 6-3.6 \u0648\u0644\u062a<\/li><li><strong>GND<\/strong><strong>:<\/strong> \u0632\u0645\u06cc\u0646<\/li><li><strong>IRQ<\/strong><strong>:<\/strong> \u0648\u0642\u0641\u0647 \u0627\u0632 \u0633\u0648\u06cc \u0645\u0627\u0698\u0648\u0644<\/li><li><strong>SCK<\/strong><strong>:<\/strong> \u0647\u0645\u0632\u0645\u0627\u0646 \u0633\u0627\u0632\u06cc \u0628\u0631\u0627\u06cc \u067e\u0631\u0648\u062a\u06a9\u0644 SPI<\/li><li><strong>MOSI<\/strong>: \u062e\u0637 \u0627\u0631\u0633\u0627\u0644\u06cc \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u0628\u0631\u0627\u06cc \u067e\u0631\u0648\u062a\u06a9\u0644 SPI<\/li><li><strong>MISO<\/strong>: \u062e\u0637 \u062f\u0631\u06cc\u0627\u0641\u062a\u06cc \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u0628\u0631\u0627\u06cc \u067e\u0631\u0648\u062a\u06a9\u0644 SPI<\/li><li><strong>CS<\/strong>: \u0627\u0646\u062a\u062e\u0627\u0628 \u062f\u0633\u062a\u06af\u0627\u0647 \u0647\u0627\u06cc \u0632\u06cc\u0631 \u0645\u062c\u0645\u0648\u0639\u0647 \u0628\u0631\u0627\u06cc \u067e\u0631\u0648\u062a\u06a9\u0644 SPI<\/li><li><strong>RET<\/strong>: \u0631\u06cc\u0633\u062a \u06a9\u0631\u062f\u0646 \u0645\u0627\u0698\u0648\u0644<\/li><li><strong>DFU<\/strong>: \u062a\u0646\u0638\u06cc\u0645 \u0645\u0627\u0698\u0648\u0644 \u062f\u0631 \u0645\u0648\u062f DFU<\/li><\/ul>\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-5bb92aaa elementor-widget elementor-widget-image\" data-id=\"5bb92aaa\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-image\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"https:\/\/thecaferobot.com\/learn\/wp-content\/uploads\/2021\/03\/pin-6.jpg\" data-elementor-open-lightbox=\"yes\" data-elementor-lightbox-title=\"pin\" e-action-hash=\"#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6MjQwMTUsInVybCI6Imh0dHBzOlwvXC90aGVjYWZlcm9ib3QuY29tXC9sZWFyblwvd3AtY29udGVudFwvdXBsb2Fkc1wvMjAyMVwvMDNcL3Bpbi02LmpwZyJ9\">\n\t\t\t\t\t\t\t<img width=\"800\" height=\"600\" src=\"https:\/\/thecaferobot.com\/learn\/wp-content\/uploads\/2021\/03\/pin-6.jpg\" class=\"attachment-large size-large\" alt=\"\" loading=\"lazy\" \/>\t\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-e012816 elementor-widget elementor-widget-heading\" data-id=\"e012816\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">\u0644\u0648\u0627\u0632\u0645\u06cc \u06a9\u0647 \u0628\u0647 \u0622\u0646 \u0627\u062d\u062a\u06cc\u0627\u062c \u062f\u0627\u0631\u06cc\u062f<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-7509bbbb elementor-widget elementor-widget-image\" data-id=\"7509bbbb\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-image\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"https:\/\/thecaferobot.com\/learn\/wp-content\/uploads\/2021\/03\/Required-Materials-6.jpg\" data-elementor-open-lightbox=\"yes\" data-elementor-lightbox-title=\"Required-Materials\" e-action-hash=\"#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6MjQwMTYsInVybCI6Imh0dHBzOlwvXC90aGVjYWZlcm9ib3QuY29tXC9sZWFyblwvd3AtY29udGVudFwvdXBsb2Fkc1wvMjAyMVwvMDNcL1JlcXVpcmVkLU1hdGVyaWFscy02LmpwZyJ9\">\n\t\t\t\t\t\t\t<img width=\"600\" height=\"500\" src=\"https:\/\/thecaferobot.com\/learn\/wp-content\/uploads\/2021\/03\/Required-Materials-6.jpg\" class=\"attachment-large size-large\" alt=\"\" loading=\"lazy\" \/>\t\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-5d84cb6c elementor-widget elementor-widget-heading\" data-id=\"5d84cb6c\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h3 class=\"elementor-heading-title elementor-size-default\">\u0642\u0637\u0639\u0627\u062a \u0645\u0648\u0631\u062f \u0646\u06cc\u0627\u0632 <\/h3>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-5fe1a323 elementor-widget elementor-widget-html\" data-id=\"5fe1a323\" data-element_type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<div class=\"table-2\">\r\n<table width=\"100%\" class=\"zebra\">\r\n<tbody>\r\n\r\n<tr>\r\n\t<td width=\"70%\">\u0622\u0631\u062f\u0648\u06cc\u0646\u0648 UNO R3\r\n<\/td>\r\n\t<td class=\"center\" width=\"10%\">\u00d7<\/td>\r\n    <td class=\"center\" width=\"10%\">1<\/td>\r\n\t<td class=\"center\" width=\"10%\"><a href=\"https:\/\/thecaferobot.com\/store\/arduino-uno-r3\" target=\"_blank\"><i class=\"fa fa-shopping-cart\" style=\"\"><\/i><\/a><\/td>\r\n<\/tr>\r\n<tr>\r\n\t<td width=\"70%\">\u0645\u0627\u0698\u0648\u0644 \u0628\u0644\u0648\u062a\u0648\u062b ADafruit Bluefruit LE SPI Friend \r\n<\/td>\r\n\t<td class=\"center\" width=\"10%\">\u00d7<\/td>\r\n    <td class=\"center\" width=\"10%\">1<\/td>\r\n\t<td class=\"center\" width=\"10%\"><a href=\"https:\/\/thecaferobot.com\/store\/adafruit-bluefruit-le-spi-friend-bluetooth-low-energy-ble\" target=\"_blank\"><i class=\"fa fa-shopping-cart\" style=\"\"><\/i><\/a><\/td>\r\n<\/tr>\r\n<tr>\r\n\t<td width=\"70%\">\u0633\u06cc\u0645 \u062c\u0627\u0645\u067e\u0631 \u0646\u0631\u06cc \u0628\u0647 \u0645\u0627\u062f\u06af\u06cc\r\n<\/td>\r\n\t<td class=\"center\" width=\"10%\">\u00d7<\/td>\r\n    <td class=\"center\" width=\"10%\">1<\/td>\r\n\t<td class=\"center\" width=\"10%\"><a href=\"https:\/\/thecaferobot.com\/store\/female-male-40p-21cm\" target=\"_blank\"><i class=\"fa fa-shopping-cart\" style=\"\"><\/i><\/a><\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n<\/div>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-6867fb10 elementor-widget elementor-widget-heading\" data-id=\"6867fb10\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h3 class=\"elementor-heading-title elementor-size-default\">\u0646\u0631\u0645 \u0627\u0641\u0632\u0627\u0631\u0647\u0627\u06cc \u0645\u0648\u0631\u062f \u0646\u06cc\u0627\u0632<\/h3>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-700cde2c elementor-widget elementor-widget-html\" data-id=\"700cde2c\" data-element_type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<div class=\"table-2\">\r\n<table width=\"100%\" class=\"zebra\">\r\n<tbody>\r\n\r\n<tr>\r\n\t<td width=\"90%\">\u0622\u0631\u062f\u0648\u06cc\u0646\u0648 IDE<\/td>\r\n\t<td class=\"center\" width=\"10%\"><a href=\"https:\/\/www.arduino.cc\/en\/Main\/Software\" target=\"_blank\"><i class=\"fa fa-info\" style=\"\"><\/i><\/a><\/td>\r\n<\/tr>\r\n\r\n\r\n<\/tbody>\r\n<\/table>\r\n<\/div>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-36c8df55 elementor-widget elementor-widget-heading\" data-id=\"36c8df55\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">\u0631\u0627\u0647\u200c\u0627\u0646\u062f\u0627\u0632\u06cc \u0645\u0627\u0698\u0648\u0644 \u0628\u0644\u0648\u062a\u0648\u062b Adafruit Bluefruit LE SPI Friend \u0628\u0627 \u0622\u0631\u062f\u0648\u06cc\u0646\u0648<span style=\"letter-spacing: 0px;\"><\/span><br><\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-5175ae40 elementor-widget elementor-widget-heading\" data-id=\"5175ae40\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h3 class=\"elementor-heading-title elementor-size-default\">\u06af\u0627\u0645 \u0627\u0648\u0644: \u0633\u06cc\u0645 \u0628\u0646\u062f\u06cc<\/h3>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-1df943e elementor-widget elementor-widget-text-editor\" data-id=\"1df943e\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-text-editor elementor-clearfix\">\n\t\t\t\t<p class=\"MsoNormal\" dir=\"RTL\"><span lang=\"AR-SA\" style=\"mso-bidi-font-family: Calibri;\">\u0645\u0637\u0627\u0628\u0642 \u0645\u062f\u0627\u0631 \u0632\u06cc\u0631\u060c \u0645\u0627\u0698\u0648\u0644 \u0631\u0627 \u0628\u0647 \u0622\u0631\u062f\u0648\u06cc\u0646\u0648 \u0648\u0635\u0644 \u06a9\u0646\u06cc\u062f.<\/span><\/p>\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-10dc1987 elementor-widget elementor-widget-image\" data-id=\"10dc1987\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-image\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"https:\/\/thecaferobot.com\/learn\/wp-content\/uploads\/2021\/03\/wire-4.jpg\" data-elementor-open-lightbox=\"yes\" data-elementor-lightbox-title=\"wire\" e-action-hash=\"#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6MjQwMTcsInVybCI6Imh0dHBzOlwvXC90aGVjYWZlcm9ib3QuY29tXC9sZWFyblwvd3AtY29udGVudFwvdXBsb2Fkc1wvMjAyMVwvMDNcL3dpcmUtNC5qcGcifQ%3D%3D\">\n\t\t\t\t\t\t\t<img width=\"800\" height=\"600\" src=\"https:\/\/thecaferobot.com\/learn\/wp-content\/uploads\/2021\/03\/wire-4.jpg\" class=\"attachment-large size-large\" alt=\"\u0633\u06cc\u0645 \u0628\u0646\u062f\u06cc \u0645\u062f\u0627\u0631 \u0627\u062a\u0635\u0627\u0644 ADAFRUIT \u0628\u0647 \u0622\u0631\u062f\u0648\u06cc\u0646\u0648\" loading=\"lazy\" \/>\t\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-33b96c99 elementor-widget elementor-widget-heading\" data-id=\"33b96c99\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h3 class=\"elementor-heading-title elementor-size-default\">\u06af\u0627\u0645 \u062f\u0648\u0645: \u0646\u0635\u0628 \u06a9\u062a\u0627\u0628\u062e\u0627\u0646\u0647<\/h3>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-2b5ef1c1 elementor-widget elementor-widget-text-editor\" data-id=\"2b5ef1c1\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-text-editor elementor-clearfix\">\n\t\t\t\t<p>\u06a9\u062a\u0627\u0628\u062e\u0627\u0646\u0647 \u0632\u06cc\u0631 \u0631\u0627\u00a0 \u0628\u0631 \u0622\u0631\u062f\u0648\u06cc\u0646\u0648\u06cc \u062e\u0648\u062f \u0646\u0635\u0628 \u06a9\u0646\u06cc\u062f.\u00a0<\/p><p><a href=\"https:\/\/learn.adafruit.com\/introducing-the-adafruit-bluefruit-spi-breakout\/software\">https:\/\/learn.adafruit.com\/introducing-the-adafruit-bluefruit-spi-breakout\/software<\/a><\/p>\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<section class=\"elementor-section elementor-inner-section elementor-element elementor-element-57f5e13e elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"57f5e13e\" data-element_type=\"section\">\r\n\t\t\t\r\n\t\t\t\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\r\n\t\t\t\t\t\t\t\t<div class=\"elementor-row\">\r\n\t\t\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-inner-column elementor-element elementor-element-6f11baca\" data-id=\"6f11baca\" data-element_type=\"column\" data-settings=\"{&quot;background_background&quot;:&quot;gradient&quot;}\">\r\n\r\n\t\t\t\t\t<div class=\"elementor-column-wrap elementor-element-populated\">\r\n\t\t\t\t\t\t\t<div class=\"elementor-widget-wrap\">\r\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-6a4b94f4 elementor-view-stacked elementor-widget__width-auto elementor-absolute elementor-shape-circle elementor-widget elementor-widget-icon\" data-id=\"6a4b94f4\" data-element_type=\"widget\" data-settings=\"{&quot;_position&quot;:&quot;absolute&quot;}\" data-widget_type=\"icon.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"elementor-icon-wrapper\">\n\t\t\t<div class=\"elementor-icon\">\n\t\t\t<i aria-hidden=\"true\" class=\"far fa-lightbulb\"><\/i>\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-5379246a elementor-widget elementor-widget-heading\" data-id=\"5379246a\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h5 class=\"elementor-heading-title elementor-size-default\">\u062a\u0648\u062c\u0647<\/h5>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-5f59acf6 elementor-widget elementor-widget-text-editor\" data-id=\"5f59acf6\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-text-editor elementor-clearfix\">\n\t\t\t\t<p>\u0627\u06af\u0631 \u0646\u06cc\u0627\u0632 \u0628\u0647 \u0631\u0627\u0647\u0646\u0645\u0627\u06cc\u06cc \u0628\u06cc\u0634\u062a\u0631 \u0628\u0631\u0627\u06cc \u0646\u0635\u0628 \u06a9\u062a\u0627\u0628\u062e\u0627\u0646\u0647 \u0628\u0631 \u0631\u0648\u06cc \u0622\u0631\u062f\u0648\u06cc\u0646\u0648 \u062f\u0627\u0631\u06cc\u062f\u060c \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u0628\u0647 <a href=\"https:\/\/thecaferobot.com\/learn\/how-to-install-an-arduino-library\/\">\u0622\u0645\u0648\u0632\u0634 \u0646\u0635\u0628 \u06a9\u062a\u0627\u0628\u062e\u0627\u0646\u0647 \u0628\u0631 \u0622\u0631\u062f\u0648\u06cc\u0646\u0648<\/a> \u0645\u0631\u0627\u062c\u0639\u0647 \u06a9\u0646\u06cc\u062f.<\/p>\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t<\/div>\r\n\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t<\/section>\r\n\t\t\t\t<div class=\"elementor-element elementor-element-2fe9ee0e elementor-widget elementor-widget-heading\" data-id=\"2fe9ee0e\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h3 class=\"elementor-heading-title elementor-size-default\">\u06af\u0627\u0645 \u0633\u0648\u0645: \u06a9\u062f<\/h3>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-3ed45fc1 elementor-widget elementor-widget-text-editor\" data-id=\"3ed45fc1\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-text-editor elementor-clearfix\">\n\t\t\t\t<p>\u06a9\u062f \u0632\u06cc\u0631 \u0631\u0627 \u0631\u0648\u06cc \u0628\u0631\u062f \u0622\u0631\u062f\u0648\u06cc\u0646\u0648\u06cc \u062e\u0648\u062f \u0622\u067e\u0644\u0648\u062f \u06a9\u0646\u06cc\u062f.<\/p>\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-6eeb10e8 elementor-widget elementor-widget-html\" data-id=\"6eeb10e8\" data-element_type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<pre class=\"line-numbers lang-arduino\"><code>    \/*********************************************************************\r\n This is an example for our nRF51822 based Bluefruit LE modules\r\n\r\n Pick one up today in the adafruit shop!\r\n\r\n Adafruit invests time and resources providing this open source code,\r\n please support Adafruit and open-source hardware by purchasing\r\n products from Adafruit!\r\n\r\n MIT license, check LICENSE for more information\r\n All text above, and the splash screen below must be included in\r\n any redistribution\r\n*********************************************************************\/\r\n\r\n#include &lt;Arduino.h&gt;\r\n#include &lt;SPI.h&gt;\r\n#include &quot;Adafruit_BLE.h&quot;\r\n#include &quot;Adafruit_BluefruitLE_SPI.h&quot;\r\n#include &quot;Adafruit_BluefruitLE_UART.h&quot;\r\n\r\n#include &quot;BluefruitConfig.h&quot;\r\n\r\n#if SOFTWARE_SERIAL_AVAILABLE\r\n  #include &lt;SoftwareSerial.h&gt;\r\n#endif\r\n\r\n\/*=========================================================================\r\n    APPLICATION SETTINGS\r\n\r\n&acirc;&euro;&sbquo; &acirc;&euro;&sbquo; FACTORYRESET_ENABLE&acirc;&euro;&sbquo;   &acirc;&euro;&sbquo;  Perform a factory reset when running this sketch\r\n&acirc;&euro;&sbquo; &acirc;&euro;&sbquo;\r\n&acirc;&euro;&sbquo; &acirc;&euro;&sbquo;                           Enabling this will put your Bluefruit LE module\r\n                              in a 'known good' state and clear any config\r\n                              data set in previous sketches or projects, so\r\n&acirc;&euro;&sbquo; &acirc;&euro;&sbquo;                           running this at least once is a good idea.\r\n&acirc;&euro;&sbquo; &acirc;&euro;&sbquo;\r\n&acirc;&euro;&sbquo; &acirc;&euro;&sbquo;                           When deploying your project, however, you will\r\n                              want to disable factory reset by setting this\r\n                              value to 0.&acirc;&euro;&sbquo; If you are making changes to your\r\n&acirc;&euro;&sbquo; &acirc;&euro;&sbquo;                           Bluefruit LE device via AT commands, and those\r\n                              changes aren't persisting across resets, this\r\n                              is the reason why.&acirc;&euro;&sbquo; Factory reset will erase\r\n                              the non-volatile memory where config data is\r\n                              stored, setting it back to factory default\r\n                              values.\r\n&acirc;&euro;&sbquo; &acirc;&euro;&sbquo; &acirc;&euro;&sbquo; &acirc;&euro;&sbquo;\r\n&acirc;&euro;&sbquo; &acirc;&euro;&sbquo;                           Some sketches that require you to bond to a\r\n                              central device (HID mouse, keyboard, etc.)\r\n                              won't work at all with this feature enabled\r\n                              since the factory reset will clear all of the\r\n                              bonding data stored on the chip, meaning the\r\n                              central device won't be able to reconnect.\r\n    MINIMUM_FIRMWARE_VERSION  Minimum firmware version to have some new features\r\n    MODE_LED_BEHAVIOUR        LED activity, valid options are\r\n                              &quot;DISABLE&quot; or &quot;MODE&quot; or &quot;BLEUART&quot; or\r\n                              &quot;HWUART&quot;  or &quot;SPI&quot;  or &quot;MANUAL&quot;\r\n    -----------------------------------------------------------------------*\/\r\n    #define FACTORYRESET_ENABLE         1\r\n    #define MINIMUM_FIRMWARE_VERSION    &quot;0.6.6&quot;\r\n    #define MODE_LED_BEHAVIOUR          &quot;MODE&quot;\r\n\/*=========================================================================*\/\r\n\r\n\/\/ Create the bluefruit object, either software serial...uncomment these lines\r\n\/*\r\nSoftwareSerial bluefruitSS = SoftwareSerial(BLUEFRUIT_SWUART_TXD_PIN, BLUEFRUIT_SWUART_RXD_PIN);\r\n\r\nAdafruit_BluefruitLE_UART ble(bluefruitSS, BLUEFRUIT_UART_MODE_PIN,\r\n                      BLUEFRUIT_UART_CTS_PIN, BLUEFRUIT_UART_RTS_PIN);\r\n*\/\r\n\r\n\/* ...or hardware serial, which does not need the RTS\/CTS pins. Uncomment this line *\/\r\n\/\/ Adafruit_BluefruitLE_UART ble(Serial1, BLUEFRUIT_UART_MODE_PIN);\r\n\r\n\/* ...hardware SPI, using SCK\/MOSI\/MISO hardware SPI pins and then user selected CS\/IRQ\/RST *\/\r\nAdafruit_BluefruitLE_SPI ble(BLUEFRUIT_SPI_CS, BLUEFRUIT_SPI_IRQ, BLUEFRUIT_SPI_RST);\r\n\r\n\/* ...software SPI, using SCK\/MOSI\/MISO user-defined SPI pins and then user selected CS\/IRQ\/RST *\/\r\n\/\/Adafruit_BluefruitLE_SPI ble(BLUEFRUIT_SPI_SCK, BLUEFRUIT_SPI_MISO,\r\n\/\/                             BLUEFRUIT_SPI_MOSI, BLUEFRUIT_SPI_CS,\r\n\/\/                             BLUEFRUIT_SPI_IRQ, BLUEFRUIT_SPI_RST);\r\n\r\n\r\n\/\/ A small helper\r\nvoid error(const __FlashStringHelper*err) {\r\n  Serial.println(err);\r\n  while (1);\r\n}\r\n\r\n\/**************************************************************************\/\r\n\/*!\r\n    @brief  Sets up the HW an the BLE module (this function is called\r\n            automatically on startup)\r\n*\/\r\n\/**************************************************************************\/\r\nvoid setup(void)\r\n{\r\n  while (!Serial);  \/\/ required for Flora &amp; Micro\r\n  delay(500);\r\n\r\n  Serial.begin(115200);\r\n  Serial.println(F(&quot;Adafruit Bluefruit Command Mode Example&quot;));\r\n  Serial.println(F(&quot;---------------------------------------&quot;));\r\n\r\n  \/* Initialise the module *\/\r\n  Serial.print(F(&quot;Initialising the Bluefruit LE module: &quot;));\r\n\r\n  if ( !ble.begin(VERBOSE_MODE) )\r\n  {\r\n    error(F(&quot;Couldn't find Bluefruit, make sure it's in CoMmanD mode &amp; check wiring?&quot;));\r\n  }\r\n  Serial.println( F(&quot;OK!&quot;) );\r\n\r\n  if ( FACTORYRESET_ENABLE )\r\n  {\r\n    \/* Perform a factory reset to make sure everything is in a known state *\/\r\n    Serial.println(F(&quot;Performing a factory reset: &quot;));\r\n    if ( ! ble.factoryReset() ){\r\n      error(F(&quot;Couldn't factory reset&quot;));\r\n    }\r\n  }\r\n\r\n  \/* Disable command echo from Bluefruit *\/\r\n  ble.echo(false);\r\n\r\n  Serial.println(&quot;Requesting Bluefruit info:&quot;);\r\n  \/* Print Bluefruit information *\/\r\n  ble.info();\r\n\r\n  Serial.println(F(&quot;Please use Adafruit Bluefruit LE app to connect in UART mode&quot;));\r\n  Serial.println(F(&quot;Then Enter characters to send to Bluefruit&quot;));\r\n  Serial.println();\r\n\r\n  ble.verbose(false);  \/\/ debug info is a little annoying after this point!\r\n\r\n  \/* Wait for connection *\/\r\n  while (! ble.isConnected()) {\r\n      delay(500);\r\n  }\r\n\r\n  \/\/ LED Activity command is only supported from 0.6.6\r\n  if ( ble.isVersionAtLeast(MINIMUM_FIRMWARE_VERSION) )\r\n  {\r\n    \/\/ Change Mode LED Activity\r\n    Serial.println(F(&quot;******************************&quot;));\r\n    Serial.println(F(&quot;Change LED activity to &quot; MODE_LED_BEHAVIOUR));\r\n    ble.sendCommandCheckOK(&quot;AT+HWModeLED=&quot; MODE_LED_BEHAVIOUR);\r\n    Serial.println(F(&quot;******************************&quot;));\r\n  }\r\n}\r\n\r\n\/**************************************************************************\/\r\n\/*!\r\n    @brief  Constantly poll for new command or response data\r\n*\/\r\n\/**************************************************************************\/\r\nvoid loop(void)\r\n{\r\n  \/\/ Check for user input\r\n  char inputs[BUFSIZE+1];\r\n\r\n  if ( getUserInput(inputs, BUFSIZE) )\r\n  {\r\n    \/\/ Send characters to Bluefruit\r\n    Serial.print(&quot;[Send] &quot;);\r\n    Serial.println(inputs);\r\n\r\n    ble.print(&quot;AT+BLEUARTTX=&quot;);\r\n    ble.println(inputs);\r\n\r\n    \/\/ check response stastus\r\n    if (! ble.waitForOK() ) {\r\n      Serial.println(F(&quot;Failed to send?&quot;));\r\n    }\r\n  }\r\n\r\n  \/\/ Check for incoming characters from Bluefruit\r\n  ble.println(&quot;AT+BLEUARTRX&quot;);\r\n  ble.readline();\r\n  if (strcmp(ble.buffer, &quot;OK&quot;) == 0) {\r\n    \/\/ no data\r\n    return;\r\n  }\r\n  \/\/ Some data was found, its in the buffer\r\n  Serial.print(F(&quot;[Recv] &quot;)); Serial.println(ble.buffer);\r\n  ble.waitForOK();\r\n}\r\n\r\n\/**************************************************************************\/\r\n\/*!\r\n    @brief  Checks for user input (via the Serial Monitor)\r\n*\/\r\n\/**************************************************************************\/\r\nbool getUserInput(char buffer[], uint8_t maxSize)\r\n{\r\n  \/\/ timeout in 100 milliseconds\r\n  TimeoutTimer timeout(100);\r\n\r\n  memset(buffer, 0, maxSize);\r\n  while( (!Serial.available()) &amp;&amp; !timeout.expired() ) { delay(1); }\r\n\r\n  if ( timeout.expired() ) return false;\r\n\r\n  delay(2);\r\n  uint8_t count=0;\r\n  do\r\n  {\r\n    count += Serial.readBytes(buffer+count, maxSize);\r\n    delay(2);\r\n  } while( (count &lt; maxSize) &amp;&amp; (Serial.available()) );\r\n\r\n  return true;\r\n}\r\n<\/code><\/pre>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-744759fd elementor-widget elementor-widget-text-editor\" data-id=\"744759fd\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-text-editor elementor-clearfix\">\n\t\t\t\t<p>\u0627\u06cc\u0646 \u06a9\u062f \u062c\u0647\u062a \u062a\u0633\u062a \u0627\u0631\u062a\u0628\u0627\u0637 \u0645\u0627\u0628\u06cc\u0646 \u0633\u0631\u06cc\u0627\u0644 \u0645\u0627\u0646\u06cc\u062a\u0648\u0631 \u0622\u0631\u062f\u0648\u06cc\u0646\u0648 \u0648 \u062f\u0633\u062a\u06af\u0627\u0647\u06cc \u06a9\u0647 \u0628\u0647 \u0645\u0627\u0698\u0648\u0644 \u0628\u0644\u0648\u062a\u0648\u062b \u0645\u062a\u0635\u0644 \u0634\u062f\u0647 \u0627\u0633\u062a\u060c \u0645\u06cc\u200c\u0628\u0627\u0634\u062f.<\/p>\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t<\/div>\r\n\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t<\/section>\r\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>\u0648\u06cc\u0698\u06af\u06cc \u0647\u0627\u06cc \u0645\u0627\u0698\u0648\u0644 \u0628\u0644\u0648\u062a\u0648\u062b Adafruit Bluefruit LE SPI Friend \u0645\u0627\u0698\u0648\u0644\u200c\u0647\u0627\u06cc \u0628\u0644\u0648\u062a\u0648\u062b \u0627\u0632 \u062c\u0645\u0644\u0647 \u0645\u0627\u0698\u0648\u0644\u200c\u0647\u0627\u06cc \u0627\u0631\u062a\u0628\u0627\u0637 \u0628\u06cc\u200c\u0633\u06cc\u0645 \u0647\u0633\u062a\u0646\u062f \u06a9\u0647 \u0645\u06cc\u200c\u062a\u0648\u0627\u0646 \u0622\u0646\u200c\u0647\u0627 \u0631\u0627 \u0628\u0647 \u0635\u0648\u0631\u062a \u0633\u0631\u06cc\u0627\u0644 \u06cc\u0627 SPI \u0628\u0647 \u067e\u0631\u0648\u0698\u0647 \u0627\u0636\u0627\u0641\u0647 \u06a9\u0631\u062f. \u0645\u0632\u06cc\u062a \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0645\u0627\u0698\u0648\u0644\u200c\u0647\u0627\u06cc \u0628\u0644\u0648\u062a\u0648\u062b \u0631\u0627\u0647\u200c\u0627\u0646\u062f\u0627\u0632\u06cc \u0631\u0627\u062d\u062a \u0648 \u0622\u0633\u0627\u0646 \u0627\u06cc\u0646 \u0645\u0627\u0698\u0648\u0644\u200c\u0647\u0627 \u0645\u06cc\u200c\u0628\u0627\u0634\u062f. \u0645\u0627\u0698\u0648\u0644 Adafruit Bluefruit&nbsp;LE&nbsp;SPI Friend \u0627\u0632 \u067e\u0631\u0648\u062a\u06a9\u0644 SPI \u0628\u0631\u0627\u06cc \u0627\u0631\u062a\u0628\u0627\u0637 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc\u200c\u06a9\u0646\u062f. \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 [&hellip;]<\/p>\n","protected":false},"author":16,"featured_media":24008,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[938],"tags":[4605],"platform":[1071],"bytype":[1075],"difficulty":[1077],"related_products":[4500],"featured_image_src":{"landsacpe":["https:\/\/thecaferobot.com\/learn\/wp-content\/uploads\/2021\/03\/Demo-Arduino-6.jpg",1200,900,false],"list":["https:\/\/thecaferobot.com\/learn\/wp-content\/uploads\/2021\/03\/Demo-Arduino-6.jpg",1200,900,false],"medium":["https:\/\/thecaferobot.com\/learn\/wp-content\/uploads\/2021\/03\/Demo-Arduino-6.jpg",533,400,false],"full":["https:\/\/thecaferobot.com\/learn\/wp-content\/uploads\/2021\/03\/Demo-Arduino-6.jpg",1200,900,false]},"_links":{"self":[{"href":"https:\/\/thecaferobot.com\/learn\/wp-json\/wp\/v2\/posts\/24007"}],"collection":[{"href":"https:\/\/thecaferobot.com\/learn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thecaferobot.com\/learn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thecaferobot.com\/learn\/wp-json\/wp\/v2\/users\/16"}],"replies":[{"embeddable":true,"href":"https:\/\/thecaferobot.com\/learn\/wp-json\/wp\/v2\/comments?post=24007"}],"version-history":[{"count":13,"href":"https:\/\/thecaferobot.com\/learn\/wp-json\/wp\/v2\/posts\/24007\/revisions"}],"predecessor-version":[{"id":24142,"href":"https:\/\/thecaferobot.com\/learn\/wp-json\/wp\/v2\/posts\/24007\/revisions\/24142"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/thecaferobot.com\/learn\/wp-json\/wp\/v2\/media\/24008"}],"wp:attachment":[{"href":"https:\/\/thecaferobot.com\/learn\/wp-json\/wp\/v2\/media?parent=24007"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thecaferobot.com\/learn\/wp-json\/wp\/v2\/categories?post=24007"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thecaferobot.com\/learn\/wp-json\/wp\/v2\/tags?post=24007"},{"taxonomy":"platform","embeddable":true,"href":"https:\/\/thecaferobot.com\/learn\/wp-json\/wp\/v2\/platform?post=24007"},{"taxonomy":"bytype","embeddable":true,"href":"https:\/\/thecaferobot.com\/learn\/wp-json\/wp\/v2\/bytype?post=24007"},{"taxonomy":"difficulty","embeddable":true,"href":"https:\/\/thecaferobot.com\/learn\/wp-json\/wp\/v2\/difficulty?post=24007"},{"taxonomy":"related_products","embeddable":true,"href":"https:\/\/thecaferobot.com\/learn\/wp-json\/wp\/v2\/related_products?post=24007"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}