{"id":5806,"date":"2024-03-01T12:23:09","date_gmt":"2024-03-01T11:23:09","guid":{"rendered":"https:\/\/forbot.com\/uncategorized-cs\/kurz-arduino-uroven-ii-5-klavesnice-vlastni-alarmovy-system\/"},"modified":"2024-09-06T23:19:38","modified_gmt":"2024-09-06T21:19:38","slug":"kurz-arduino-uroven-ii-5-klavesnice-vlastni-alarmovy-system","status":"publish","type":"post","link":"https:\/\/forbot.com\/cs\/kurz-arduino-uroven-2\/kurz-arduino-uroven-ii-5-klavesnice-vlastni-alarmovy-system\/","title":{"rendered":"Kurz Arduino \u00farove\u0148 II &#8211; #5 &#8211; Kl\u00e1vesnice, vlastn\u00ed alarmov\u00fd syst\u00e9m"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"5806\" class=\"elementor elementor-5806 elementor-4613\" data-elementor-post-type=\"post\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-2c76d31e elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"2c76d31e\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-40614c22\" data-id=\"40614c22\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-37aa6bbd elementor-widget elementor-widget-image\" data-id=\"37aa6bbd\" data-element_type=\"widget\" data-e-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\t\t\t\t\t\t\t<img fetchpriority=\"high\" decoding=\"async\" width=\"788\" height=\"533\" src=\"https:\/\/forbot.com\/wp-content\/uploads\/2024\/03\/ikonaArd2_5.jpg\" class=\"attachment-large size-large wp-image-6741\" alt=\"\" srcset=\"https:\/\/forbot.com\/wp-content\/uploads\/2024\/03\/ikonaArd2_5.jpg 788w, https:\/\/forbot.com\/wp-content\/uploads\/2024\/03\/ikonaArd2_5-300x203.jpg 300w, https:\/\/forbot.com\/wp-content\/uploads\/2024\/03\/ikonaArd2_5-768x519.jpg 768w\" sizes=\"(max-width: 788px) 100vw, 788px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t<div class=\"elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-3bec63da\" data-id=\"3bec63da\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-595e686f elementor-widget elementor-widget-text-editor\" data-id=\"595e686f\" data-element_type=\"widget\" data-e-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\t<\/p>\n<p>B\u011bhem cvi\u010den\u00ed v t\u00e9to \u010d\u00e1sti kurzu Arduino se pod\u00edv\u00e1me na nejvhodn\u011bj\u0161\u00ed zp\u016fsob p\u0159ipojen\u00ed kl\u00e1vesnice k na\u0161emu za\u0159\u00edzen\u00ed v praxi.<\/p>\n<p>Pomoc\u00ed v\u0161ech dosud probran\u00fdch komponent sestav\u00edme <strong>popla\u0161n\u00e9 centrum<\/strong>, jeho\u017e hlavn\u00edm mozkem bude Arduino.<\/p>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-510703f3 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"510703f3\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-79d62f4e\" data-id=\"79d62f4e\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-inner-section elementor-element elementor-element-7b7299bb elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"7b7299bb\" data-element_type=\"section\" data-e-type=\"section\" id=\"menu-nav-post-top-wrapper\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-33 elementor-inner-column elementor-element elementor-element-571de3a8\" data-id=\"571de3a8\" data-element_type=\"column\" data-e-type=\"column\" id=\"menu-nav-prev-col-top\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-7b581232 elementor-align-center elementor-widget__width-initial elementor-widget elementor-widget-button\" data-id=\"7b581232\" data-element_type=\"widget\" data-e-type=\"widget\" id=\"menu-prev-btn-top\" data-widget_type=\"button.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<div class=\"elementor-button-wrapper\">\n\t\t\t\t\t<a class=\"elementor-button elementor-button-link elementor-size-sm\" href=\"https:\/\/forbot.com\/cs\/kurz-arduino\/kurz-arduino-uroven-ii-4-preruseni-jazyckovy-spinac-pir-senzor\/\">\n\t\t\t\t\t\t<span class=\"elementor-button-content-wrapper\">\n\t\t\t\t\t\t\t\t\t<span class=\"elementor-button-text\">&lt;&lt; P\u0159edchoz\u00ed \u010d\u00e1st<\/span>\n\t\t\t\t\t<\/span>\n\t\t\t\t\t<\/a>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t<div class=\"elementor-column elementor-col-33 elementor-inner-column elementor-element elementor-element-6de66709\" data-id=\"6de66709\" data-element_type=\"column\" data-e-type=\"column\" id=\"menu-nav-middle-col-top\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-2df93726 elementor-align-center elementor-widget__width-initial elementor-widget elementor-widget-button\" data-id=\"2df93726\" data-element_type=\"widget\" data-e-type=\"widget\" id=\"menu-nav-btn-top\" data-widget_type=\"button.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<div class=\"elementor-button-wrapper\">\n\t\t\t\t\t<a class=\"elementor-button elementor-size-sm\" role=\"button\">\n\t\t\t\t\t\t<span class=\"elementor-button-content-wrapper\">\n\t\t\t\t\t\t\t\t\t<span class=\"elementor-button-text\">Navigace v kurzu \u25bc <\/span>\n\t\t\t\t\t<\/span>\n\t\t\t\t\t<\/a>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t<div class=\"elementor-column elementor-col-33 elementor-inner-column elementor-element elementor-element-6344438c\" data-id=\"6344438c\" data-element_type=\"column\" data-e-type=\"column\" id=\"menu-nav-next-col-top\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-51d13589 elementor-align-center elementor-widget__width-initial elementor-widget elementor-widget-button\" data-id=\"51d13589\" data-element_type=\"widget\" data-e-type=\"widget\" id=\"menu-next-btn-top\" data-widget_type=\"button.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<div class=\"elementor-button-wrapper\">\n\t\t\t\t\t<a class=\"elementor-button elementor-button-link elementor-size-sm\" href=\"\/cs\/kurz-arduino-uroven-2\/kurz-arduino-uroven-ii-6-7-segmentove-displeje\/\">\n\t\t\t\t\t\t<span class=\"elementor-button-content-wrapper\">\n\t\t\t\t\t\t\t\t\t<span class=\"elementor-button-text\">Dal\u0161\u00ed \u010d\u00e1st &gt;&gt;<\/span>\n\t\t\t\t\t<\/span>\n\t\t\t\t\t<\/a>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<div class=\"elementor-element elementor-element-139828d0 elementor-nav-menu__text-align-aside elementor-widget elementor-widget-nav-menu\" data-id=\"139828d0\" data-element_type=\"widget\" data-e-type=\"widget\" id=\"menu-nav-post-top\" data-settings=\"{&quot;layout&quot;:&quot;dropdown&quot;,&quot;submenu_icon&quot;:{&quot;value&quot;:&quot;&lt;i class=\\&quot;\\&quot; aria-hidden=\\&quot;true\\&quot;&gt;&lt;\\\/i&gt;&quot;,&quot;library&quot;:&quot;&quot;}}\" data-widget_type=\"nav-menu.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t<nav class=\"elementor-nav-menu--dropdown elementor-nav-menu__container\" aria-hidden=\"true\">\n\t\t\t\t<ul id=\"menu-2-139828d0\" class=\"elementor-nav-menu\"><li class=\"menu-item menu-item-type-post_type menu-item-object-post menu-item-10167\"><a href=\"https:\/\/forbot.com\/de\/arduino-kurs-stufe-2\/arduino-kurs-stufe-ii-1-einfuehrung-inhaltsverzeichnis\/\" class=\"elementor-item menu-link\" tabindex=\"-1\">Kurz Arduino \u00farove\u0148 II &#8211; #1 &#8211; \u00davod, Obsah<\/a><\/li>\n<li class=\"menu-item menu-item-type-post_type menu-item-object-post menu-item-10166\"><a href=\"https:\/\/forbot.com\/de\/arduino-kurs-stufe-2\/arduino-kurs-ii-2-rgb-leds-traditionell-und-ws2812\/\" class=\"elementor-item menu-link\" tabindex=\"-1\">Kurz Arduino \u00farove\u0148 II &#8211; #2 &#8211; RGB LED diody (tradi\u010dn\u00ed a WS2812)<\/a><\/li>\n<li class=\"menu-item menu-item-type-post_type menu-item-object-post menu-item-10165\"><a href=\"https:\/\/forbot.com\/de\/arduino-kurs-stufe-2\/arduino-kurs-ii-3-alarmsirene-mosfet-in-der-praxis\/\" class=\"elementor-item menu-link\" tabindex=\"-1\">Kurz Arduino \u00farove\u0148 II &#8211; #3 &#8211; Poplachov\u00e1 sir\u00e9na, MOSFET v praxi<\/a><\/li>\n<li class=\"menu-item menu-item-type-post_type menu-item-object-post menu-item-10164\"><a href=\"https:\/\/forbot.com\/de\/arduino-kurs-stufe-2\/arduino-ii-kurs-4-unterbrechungen-reed-schalter-pir-sensor\/\" class=\"elementor-item menu-link\" tabindex=\"-1\">Kurz Arduino \u00farove\u0148 II &#8211; #4 &#8211; P\u0159eru\u0161en\u00ed, jaz\u00fd\u010dkov\u00fd sp\u00edna\u010d, PIR senzor<\/a><\/li>\n<li class=\"menu-item menu-item-type-post_type menu-item-object-post menu-item-10163\"><a href=\"https:\/\/forbot.com\/de\/arduino-kurs-stufe-2\/arduino-ii-kurs-5-tastatur-eigene-alarmanlage\/\" class=\"elementor-item menu-link\" tabindex=\"-1\">Kurz Arduino \u00farove\u0148 II &#8211; #5 &#8211; Kl\u00e1vesnice, vlastn\u00ed alarmov\u00fd syst\u00e9m<\/a><\/li>\n<li class=\"menu-item menu-item-type-post_type menu-item-object-post menu-item-10162\"><a href=\"https:\/\/forbot.com\/de\/arduino-kurs-stufe-2\/arduino-ii-kurs-6-7-segment-anzeigen\/\" class=\"elementor-item menu-link\" tabindex=\"-1\">Kurz Arduino \u00farove\u0148 II &#8211; #6 &#8211; 7-segmentov\u00e9 displeje<\/a><\/li>\n<li class=\"menu-item menu-item-type-post_type menu-item-object-post menu-item-10161\"><a href=\"https:\/\/forbot.com\/de\/arduino-kurs-stufe-2\/arduino-kurs-stufe-ii-7-analoge-und-digitale-thermometer\/\" class=\"elementor-item menu-link\" tabindex=\"-1\">Kurz Arduino \u00farove\u0148 II &#8211; #7 &#8211; analogov\u00e9 a digit\u00e1ln\u00ed teplom\u011bry<\/a><\/li>\n<li class=\"menu-item menu-item-type-post_type menu-item-object-post menu-item-10160\"><a href=\"https:\/\/forbot.com\/de\/arduino-kurs-stufe-2\/arduino-kurs-stufe-ii-8-digitaler-feuchtigkeitssensor-dht11\/\" class=\"elementor-item menu-link\" tabindex=\"-1\">Kurz Arduino \u00farove\u0148 II &#8211; #8 &#8211; Digit\u00e1ln\u00ed senzor vlhkosti (DHT11)<\/a><\/li>\n<li class=\"menu-item menu-item-type-post_type menu-item-object-post menu-item-10159\"><a href=\"https:\/\/forbot.com\/de\/arduino-kurs-stufe-2\/arduino-kurs-stufe-ii-9-multitasking-verzoegerungen-mit-millis\/\" class=\"elementor-item menu-link\" tabindex=\"-1\">Kurz Arduino \u00farove\u0148 II &#8211; #9 &#8211; Multitasking, zpo\u017ed\u011bn\u00ed pomoc\u00ed funkce millis()<\/a><\/li>\n<\/ul>\t\t\t<\/nav>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-1cf5a07f custom-alert-box elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"1cf5a07f\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-7aaa42b1\" data-id=\"7aaa42b1\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-inner-section elementor-element elementor-element-f17e115 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"f17e115\" data-element_type=\"section\" data-e-type=\"section\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-inner-column elementor-element elementor-element-3b0e4f11 blue-box-bestellen-ein-set\" data-id=\"3b0e4f11\" data-element_type=\"column\" data-e-type=\"column\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-1d85c502 elementor-widget elementor-widget-text-editor\" data-id=\"1d85c502\" data-element_type=\"widget\" data-e-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\t<p><i class=\"fas fa-shopping-cart fa-lg\" style=\"color: #004085;\"><\/i> Objednejte si sadu prvk\u016f a za\u010dn\u011bte se u\u010dit v praxi! <a href=\"https:\/\/botland.cz\/startovaci-sady-pro-arduino\/23721-forbot-sada-arduino-urovne-2-5904422384296.html\"><strong>Kliknut\u00edm sem p\u0159ejdete do obchodu &gt;&gt;<\/strong><\/a><\/p>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-5b216ab elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"5b216ab\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-a9f85db\" data-id=\"a9f85db\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-caed8e9 elementor-widget elementor-widget-text-editor\" data-id=\"caed8e9\" data-element_type=\"widget\" data-e-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\t<p>Na \u00favod bych r\u00e1d dodal, \u017ee tento \u010dl\u00e1nek &#8222;vpa\u0161ov\u00e1v\u00e1&#8220; dal\u0161\u00ed novinku. P\u0159i programov\u00e1n\u00ed poplachov\u00e9ho centra v\u00e1m uk\u00e1\u017eu, jak se vypo\u0159\u00e1dat s programov\u00e1n\u00edm za\u0159\u00edzen\u00ed, kter\u00e9 mus\u00ed prov\u00e1d\u011bt celou \u0159adu operac\u00ed. Pou\u017eit\u00edm <strong>stavov\u00e9ho automatu<\/strong> m\u016f\u017eeme k\u00f3d v\u00fdrazn\u011b zjednodu\u0161it a vyhnout se vno\u0159en\u00fdm podm\u00ednk\u00e1m. Zjist\u00edte tak\u00e9, \u017ee se spr\u00e1vn\u00fdm p\u0159\u00edstupem budete moci pracovat bez <a href=\"https:\/\/forbot.com\/cs\/kurz-arduino\/kurz-arduino-uroven-ii-4-preruseni-jazyckovy-spinac-pir-senzor\/\"><span style=\"text-decoration: underline;\">p\u0159eru\u0161en\u00ed<\/span><\/a>m\u016f\u017eete vytvo\u0159it dob\u0159e funguj\u00edc\u00ed program.<\/p>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-7305750 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"7305750\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-dbb96bd\" data-id=\"dbb96bd\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-7df76ac elementor-widget elementor-widget-heading\" data-id=\"7df76ac\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Maticov\u00e1 kl\u00e1vesnice pro Arduino<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-1c22137 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"1c22137\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-fd2abe7\" data-id=\"fd2abe7\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-1e1c9cb elementor-widget elementor-widget-text-editor\" data-id=\"1e1c9cb\" data-element_type=\"widget\" data-e-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\t<p>P\u0159ipojen\u00ed ka\u017ed\u00e9ho tla\u010d\u00edtka k Arduino n\u00e1s zat\u00edm st\u00e1lo jeden vstup. S jedn\u00edm, dv\u011bma nebo t\u0159emi tla\u010d\u00edtky to nebyl probl\u00e9m. N\u011bkdy v\u0161ak chceme m\u00edt mo\u017enost zadat do obvodu v\u00edce \u00fadaj\u016f. Nap\u0159\u00edklad zad\u00e1n\u00ed PIN k\u00f3du pro alarm vy\u017eaduje nejm\u00e9n\u011b 10 tla\u010d\u00edtek (\u010d\u00edslice 0 a\u017e 9) a v ide\u00e1ln\u00edm p\u0159\u00edpad\u011b bychom cht\u011bli m\u00edt k dispozici je\u0161t\u011b n\u011bkolik dal\u0161\u00edch tla\u010d\u00edtek (nap\u0159. pro zru\u0161en\u00ed nebo potvrzen\u00ed operac\u00ed).<\/p>\n<p>Jednodu\u0161e \u0159e\u010deno &#8211; pot\u0159ebujeme numerickou kl\u00e1vesnici:<\/p>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-4508042 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"4508042\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-a8536d8\" data-id=\"a8536d8\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-bc325ef elementor-widget elementor-widget-image\" data-id=\"bc325ef\" data-element_type=\"widget\" data-e-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\t\t\t\t<figure class=\"wp-caption\">\n\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" width=\"300\" height=\"200\" src=\"https:\/\/forbot.com\/wp-content\/uploads\/2024\/03\/klawiatura_numeryczna-300x200.jpg\" class=\"attachment-medium size-medium wp-image-4620\" alt=\"\" srcset=\"https:\/\/forbot.com\/wp-content\/uploads\/2024\/03\/klawiatura_numeryczna-300x200.jpg 300w, https:\/\/forbot.com\/wp-content\/uploads\/2024\/03\/klawiatura_numeryczna.jpg 500w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/>\t\t\t\t\t\t\t\t\t\t\t<figcaption class=\"widget-image-caption wp-caption-text\">P\u0159\u00edklad numerick\u00e9 kl\u00e1vesnice.<\/figcaption>\n\t\t\t\t\t\t\t\t\t\t<\/figure>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-3dd76bf elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"3dd76bf\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-0842796\" data-id=\"0842796\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-bab7c0d elementor-widget elementor-widget-text-editor\" data-id=\"bab7c0d\" data-element_type=\"widget\" data-e-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\t<p>Samoz\u0159ejm\u011b by bylo nepohodln\u00e9 a n\u011bkdy i nemo\u017en\u00e9 p\u0159ipojit ka\u017edou kl\u00e1vesu na vlastn\u00ed pin (zejm\u00e9na u v\u011bt\u0161\u00edch kl\u00e1vesnic). Na\u0161t\u011bst\u00ed existuje chytr\u00e9 \u0159e\u0161en\u00ed, jak <strong>v\u00fdrazn\u011b sn\u00ed\u017eit po\u010det pot\u0159ebn\u00fdch pin\u016f<\/strong>.<\/p>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-ec0c071 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"ec0c071\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-33fd20c\" data-id=\"33fd20c\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-7f15a21 elementor-widget elementor-widget-heading\" data-id=\"7f15a21\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Struktura maticov\u00e9 kl\u00e1vesnice<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-a78f173 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"a78f173\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-43a3793\" data-id=\"43a3793\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-e9b08e2 elementor-widget elementor-widget-image\" data-id=\"e9b08e2\" data-element_type=\"widget\" data-e-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\t\t\t\t<figure class=\"wp-caption\">\n\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" width=\"437\" height=\"329\" src=\"https:\/\/forbot.com\/wp-content\/uploads\/2024\/03\/klawiatura_numeryczna_wnetrze.jpg\" class=\"attachment-large size-large wp-image-4623\" alt=\"\" srcset=\"https:\/\/forbot.com\/wp-content\/uploads\/2024\/03\/klawiatura_numeryczna_wnetrze.jpg 437w, https:\/\/forbot.com\/wp-content\/uploads\/2024\/03\/klawiatura_numeryczna_wnetrze-300x226.jpg 300w\" sizes=\"(max-width: 437px) 100vw, 437px\" \/>\t\t\t\t\t\t\t\t\t\t\t<figcaption class=\"widget-image-caption wp-caption-text\">P\u0159ipojen\u00ed intern\u00edho sign\u00e1lu v kl\u00e1vesnici.<\/figcaption>\n\t\t\t\t\t\t\t\t\t\t<\/figure>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-7c9c236c custom-alert-box elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"7c9c236c\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-3d94b861\" data-id=\"3d94b861\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-inner-section elementor-element elementor-element-3e1d5cb2 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"3e1d5cb2\" data-element_type=\"section\" data-e-type=\"section\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-inner-column elementor-element elementor-element-5136184a blue-box-bestellen-ein-set\" data-id=\"5136184a\" data-element_type=\"column\" data-e-type=\"column\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-27209832 elementor-widget elementor-widget-text-editor\" data-id=\"27209832\" data-element_type=\"widget\" data-e-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\t<p style=\"text-align: center;\">To n\u00e1m umo\u017e\u0148uje kontrolovat<br \/><strong>16 tla\u010d\u00edtek s 8 datov\u00fdmi linkami!<\/strong><\/p>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-b2e8282 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"b2e8282\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-73c7ce4\" data-id=\"73c7ce4\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-05987a5 elementor-widget elementor-widget-text-editor\" data-id=\"05987a5\" data-element_type=\"widget\" data-e-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\t<p>Kdy\u017e stiskneme tla\u010d\u00edtko, zkratujeme sloupec s \u0159\u00e1dkem. Na obr\u00e1zku v\u00fd\u0161e nap\u0159\u00edklad stisknut\u00ed tla\u010d\u00edtka &#8222;1&#8220; zkratuje \u0159\u00e1dek <strong>P1<\/strong> se sloupcem <strong>P5<\/strong>. Pokud v\u0161ak stisknete kl\u00e1vesu &#8222;4&#8220;, \u0159\u00e1dek <strong>P2<\/strong> se zkratuje se sloupcem <strong>P5<\/strong>. Kontrolou spojen\u00ed mezi \u0159\u00e1dky P1-P4 a sloupci P5-P8 m\u016f\u017eeme ur\u010dit, zda a kter\u00e9 tla\u010d\u00edtko bylo stisknuto.<\/p>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-d206591 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"d206591\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-2df401f\" data-id=\"2df401f\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-837fa21 elementor-widget elementor-widget-heading\" data-id=\"837fa21\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Maticov\u00e1 kl\u00e1vesnice v praxi<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-3278778 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"3278778\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-5a3712e\" data-id=\"5a3712e\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-1784505 elementor-widget elementor-widget-text-editor\" data-id=\"1784505\" data-element_type=\"widget\" data-e-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\t<p>P\u0159i cvi\u010den\u00edch budeme pou\u017e\u00edvat jednoduchou verzi kl\u00e1vesnice (bez p\u0159edn\u00edho panelu), kde jsou viditeln\u00e9 vnit\u0159n\u00ed spoje. To umo\u017e\u0148uje t\u011bm, kter\u00fdm nen\u00ed v\u00fd\u0161e popsan\u00fd princip \u010dten\u00ed jasn\u00fd, vid\u011bt &#8222;zbl\u00edzka&#8220;, jak v\u0161e vypad\u00e1:<\/p>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-1c6e7d9 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"1c6e7d9\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-3e4abf3\" data-id=\"3e4abf3\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-92b1550 elementor-widget elementor-widget-image\" data-id=\"92b1550\" data-element_type=\"widget\" data-e-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\t\t\t\t<figure class=\"wp-caption\">\n\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"683\" src=\"https:\/\/forbot.com\/wp-content\/uploads\/2024\/03\/KursArd2_5_numeryczna_matrycowa-1024x683.jpg\" class=\"attachment-large size-large wp-image-4626\" alt=\"\" srcset=\"https:\/\/forbot.com\/wp-content\/uploads\/2024\/03\/KursArd2_5_numeryczna_matrycowa-1024x683.jpg 1024w, https:\/\/forbot.com\/wp-content\/uploads\/2024\/03\/KursArd2_5_numeryczna_matrycowa-300x200.jpg 300w, https:\/\/forbot.com\/wp-content\/uploads\/2024\/03\/KursArd2_5_numeryczna_matrycowa-768x512.jpg 768w, https:\/\/forbot.com\/wp-content\/uploads\/2024\/03\/KursArd2_5_numeryczna_matrycowa.jpg 1500w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/>\t\t\t\t\t\t\t\t\t\t\t<figcaption class=\"widget-image-caption wp-caption-text\">16 tla\u010d\u00edtek - 8 \u0159\u00e1dk\u016f<\/figcaption>\n\t\t\t\t\t\t\t\t\t\t<\/figure>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t<div class=\"elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-56db738\" data-id=\"56db738\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-09a0299 elementor-widget elementor-widget-image\" data-id=\"09a0299\" data-element_type=\"widget\" data-e-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\t\t\t\t<figure class=\"wp-caption\">\n\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"683\" src=\"https:\/\/forbot.com\/wp-content\/uploads\/2024\/03\/KursArd2_5_numeryczna_matrycowa2-1024x683.jpg\" class=\"attachment-large size-large wp-image-4629\" alt=\"\" srcset=\"https:\/\/forbot.com\/wp-content\/uploads\/2024\/03\/KursArd2_5_numeryczna_matrycowa2-1024x683.jpg 1024w, https:\/\/forbot.com\/wp-content\/uploads\/2024\/03\/KursArd2_5_numeryczna_matrycowa2-300x200.jpg 300w, https:\/\/forbot.com\/wp-content\/uploads\/2024\/03\/KursArd2_5_numeryczna_matrycowa2-768x512.jpg 768w, https:\/\/forbot.com\/wp-content\/uploads\/2024\/03\/KursArd2_5_numeryczna_matrycowa2.jpg 1500w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/>\t\t\t\t\t\t\t\t\t\t\t<figcaption class=\"widget-image-caption wp-caption-text\">Zadn\u00ed \u010d\u00e1st maticov\u00e9 kl\u00e1vesnice<\/figcaption>\n\t\t\t\t\t\t\t\t\t\t<\/figure>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-4164973 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"4164973\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-fa56639\" data-id=\"fa56639\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-00bc21c elementor-widget elementor-widget-text-editor\" data-id=\"00bc21c\" data-element_type=\"widget\" data-e-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\t<p>Je \u010das p\u0159ev\u00e9st kl\u00e1vesnici do praxe!<\/p>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-3db4d154 custom-fertige-sets-section elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"3db4d154\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-189529e4\" data-id=\"189529e4\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-inner-section elementor-element elementor-element-47b50dcc custom-heading-section elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"47b50dcc\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-inner-column elementor-element elementor-element-759c416e\" data-id=\"759c416e\" data-element_type=\"column\" data-e-type=\"column\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-38368ce0 elementor-widget elementor-widget-heading\" data-id=\"38368ce0\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h5 class=\"elementor-heading-title elementor-size-default\">Hotov\u00e9 sady pro kurzy Forbot<\/h5>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-22f05e0d elementor-widget elementor-widget-text-editor\" data-id=\"22f05e0d\" data-element_type=\"widget\" data-e-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\t<i class=\"fas fa-solid fa-star fa-sm\" style=\"color: #ffffff;\"><\/i> Sada prvk\u016f &nbsp; <i class=\"fas fa-solid fa-comments fa-sm\" style=\"color: #ffffff;\"><\/i> Zaru\u010den\u00e1 podpora \n &nbsp; <i class=\"fas fa-solid fa-truck fa-flip-horizontal fa-sm\" style=\"color: #ffffff;\"><\/i> Odesl\u00e1n\u00ed do 24 hodin\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-inner-section elementor-element elementor-element-4410d6ae custom-paragraph-section elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"4410d6ae\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-50 elementor-inner-column elementor-element elementor-element-2dc09a7a\" data-id=\"2dc09a7a\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-6b689200 elementor-widget__width-initial elementor-widget elementor-widget-image\" data-id=\"6b689200\" data-element_type=\"widget\" data-e-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\t\t\t\t\t\t\t\t<a href=\"https:\/\/botland.cz\/startovaci-sady-pro-arduino\/23719-forbot-sada-arduino-5904422384302.html\">\n\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"300\" src=\"https:\/\/forbot.com\/wp-content\/uploads\/2024\/03\/zestaw_arduino_2-300x300.jpg\" class=\"attachment-medium size-medium wp-image-4632\" alt=\"\" srcset=\"https:\/\/forbot.com\/wp-content\/uploads\/2024\/03\/zestaw_arduino_2-300x300.jpg 300w, https:\/\/forbot.com\/wp-content\/uploads\/2024\/03\/zestaw_arduino_2-150x150.jpg 150w, https:\/\/forbot.com\/wp-content\/uploads\/2024\/03\/zestaw_arduino_2.jpg 600w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/>\t\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t<div class=\"elementor-column elementor-col-50 elementor-inner-column elementor-element elementor-element-5ebc3792 custom-fertige-sets-right-col\" data-id=\"5ebc3792\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-6ae12a2f elementor-widget elementor-widget-text-editor\" data-id=\"6ae12a2f\" data-element_type=\"widget\" data-e-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\t<p style=\"text-align: left;\">Komponenty pro cvi\u010den\u00ed z <strong>kurzu Arduino (\u00farove\u0148 2)<\/strong> jsou k dispozici jako hotov\u00e9 sady! Pat\u0159\u00ed sem programovateln\u00e9 diody, analogov\u00e9 a digit\u00e1ln\u00ed teplom\u011bry, 7-segmentov\u00e9 displeje a senzor pohybu (PIR).<\/p>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-572d0f9 elementor-align-center custom-fertige-sets-btn elementor-widget elementor-widget-button\" data-id=\"572d0f9\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"button.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<div class=\"elementor-button-wrapper\">\n\t\t\t\t\t<a class=\"elementor-button elementor-button-link elementor-size-sm\" href=\"https:\/\/botland.cz\/startovaci-sady-pro-arduino\/23721-forbot-sada-arduino-urovne-2-5904422384296.html\">\n\t\t\t\t\t\t<span class=\"elementor-button-content-wrapper\">\n\t\t\t\t\t\t\t\t\t<span class=\"elementor-button-text\">Objednejte si na Botland.cz &gt;&gt;<\/span>\n\t\t\t\t\t<\/span>\n\t\t\t\t\t<\/a>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-2e88fa0 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"2e88fa0\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-71545b7\" data-id=\"71545b7\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-f364a13 elementor-widget elementor-widget-heading\" data-id=\"f364a13\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Knihovna KeyPad<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-5b7c216 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"5b7c216\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-db0e78e\" data-id=\"db0e78e\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-a826f3f elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"a826f3f\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-0d7c949\" data-id=\"0d7c949\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-51c0501 elementor-widget elementor-widget-text-editor\" data-id=\"51c0501\" data-element_type=\"widget\" data-e-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\t<p>V p\u0159\u00edpad\u011b Arduino samoz\u0159ejm\u011b najdeme hotovou knihovnu, kter\u00e1 n\u00e1m pou\u017e\u00edv\u00e1n\u00ed takov\u00fdch kl\u00e1vesnic je\u0161t\u011b v\u00edce usnadn\u00ed. V tomto p\u0159\u00edpad\u011b to bude knihovna s n\u00e1zvem <strong> Keypad<\/strong>. Najdete ji p\u0159\u00edmo ve spr\u00e1vci knihovny nebo na GitHubu: <a href=\"https:\/\/github.com\/Chris--A\/Keypad\"><span style=\"text-decoration: underline;\">https:\/\/github.com\/Chris&#8211;A\/Keypad<\/span><\/a><\/p>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-7a0179d0 custom-alert-box elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"7a0179d0\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-577d6a83\" data-id=\"577d6a83\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-inner-section elementor-element elementor-element-717d508 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"717d508\" data-element_type=\"section\" data-e-type=\"section\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-inner-column elementor-element elementor-element-87fc3a1 blue-box-bestellen-ein-set\" data-id=\"87fc3a1\" data-element_type=\"column\" data-e-type=\"column\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-53c550eb elementor-widget elementor-widget-text-editor\" data-id=\"53c550eb\" data-element_type=\"widget\" data-e-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\t<p style=\"text-align: center;\">Informace o instalaci knihoven najdete v tomto \u010dl\u00e1nku:<br \/><a href=\"https:\/\/forbot.com\/cs\/kurz-arduino\/kurz-arduino-uroven-ii-2-rgb-led-diody-tradicni-a-ws2812\/\"><span style=\"text-decoration: underline;\">Kurz Arduino II &#8211; #2 &#8211; RGB LED diody (tradi\u010dn\u00ed a WS2812)<\/span><\/a><\/p>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-9b53750 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"9b53750\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-b9dec41\" data-id=\"b9dec41\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-cfb2a40 elementor-widget elementor-widget-heading\" data-id=\"cfb2a40\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Prvn\u00ed pou\u017eit\u00ed numerick\u00e9 kl\u00e1vesnice<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-efed8aa elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"efed8aa\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-0308944\" data-id=\"0308944\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-5a51677 elementor-widget elementor-widget-text-editor\" data-id=\"5a51677\" data-element_type=\"widget\" data-e-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\t<p>Nejprve m\u00e1 smysl napsat testovac\u00ed program, kter\u00fd zkontroluje, zda je tla\u010d\u00edtko stisknut\u00e9. V takov\u00e9m p\u0159\u00edpad\u011b je p\u0159\u00edslu\u0161n\u00fd znak odesl\u00e1n do po\u010d\u00edta\u010de prost\u0159ednictv\u00edm UART.<\/p>\n<p>Nejprve p\u0159ipoj\u00edme kl\u00e1vesnici k Arduino pomoc\u00ed <strong>pin\u016f 2 a\u017e 9<\/strong>, jak je zn\u00e1zorn\u011bno na obr\u00e1zku n\u00ed\u017ee. Po\u0159ad\u00ed pin\u016f je d\u016fle\u017eit\u00e9, abychom mohli spr\u00e1vn\u011b \u010d\u00edst stisknut\u00e1 tla\u010d\u00edtka.<\/p>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-322c531 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"322c531\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-93feb5f\" data-id=\"93feb5f\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-fe0d6b7 elementor-widget elementor-widget-image\" data-id=\"fe0d6b7\" data-element_type=\"widget\" data-e-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\t\t\t\t<figure class=\"wp-caption\">\n\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"500\" height=\"333\" src=\"https:\/\/forbot.com\/wp-content\/uploads\/2024\/03\/KursArd2_5_numeryczna_matrycowa3.jpg\" class=\"attachment-large size-large wp-image-4635\" alt=\"\" srcset=\"https:\/\/forbot.com\/wp-content\/uploads\/2024\/03\/KursArd2_5_numeryczna_matrycowa3.jpg 500w, https:\/\/forbot.com\/wp-content\/uploads\/2024\/03\/KursArd2_5_numeryczna_matrycowa3-300x200.jpg 300w\" sizes=\"(max-width: 500px) 100vw, 500px\" \/>\t\t\t\t\t\t\t\t\t\t\t<figcaption class=\"widget-image-caption wp-caption-text\">P\u0159ipojen\u00ed kl\u00e1vesnice k Arduino.<\/figcaption>\n\t\t\t\t\t\t\t\t\t\t<\/figure>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-d5f28cc elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"d5f28cc\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-2349d66\" data-id=\"2349d66\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-b150831 elementor-widget elementor-widget-text-editor\" data-id=\"b150831\" data-element_type=\"widget\" data-e-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\t<p>Kl\u00e1vesnici lze zapojit do kontaktn\u00ed desky (kl\u00e1vesy pak ale sm\u011b\u0159uj\u00ed dol\u016f). Proto se vyplat\u00ed pou\u017e\u00edt kabely a p\u0159ipojit je p\u0159\u00edmo k Arduinu. K tomu je t\u0159eba &#8222;vytvo\u0159it&#8220; 8 mu\u017esk\u00fdch\/\u017eensk\u00fdch lini\u00ed (jako v p\u0159edchoz\u00edm \u010dl\u00e1nku):<\/p>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-a546961 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"a546961\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-87b88f2\" data-id=\"87b88f2\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-96f37bd elementor-widget elementor-widget-image\" data-id=\"96f37bd\" data-element_type=\"widget\" data-e-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\t\t\t\t<figure class=\"wp-caption\">\n\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"269\" src=\"https:\/\/forbot.com\/wp-content\/uploads\/2024\/03\/ArduinoKurs_2_4_8-1024x269.jpg\" class=\"attachment-large size-large wp-image-4638\" alt=\"\" srcset=\"https:\/\/forbot.com\/wp-content\/uploads\/2024\/03\/ArduinoKurs_2_4_8-1024x269.jpg 1024w, https:\/\/forbot.com\/wp-content\/uploads\/2024\/03\/ArduinoKurs_2_4_8-300x79.jpg 300w, https:\/\/forbot.com\/wp-content\/uploads\/2024\/03\/ArduinoKurs_2_4_8-768x202.jpg 768w, https:\/\/forbot.com\/wp-content\/uploads\/2024\/03\/ArduinoKurs_2_4_8-1536x404.jpg 1536w, https:\/\/forbot.com\/wp-content\/uploads\/2024\/03\/ArduinoKurs_2_4_8.jpg 2000w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/>\t\t\t\t\t\t\t\t\t\t\t<figcaption class=\"widget-image-caption wp-caption-text\">P\u0159ipojen\u00ed vodi\u010d\u016f pro z\u00edsk\u00e1n\u00ed adapt\u00e9ru pro kontaktn\u00ed desku.<\/figcaption>\n\t\t\t\t\t\t\t\t\t\t<\/figure>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-f0c4820 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"f0c4820\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-e028219\" data-id=\"e028219\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-a019cbf elementor-widget elementor-widget-text-editor\" data-id=\"a019cbf\" data-element_type=\"widget\" data-e-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\t<p>V m\u00e9m p\u0159\u00edpad\u011b to cel\u00e9 vypadalo takto po zapojen\u00ed a polo\u017een\u00ed:<\/p>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-6100c09 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"6100c09\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-e54ea14\" data-id=\"e54ea14\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-186293d elementor-widget elementor-widget-image\" data-id=\"186293d\" data-element_type=\"widget\" data-e-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\t\t\t\t<figure class=\"wp-caption\">\n\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"740\" src=\"https:\/\/forbot.com\/wp-content\/uploads\/2024\/03\/KursArd2_5_numeryczna_matrycowa4-1024x740.jpg\" class=\"attachment-large size-large wp-image-4641\" alt=\"\" srcset=\"https:\/\/forbot.com\/wp-content\/uploads\/2024\/03\/KursArd2_5_numeryczna_matrycowa4-1024x740.jpg 1024w, https:\/\/forbot.com\/wp-content\/uploads\/2024\/03\/KursArd2_5_numeryczna_matrycowa4-300x217.jpg 300w, https:\/\/forbot.com\/wp-content\/uploads\/2024\/03\/KursArd2_5_numeryczna_matrycowa4-768x555.jpg 768w, https:\/\/forbot.com\/wp-content\/uploads\/2024\/03\/KursArd2_5_numeryczna_matrycowa4-1536x1110.jpg 1536w, https:\/\/forbot.com\/wp-content\/uploads\/2024\/03\/KursArd2_5_numeryczna_matrycowa4.jpg 2000w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/>\t\t\t\t\t\t\t\t\t\t\t<figcaption class=\"widget-image-caption wp-caption-text\">Prvn\u00ed testovac\u00ed rozlo\u017een\u00ed s maticovou kl\u00e1vesnic\u00ed.<\/figcaption>\n\t\t\t\t\t\t\t\t\t\t<\/figure>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-da6c782 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"da6c782\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-4809d5f\" data-id=\"4809d5f\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-3e2e747 elementor-widget elementor-widget-text-editor\" data-id=\"3e2e747\" data-element_type=\"widget\" data-e-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\t<p>Nyn\u00ed m\u016f\u017eeme p\u0159ej\u00edt k programov\u00e1n\u00ed. Nejprve knihovnu integrujeme a zad\u00e1me v\u0161echny pot\u0159ebn\u00e9 informace o na\u0161\u00ed kl\u00e1vesnici a jej\u00edm p\u0159ipojen\u00ed:<\/p>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-7b5bedc elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"7b5bedc\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-98c57cf\" data-id=\"98c57cf\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-a5c37a5 elementor-widget elementor-widget-code-highlight\" data-id=\"a5c37a5\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"prismjs-default copy-to-clipboard word-wrap\">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-cpp line-numbers\">\n\t\t\t\t<code readonly=\"true\" class=\"language-cpp\">\n\t\t\t\t\t<xmp>#include <Keypad.h> \/\/knihovna kl\u00e1vesnice\r\n\r\nconst byte ROWS = 4; \/\/ kolik \u0159\u00e1dk\u016f\r\nconst byte COLS = 4; \/\/kolik sloupc\u016f\r\n\r\nbyte rowPins[ROWS] = {5, 4, 3, 2}; \/\/piny \u0159\u00e1dk\u016f\r\nbyte colPins[COLS] = {6, 7, 8, 9}; \/\/piny sloupc\u016f<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-1fe4403 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"1fe4403\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-0862430\" data-id=\"0862430\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-77d4742 elementor-widget elementor-widget-text-editor\" data-id=\"77d4742\" data-element_type=\"widget\" data-e-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\t<p>Tato pas\u00e1\u017e je natolik jasn\u00e1, \u017ee ji pravd\u011bpodobn\u011b nen\u00ed t\u0159eba podrobn\u011bji vysv\u011btlovat. Zmatek mohou zp\u016fsobit pouze \u010d\u00edsla pin\u016f, kter\u00e1 jsem uvedl (nebo jejich po\u0159ad\u00ed). To bude jasn\u00e9 o n\u011bco n\u00ed\u017ee.<\/p>\n<p>Dal\u0161\u00edm krokem je namapov\u00e1n\u00ed kl\u00e1vesnice, tj. p\u0159i\u0159azen\u00ed ur\u010dit\u00fdch znak\u016f kl\u00e1ves\u00e1m. P\u0159ijal jsem toto po\u0159ad\u00ed:<\/p>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-726ce9c elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"726ce9c\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-81deeb3\" data-id=\"81deeb3\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap\">\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-593ce0e elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"593ce0e\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-12276a8\" data-id=\"12276a8\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-22401f2 elementor-widget elementor-widget-text-editor\" data-id=\"22401f2\" data-element_type=\"widget\" data-e-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\t<p>Tyto informace poskytujeme n\u00e1sledovn\u011b:<\/p>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-a6ccac4 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"a6ccac4\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-6f8cbbd\" data-id=\"6f8cbbd\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-43ce918 elementor-widget elementor-widget-code-highlight\" data-id=\"43ce918\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"prismjs-default copy-to-clipboard word-wrap\">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-cpp line-numbers\">\n\t\t\t\t<code readonly=\"true\" class=\"language-cpp\">\n\t\t\t\t\t<xmp>char keys[ROWS][COLS] = { \/\/mapov\u00e1n\u00ed kl\u00e1vesnice\r\n  {'1','2','3','A'},\r\n  {'4','5','6','B'},\r\n  {'7','8','9','C'},\r\n  {'*','0','#','D'}\r\n};<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-5c1b1af elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"5c1b1af\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-db379be\" data-id=\"db379be\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-14013ba elementor-widget elementor-widget-text-editor\" data-id=\"14013ba\" data-element_type=\"widget\" data-e-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\t<p>Tento z\u00e1pis se m\u016f\u017ee zd\u00e1t neintuitivn\u00ed, ale pom\u00e1h\u00e1 uspo\u0159\u00e1dat program. Ti, kte\u0159\u00ed ji\u017e maj\u00ed zku\u0161enosti s programov\u00e1n\u00edm, samoz\u0159ejm\u011b poznaj\u00ed, \u017ee se jedn\u00e1 o jednoduchou dvourozm\u011brnou tabulku.<\/p>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-3ae2a608 custom-alert-box elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"3ae2a608\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-59b9325f\" data-id=\"59b9325f\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-4863016 elementor-widget elementor-widget-image\" data-id=\"4863016\" data-element_type=\"widget\" data-e-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\t\t\t\t<figure class=\"wp-caption\">\n\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"500\" height=\"333\" src=\"https:\/\/forbot.com\/wp-content\/uploads\/2024\/03\/KursArd2_5_numeryczna_matrycowa4.png\" class=\"attachment-large size-large wp-image-4644\" alt=\"\" srcset=\"https:\/\/forbot.com\/wp-content\/uploads\/2024\/03\/KursArd2_5_numeryczna_matrycowa4.png 500w, https:\/\/forbot.com\/wp-content\/uploads\/2024\/03\/KursArd2_5_numeryczna_matrycowa4-300x200.png 300w\" sizes=\"(max-width: 500px) 100vw, 500px\" \/>\t\t\t\t\t\t\t\t\t\t\t<figcaption class=\"widget-image-caption wp-caption-text\">P\u0159ijat\u00e9 mapov\u00e1n\u00ed kl\u00e1ves.<\/figcaption>\n\t\t\t\t\t\t\t\t\t\t<\/figure>\n\t\t\t\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-23d6aaf7 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"23d6aaf7\" data-element_type=\"section\" data-e-type=\"section\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-inner-column elementor-element elementor-element-2d735c0d blue-box-bestellen-ein-set\" data-id=\"2d735c0d\" data-element_type=\"column\" data-e-type=\"column\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-3c6e5561 elementor-widget elementor-widget-text-editor\" data-id=\"3c6e5561\" data-element_type=\"widget\" data-e-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\t<p style=\"text-align: center;\">K <strong>tabulk\u00e1m se vr\u00e1t\u00edme v kurzu Arduino<\/strong> &#8211; pokud je tedy n\u011bkdo nezn\u00e1,<br \/>pak se nen\u00ed \u010deho ob\u00e1vat.<\/p>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-ef1a4de elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"ef1a4de\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-cc475d0\" data-id=\"cc475d0\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-987d02b elementor-widget elementor-widget-text-editor\" data-id=\"987d02b\" data-element_type=\"widget\" data-e-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\t<p>Posledn\u00edm krokem p\u0159i konfiguraci je vytvo\u0159en\u00ed nov\u00e9ho objektu typu Keypad, v na\u0161em p\u0159\u00edpad\u011b se bude jmenovat Kl\u00e1vesnice:<\/p>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-7d6615d elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"7d6615d\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-2689798\" data-id=\"2689798\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-ecd247f elementor-widget elementor-widget-code-highlight\" data-id=\"ecd247f\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"prismjs-default copy-to-clipboard word-wrap\">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-cpp line-numbers\">\n\t\t\t\t<code readonly=\"true\" class=\"language-cpp\">\n\t\t\t\t\t<xmp>Keypad kl\u00e1vesnice = Keypad( makeKeymap(keys), rowPins, colPins, ROWS, COLS ); \/\/inicializace kl\u00e1vesnice<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-b9c58ac elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"b9c58ac\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-12cc2aa\" data-id=\"12cc2aa\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-7c90ac4 elementor-widget elementor-widget-text-editor\" data-id=\"7c90ac4\" data-element_type=\"widget\" data-e-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\t<p>Analogickou operaci jsme museli prov\u00e9st p\u0159i deklarov\u00e1n\u00ed nov\u00e9 sv\u011bteln\u00e9 \u0159ady b\u011bhem cvi\u010den\u00ed v \u010dl\u00e1nku o <a href=\"https:\/\/forbot.com\/cs\/kurz-arduino\/kurz-arduino-uroven-ii-2-rgb-led-diody-tradicni-a-ws2812\/\"><span style=\"text-decoration: underline;\">programovateln\u00fdch diod\u00e1ch WS2812<\/span><\/a>. Jakmile je kl\u00e1vesnice deklarov\u00e1na, m\u016f\u017eete pokra\u010dovat &#8211; tedy \u010d\u00edst znaky.<\/p>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-4b32615 custom-alert-box elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"4b32615\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-74294ed1\" data-id=\"74294ed1\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-inner-section elementor-element elementor-element-136e3fa7 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"136e3fa7\" data-element_type=\"section\" data-e-type=\"section\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-inner-column elementor-element elementor-element-665592cd blue-box-bestellen-ein-set\" data-id=\"665592cd\" data-element_type=\"column\" data-e-type=\"column\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-5862484 elementor-widget elementor-widget-text-editor\" data-id=\"5862484\" data-element_type=\"widget\" data-e-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\t<p style=\"text-align: center;\">Nen\u00ed t\u0159eba nastavovat piny<br \/>ke kter\u00fdm je kl\u00e1vesnice p\u0159ipojena jako vstupy.<\/p>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-863d8ed elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"863d8ed\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-316d115\" data-id=\"316d115\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-992fe57 elementor-widget elementor-widget-text-editor\" data-id=\"992fe57\" data-element_type=\"widget\" data-e-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\t<p>Cel\u00fd k\u00f3d vypad\u00e1 takto:<\/p>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-9bdb3c2 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"9bdb3c2\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-401a848\" data-id=\"401a848\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-2c597f6 elementor-widget elementor-widget-code-highlight\" data-id=\"2c597f6\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"prismjs-default copy-to-clipboard word-wrap\">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-cpp line-numbers\">\n\t\t\t\t<code readonly=\"true\" class=\"language-cpp\">\n\t\t\t\t\t<xmp>#include <Keypad.h> \/\/knihovna kl\u00e1vesnice\r\n\r\nconst byte ROWS = 4; \/\/ kolik \u0159\u00e1dk\u016f\r\nconst byte COLS = 4; \/\/kolik sloupc\u016f\r\n\r\nbyte rowPins[ROWS] = {5, 4, 3, 2}; \/\/piny \u0159\u00e1dk\u016f\r\nbyte colPins[COLS] = {6, 7, 8, 9}; \/\/piny sloupc\u016f\r\n\r\nchar keys[ROWS][COLS] = { \/\/mapov\u00e1n\u00ed kl\u00e1vesnice\r\n  {'1','2','3','A'},\r\n  {'4','5','6','B'},\r\n  {'7','8','9','C'},\r\n  {'*','0','#','D'}\r\n};\r\n\r\nKeypad kl\u00e1vesnice = Keypad( makeKeymap(keys), rowPins, colPins, ROWS, COLS ); \/\/inicializace kl\u00e1vesnice\r\n\r\nvoid setup(){\r\n  Serial.begin(9600);\r\n}\r\n  \r\nvoid loop(){\r\n  char kl\u00e1vesa = kl\u00e1vesnice.getKey();\r\n  \r\n  if (kl\u00e1vesa){\r\n    Serial.println(kl\u00e1vesa);\r\n  }\r\n}<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-8ae5b56 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"8ae5b56\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-9f9d4e5\" data-id=\"9f9d4e5\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-ec1e42f elementor-widget elementor-widget-text-editor\" data-id=\"ec1e42f\" data-element_type=\"widget\" data-e-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\t<p>V hlavn\u00ed smy\u010dce programu vytvo\u0159\u00edme prom\u011bnnou pro ulo\u017een\u00ed znaku (typu <strong>char<\/strong>) a pot\u00e9 do n\u00ed p\u0159i\u0159ad\u00edme hodnotu na\u010dtenou z kl\u00e1vesnice. Tento znak z\u00edsk\u00e1me p\u0159i vol\u00e1n\u00ed p\u0159\u00edkazu <strong>kl\u00e1vesnice.getKey().<\/strong> Zkontrolujeme tak\u00e9, zda byl znak skute\u010dn\u011b p\u0159ijat, a pokud ano, ode\u0161leme jej prost\u0159ednictv\u00edm p\u0159\u00edkazu <a href=\"https:\/\/forbot.com\/wp-admin\/post.php?post=5425&amp;action=elementor\"><span style=\"text-decoration: underline;\">UART<\/span><\/a>do po\u010d\u00edta\u010de.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-6c2c6d06 custom-alert-box elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"6c2c6d06\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-3241fb6c\" data-id=\"3241fb6c\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-inner-section elementor-element elementor-element-6197e19b elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"6197e19b\" data-element_type=\"section\" data-e-type=\"section\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-inner-column elementor-element elementor-element-1cfe549c blue-box-bestellen-ein-set\" data-id=\"1cfe549c\" data-element_type=\"column\" data-e-type=\"column\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-5d03af5 elementor-widget elementor-widget-text-editor\" data-id=\"5d03af5\" data-element_type=\"widget\" data-e-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\t<p style=\"text-align: center;\">Podm\u00ednka <strong>if (kl\u00e1vesa)<\/strong> je spln\u011bna, pokud se pod prom\u011bnnou kl\u00e1vesa nach\u00e1z\u00ed <strong>libovoln\u00fd znak<\/strong>.<br \/>Jak\u00e1koli hodnota v\u011bt\u0161\u00ed ne\u017e 0 v podm\u00ednce je pova\u017eov\u00e1na za PRAVDA.<\/p>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-204823b elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"204823b\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-7c7fed6\" data-id=\"7c7fed6\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-237d091 elementor-widget elementor-widget-text-editor\" data-id=\"237d091\" data-element_type=\"widget\" data-e-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\t<p>Po nahr\u00e1n\u00ed programu se na monitoru s\u00e9riov\u00e9ho rozhran\u00ed zobraz\u00ed znaky p\u0159i\u0159azen\u00e9 pr\u00e1v\u011b stisknut\u00fdm tla\u010d\u00edtk\u016fm:<\/p>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-3686a74 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"3686a74\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-b106da2\" data-id=\"b106da2\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-ee51e54 elementor-widget elementor-widget-image\" data-id=\"ee51e54\" data-element_type=\"widget\" data-e-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\t\t\t\t<figure class=\"wp-caption\">\n\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"332\" src=\"https:\/\/forbot.com\/wp-content\/uploads\/2024\/03\/image-1-1024x332.png\" class=\"attachment-large size-large wp-image-4659\" alt=\"\" srcset=\"https:\/\/forbot.com\/wp-content\/uploads\/2024\/03\/image-1-1024x332.png 1024w, https:\/\/forbot.com\/wp-content\/uploads\/2024\/03\/image-1-300x97.png 300w, https:\/\/forbot.com\/wp-content\/uploads\/2024\/03\/image-1-768x249.png 768w, https:\/\/forbot.com\/wp-content\/uploads\/2024\/03\/image-1.png 1214w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/>\t\t\t\t\t\t\t\t\t\t\t<figcaption class=\"widget-image-caption wp-caption-text\">Efekt prvn\u00edho programu.<\/figcaption>\n\t\t\t\t\t\t\t\t\t\t<\/figure>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-4814e40 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"4814e40\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-e2b8dca\" data-id=\"e2b8dca\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-aa33304 elementor-widget elementor-widget-text-editor\" data-id=\"aa33304\" data-element_type=\"widget\" data-e-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\t<p>Pokud po\u010d\u00edta\u010d zobrazuje jin\u00e9 znaky ne\u017e na p\u0159edchoz\u00edm mapov\u00e9m v\u00fdkresu, je vhodn\u00e9 znovu zkontrolovat p\u0159ipojen\u00ed. Pokud je po\u0159ad\u00ed \u0159\u00e1dk\u016f obr\u00e1cen\u00e9, m\u016f\u017ee funkce nespr\u00e1vn\u011b interpretovat stisknut\u00e1 tla\u010d\u00edtka.<\/p>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-13a73064 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"13a73064\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-73dec975\" data-id=\"73dec975\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-2590d7b3 elementor-widget-divider--view-line elementor-widget elementor-widget-divider\" data-id=\"2590d7b3\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"divider.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-divider\">\n\t\t\t<span class=\"elementor-divider-separator\">\n\t\t\t\t\t\t<\/span>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-98606a0 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"98606a0\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-a09e254\" data-id=\"a09e254\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-034a23b elementor-widget elementor-widget-text-editor\" data-id=\"034a23b\" data-element_type=\"widget\" data-e-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\t<p>Dal\u0161\u00edm zp\u016fsobem, jak takovou chybu opravit, je zm\u011bnit hodnotu v mapovac\u00ed tabulce. Pokud bychom nap\u0159\u00edklad cht\u011bli obr\u00e1tit kl\u00e1vesnici, bylo by t\u0159eba vlo\u017eit n\u00e1sleduj\u00edc\u00ed k\u00f3d:<\/p>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-81530bf elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"81530bf\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-c2feec8\" data-id=\"c2feec8\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-b99550f elementor-widget elementor-widget-code-highlight\" data-id=\"b99550f\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"prismjs-default copy-to-clipboard word-wrap\">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-cpp line-numbers\">\n\t\t\t\t<code readonly=\"true\" class=\"language-cpp\">\n\t\t\t\t\t<xmp>char keys[ROWS][COLS] = { \/\/mapov\u00e1n\u00ed kl\u00e1vesnice\r\n  {'*','0','#','D'},\r\n  {'7','8','9','C'},\r\n  {'4','5','6','B'},\r\n  {'1','2','3','A'}\r\n};<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-9d424de elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"9d424de\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-f45ef26\" data-id=\"f45ef26\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-5acafd6 elementor-widget elementor-widget-text-editor\" data-id=\"5acafd6\" data-element_type=\"widget\" data-e-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\t<p>Samoz\u0159ejm\u011b jsou mo\u017en\u00e9 i mnohem &#8222;bizarn\u011bj\u0161\u00ed&#8220; kombinace. <strong>K\u00f3d se pak ale st\u00e1v\u00e1 m\u00e9n\u011b \u010diteln\u00fdm<\/strong>. To je p\u0159esn\u011b d\u016fvod, pro\u010d jsem na za\u010d\u00e1tku trval na pou\u017eit\u00ed ur\u010dit\u00fdch \u010d\u00edsel pin\u016f a sekvenc\u00ed p\u0159ipojen\u00ed.<\/p>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-48173db4 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"48173db4\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-10812cd5\" data-id=\"10812cd5\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-6c5cfe24 elementor-widget-divider--view-line elementor-widget elementor-widget-divider\" data-id=\"6c5cfe24\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"divider.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-divider\">\n\t\t\t<span class=\"elementor-divider-separator\">\n\t\t\t\t\t\t<\/span>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-2191c37 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"2191c37\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-7fe8311\" data-id=\"7fe8311\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-803df00 elementor-widget elementor-widget-text-editor\" data-id=\"803df00\" data-element_type=\"widget\" data-e-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\t<p>Doslovn\u00e9 dvoj\u010de v\u00fd\u0161e uveden\u00e9ho programu naleznete v p\u0159\u00edkladech dodan\u00fdch s knihovnou. Jsou tam i dal\u0161\u00ed zaj\u00edmav\u00e9 programy &#8211; doporu\u010duji v\u00e1m, abyste si je sami vyzkou\u0161eli. Ve zbytku tohoto \u010dl\u00e1nku se budeme zab\u00fdvat programov\u00e1n\u00edm jednoduch\u00e9 poplachov\u00e9 centr\u00e1ly.<\/p>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-a8208d9 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"a8208d9\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-3f9faa7\" data-id=\"3f9faa7\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-c01e117 elementor-widget elementor-widget-heading\" data-id=\"c01e117\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">\u0158\u00eddic\u00ed jednotka alarmu na Arduino<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-82deb38 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"82deb38\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-7b3bc81\" data-id=\"7b3bc81\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-fcb2590 elementor-widget elementor-widget-text-editor\" data-id=\"fcb2590\" data-element_type=\"widget\" data-e-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\t<p>N\u00e1\u0161 popla\u0161n\u00fd syst\u00e9m se skl\u00e1d\u00e1 z numerick\u00e9 kl\u00e1vesnice, zvukov\u00e9ho sign\u00e1lu, sv\u011bteln\u00e9ho sign\u00e1lu, detektoru pohybu (PIR) a senzoru otev\u0159en\u00ed dve\u0159\u00ed (jaz\u00fd\u010dkov\u00fd sp\u00edna\u010d).<\/p>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-19d6a346 custom-alert-box elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"19d6a346\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-74778c6\" data-id=\"74778c6\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-inner-section elementor-element elementor-element-109daf79 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"109daf79\" data-element_type=\"section\" data-e-type=\"section\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-inner-column elementor-element elementor-element-18c524b2 blue-box-bestellen-ein-set\" data-id=\"18c524b2\" data-element_type=\"column\" data-e-type=\"column\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-328ff05b elementor-widget elementor-widget-text-editor\" data-id=\"328ff05b\" data-element_type=\"widget\" data-e-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\t<p style=\"text-align: center;\">Pou\u017eit\u00e9 senzory alarmu byly pops\u00e1ny v <a href=\"https:\/\/forbot.com\/cs\/kurz-arduino\/kurz-arduino-uroven-ii-4-preruseni-jazyckovy-spinac-pir-senzor\/\"><span style=\"text-decoration: underline;\">p\u0159edchoz\u00ed \u010d\u00e1sti kurzu Arduino<\/span><\/a>.<\/p>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-05c9bcb elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"05c9bcb\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-71be7d1\" data-id=\"71be7d1\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-a3caf58 elementor-widget elementor-widget-text-editor\" data-id=\"a3caf58\" data-element_type=\"widget\" data-e-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\t<p>Cel\u00e1 v\u011bc m\u016f\u017ee samoz\u0159ejm\u011b fungovat mnoha r\u016fzn\u00fdmi zp\u016fsoby. Rozhodl jsem se, \u017ee m\u016fj alarm bude fungovat n\u00e1sledovn\u011b: po zapnut\u00ed nap\u00e1jen\u00ed p\u0159ejdeme do <strong>stavu pohotovosti<\/strong>. Popla\u0161n\u00fd syst\u00e9m ned\u011bl\u00e1 nic, jen \u010dek\u00e1 na aktivaci. Stisknut\u00edm tla\u010d\u00edtka <strong>A<\/strong> (jako u alarmu) se spust\u00ed <strong>proces zast\u0159e\u017een\u00ed<\/strong>.<\/p>\n<p><strong>Po n\u011bkolika vte\u0159in\u00e1ch<\/strong> (\u010das na opu\u0161t\u011bn\u00ed pokoje) se aktivuje popla\u0161n\u00fd syst\u00e9m &#8211; od t\u00e9 chv\u00edle je n\u00e1\u0161 pokoj hl\u00edd\u00e1n. Jakmile zjist\u00edme jak\u00fdkoli pohyb v m\u00edstnosti, alarm <strong>okam\u017eit\u011b za\u010dne signalizovat ohro\u017een\u00ed.<\/strong><\/p>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-c0e47f7 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"c0e47f7\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-83da5bc\" data-id=\"83da5bc\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-33d8fe7 elementor-widget elementor-widget-image\" data-id=\"33d8fe7\" data-element_type=\"widget\" data-e-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\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"200\" src=\"https:\/\/forbot.com\/wp-content\/uploads\/2024\/03\/zlodziej_okno_alarm-300x200.jpg\" class=\"attachment-medium size-medium wp-image-4679\" alt=\"\" srcset=\"https:\/\/forbot.com\/wp-content\/uploads\/2024\/03\/zlodziej_okno_alarm-300x200.jpg 300w, https:\/\/forbot.com\/wp-content\/uploads\/2024\/03\/zlodziej_okno_alarm-768x513.jpg 768w, https:\/\/forbot.com\/wp-content\/uploads\/2024\/03\/zlodziej_okno_alarm.jpg 848w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-00090dc elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"00090dc\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-494fe40\" data-id=\"494fe40\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-44e53e4 elementor-widget elementor-widget-text-editor\" data-id=\"44e53e4\" data-element_type=\"widget\" data-e-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\t<p>Kdy\u017e zjist\u00edme otev\u0159en\u00ed dve\u0159\u00ed, d\u00e1me u\u017eivateli n\u011bkolik sekund na deaktivaci alarmu <strong>zad\u00e1n\u00edm \u010dty\u0159m\u00edstn\u00e9ho k\u00f3du<\/strong>. Pokud je PIN k\u00f3d zad\u00e1n nespr\u00e1vn\u011b nebo nen\u00ed zad\u00e1n v\u016fbec, spust\u00ed se tak\u00e9 alarm.<\/p>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-321631b6 custom-alert-box elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"321631b6\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-1aa0c3fd\" data-id=\"1aa0c3fd\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-inner-section elementor-element elementor-element-3b1fe841 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"3b1fe841\" data-element_type=\"section\" data-e-type=\"section\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-inner-column elementor-element elementor-element-226ac29b blue-box-bestellen-ein-set\" data-id=\"226ac29b\" data-element_type=\"column\" data-e-type=\"column\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-4fef2ba0 elementor-widget elementor-widget-text-editor\" data-id=\"4fef2ba0\" data-element_type=\"widget\" data-e-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\t<p style=\"text-align: center;\">Nav\u00edc je v\u0161e naprogramov\u00e1no tak, aby alarm b\u011b\u017eel bez p\u0159eru\u0161en\u00ed, plynule a bez zpo\u017ed\u011bn\u00ed. A to v\u0161e pomoc\u00ed nastaven\u00ed <strong>jednoduch\u00e9ho stavov\u00e9ho stroje<\/strong>.<\/p>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-338b53b elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"338b53b\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-aef8acd\" data-id=\"aef8acd\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-db3f174 elementor-widget elementor-widget-heading\" data-id=\"db3f174\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Co je to stavov\u00fd stroj?<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-3fe0b22 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"3fe0b22\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-3d253d3\" data-id=\"3d253d3\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-3b3483b elementor-widget elementor-widget-text-editor\" data-id=\"3b3483b\" data-element_type=\"widget\" data-e-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\t<p>V kontextu Arduino ozna\u010dujeme stavov\u00fd stroj (nebo kone\u010dn\u00fd stavov\u00fd stroj) jako specifickou metodiku psan\u00ed program\u016f, kter\u00e1 n\u00e1m umo\u017e\u0148uje snadno a p\u0159ehledn\u011b implementovat v za\u0159\u00edzen\u00ed r\u016fzn\u00e9 funkce, kter\u00e9 prob\u00edhaj\u00ed v pevn\u011b dan\u00e9m po\u0159ad\u00ed.<\/p>\n<p><strong>To n\u00e1m umo\u017e\u0148uje vyhnout se vno\u0159en\u00fdm dlouh\u00fdm podm\u00edn\u011bn\u00fdm p\u0159\u00edkaz\u016fm<\/strong>. Z teoretick\u00e9ho hlediska je toto t\u00e9ma mnohem slo\u017eit\u011bj\u0161\u00ed &#8211; <span style=\"text-decoration: underline;\"><a href=\"https:\/\/de.wikipedia.org\/wiki\/Endlicher_Automat\">z\u00e1jemce odkazuji na Wikipedii<\/a><\/span>. Prozat\u00edm posta\u010d\u00ed voln\u00fd odkaz na tuto metodu.<\/p>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-3b4df756 custom-alert-box elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"3b4df756\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-771959a8\" data-id=\"771959a8\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-inner-section elementor-element elementor-element-52905874 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"52905874\" data-element_type=\"section\" data-e-type=\"section\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-inner-column elementor-element elementor-element-1044f684 blue-box-bestellen-ein-set\" data-id=\"1044f684\" data-element_type=\"column\" data-e-type=\"column\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-142a4f0e elementor-widget elementor-widget-text-editor\" data-id=\"142a4f0e\" data-element_type=\"widget\" data-e-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\t<p style=\"text-align: center;\">Zde se <strong>zam\u011b\u0159\u00edme na praktick\u00e9 vyu\u017eit\u00ed stavov\u00e9ho stroje,<\/strong><br \/>Teorie nen\u00ed nutn\u00e1. Cel\u00e1 v\u011bc je velmi intuitivn\u00ed.<\/p>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-7988711 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"7988711\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-7fdfa71\" data-id=\"7fdfa71\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-538c57f elementor-widget elementor-widget-text-editor\" data-id=\"538c57f\" data-element_type=\"widget\" data-e-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\t<p>Na z\u00e1klad\u011b v\u00fd\u0161e uveden\u00e9ho popisu fungov\u00e1n\u00ed alarmu m\u016f\u017eeme rozli\u0161it 4 stavy:<\/p>\n<ol>\n<li><strong>Pohotovostn\u00ed re\u017eim<\/strong> &#8211; popla\u0161n\u00fd syst\u00e9m \u010dek\u00e1 na aktivaci.<\/li>\n<li><strong>Monitorov\u00e1n\u00ed<\/strong> &#8211; syst\u00e9m hl\u00edd\u00e1 na\u0161e prostory.<\/li>\n<li><strong>Vypnut\u00ed alarmu<\/strong> &#8211; popla\u0161n\u00fd syst\u00e9m \u010dek\u00e1 na zad\u00e1n\u00ed spr\u00e1vn\u00e9ho pinu.<\/li>\n<li><strong>Poplachov\u00e1 signalizace<\/strong> &#8211; popla\u0161n\u00fd syst\u00e9m vyd\u00e1v\u00e1 zvukov\u00e9 a sv\u011bteln\u00e9 sign\u00e1ly.<\/li>\n<\/ol>\n<p>Tyto funkce mohou samoz\u0159ejm\u011b n\u00e1sledovat pouze ve spr\u00e1vn\u00e9m po\u0159ad\u00ed. Nestane se, \u017ee bychom popla\u0161n\u00fd syst\u00e9m deaktivovali, kdy\u017e je v pohotovostn\u00edm re\u017eimu apod. To je nejl\u00e9pe patrn\u00e9 z n\u00e1sleduj\u00edc\u00edho sch\u00e9matu (nejedn\u00e1 se o stavov\u00fd diagram, ale o jednoduch\u00e9 grafick\u00e9 zn\u00e1zorn\u011bn\u00ed v\u00fd\u0161e uveden\u00fdch popis\u016f):<\/p>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-6904ba6 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"6904ba6\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-6a761e8\" data-id=\"6a761e8\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-67ddd4b elementor-widget elementor-widget-image\" data-id=\"67ddd4b\" data-element_type=\"widget\" data-e-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\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"650\" height=\"399\" src=\"https:\/\/forbot.com\/wp-content\/uploads\/2024\/03\/Stavy-CZ.jpg\" class=\"attachment-large size-large wp-image-9701\" alt=\"\" srcset=\"https:\/\/forbot.com\/wp-content\/uploads\/2024\/03\/Stavy-CZ.jpg 650w, https:\/\/forbot.com\/wp-content\/uploads\/2024\/03\/Stavy-CZ-300x184.jpg 300w\" sizes=\"(max-width: 650px) 100vw, 650px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-3da0805 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"3da0805\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-50d49e3\" data-id=\"50d49e3\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-dab1a98 elementor-widget elementor-widget-text-editor\" data-id=\"dab1a98\" data-element_type=\"widget\" data-e-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\t<p>Jak vid\u00edte, program by se mohl snadno skl\u00e1dat ze 4 nez\u00e1visl\u00fdch funkc\u00ed, kter\u00e9 na sebe p\u0159\u00edmo navazuj\u00ed &#8211; samoz\u0159ejm\u011b v pevn\u00e9m po\u0159ad\u00ed. <strong>Za\u010dn\u011bme tedy ps\u00e1t k\u00f3d.<\/strong><\/p>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-a70ec73 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"a70ec73\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-4c3299d\" data-id=\"4c3299d\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-bd3afa1 elementor-widget elementor-widget-heading\" data-id=\"bd3afa1\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">K\u00f3d jednoduch\u00e9 \u00fast\u0159edny alarmu na Arduino<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-132f540 custom-alert-box elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"132f540\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-698f9a3f\" data-id=\"698f9a3f\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-inner-section elementor-element elementor-element-12fac610 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"12fac610\" data-element_type=\"section\" data-e-type=\"section\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-inner-column elementor-element elementor-element-4f20139a blue-box-bestellen-ein-set\" data-id=\"4f20139a\" data-element_type=\"column\" data-e-type=\"column\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-446791ad elementor-widget elementor-widget-text-editor\" data-id=\"446791ad\" data-element_type=\"widget\" data-e-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\t<p style=\"text-align: center;\">Douf\u00e1m, \u017ee je to z\u0159ejm\u00e9, ale pro jistotu bych to r\u00e1d zd\u016fraznil: N\u00e1sleduj\u00edc\u00ed cvi\u010den\u00ed je pouze p\u0159\u00edkladem, z\u00e1bavn\u00fdm a hobby projektem. <strong>Rozhodn\u011b se nejedn\u00e1 o profesion\u00e1ln\u00ed a pr\u016fmyslov\u00e9 \u0159e\u0161en\u00ed<\/strong>. Jde o u\u010den\u00ed!<\/p>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-cdf757c elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"cdf757c\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-8b450c3\" data-id=\"8b450c3\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-9643fbd elementor-widget elementor-widget-text-editor\" data-id=\"9643fbd\" data-element_type=\"widget\" data-e-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\t<p>Z\u00e1kladn\u00ed struktura programu je uvedena n\u00ed\u017ee. Na za\u010d\u00e1tku jsem ji\u017e zadal informace o senzorech a bzu\u010d\u00e1ku, kter\u00e9 budou pou\u017eity pozd\u011bji. Tak\u00e9 jsem prohl\u00e1sil, \u017ee kl\u00e1vesnice &#8211; p\u0159ipojen\u00ed z\u016fstala stejn\u00e1 jako p\u0159i prvn\u00edm pou\u017eit\u00ed.<\/p>\n<p>Velmi d\u016fle\u017eit\u00e1 je prom\u011bnn\u00e1 <strong>StatusAlarm<\/strong>, kter\u00e1 n\u00e1s informuje o aktu\u00e1ln\u00edm stavu na\u0161eho za\u0159\u00edzen\u00ed. Jeho hodnota ur\u010duje, kter\u00e9 operace se pr\u00e1v\u011b prov\u00e1d\u011bj\u00ed. V hlavn\u00ed smy\u010dce pou\u017e\u00edv\u00e1me tak\u00e9 konstrukci sp\u00ednac\u00ed sk\u0159\u00ed\u0148ky popsanou v <a href=\"https:\/\/forbot.com\/cs\/kurz-arduino\/kurz-arduino-6-pokracovani-uart-serva\/\"><span style=\"text-decoration: underline;\">Kurzu Arduino \u00farove\u0148 I<\/span><\/a>.<\/p>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-364cbc33 custom-alert-box elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"364cbc33\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-4d88fade\" data-id=\"4d88fade\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-inner-section elementor-element elementor-element-64bcf6b elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"64bcf6b\" data-element_type=\"section\" data-e-type=\"section\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-inner-column elementor-element elementor-element-68631286 blue-box-bestellen-ein-set\" data-id=\"68631286\" data-element_type=\"column\" data-e-type=\"column\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-49b68747 elementor-widget elementor-widget-text-editor\" data-id=\"49b68747\" data-element_type=\"widget\" data-e-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\t<p style=\"text-align: center;\">Pomoc\u00ed tohoto switche se budeme pohybovat mezi k\u00f3dem,<br \/>kter\u00fd se bude prov\u00e1d\u011bt v z\u00e1vislosti na aktu\u00e1ln\u00edm stavu obvodu.<\/p>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-ec42472 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"ec42472\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-561e9d1\" data-id=\"561e9d1\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-5e4a3d5 elementor-widget elementor-widget-code-highlight\" data-id=\"5e4a3d5\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"prismjs-default copy-to-clipboard word-wrap\">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-cpp line-numbers\">\n\t\t\t\t<code readonly=\"true\" class=\"language-cpp\">\n\t\t\t\t\t<xmp>#define BZU\u010c\u00c1K 11\r\n#define JAZ\u00dd\u010cKOV\u00dd SP\u00cdNA\u010c 10\r\n#define PIR 1\r\n\r\n#include <Keypad.h> \/\/knihovna kl\u00e1vesnice\r\n\r\nconst byte ROWS = 4; \/\/ kolik \u0159\u00e1dk\u016f\r\nconst byte COLS = 4; \/\/kolik sloupc\u016f\r\n\r\nbyte rowPins[ROWS] = {5, 4, 3, 2}; \/\/piny \u0159\u00e1dk\u016f\r\nbyte colPins[COLS] = {6, 7, 8, 9}; \/\/piny sloupc\u016f\r\n\r\nchar keys[ROWS][COLS] = { \/\/mapov\u00e1n\u00ed kl\u00e1vesnice\r\n  {'1','2','3','A'},\r\n  {'4','5','6','B'},\r\n  {'7','8','9','C'},\r\n  {'*','0','#','D'}\r\n};\r\n\r\nKeypad kl\u00e1vesnice = Keypad( makeKeymap(keys), rowPins, colPins, ROWS, COLS ); \/\/inicializace kl\u00e1vesnice\r\n\r\nvolatile int stavAlarmu = 1;\r\n\r\nvoid setup() {\r\n  pinMode(BZU\u010c\u00c1K, OUTPUT);\r\n  pinMode(JAZ\u00dd\u010cKOV\u00dd SP\u00cdNA\u010c, INPUT_PULLUP);\r\n  pinMode(PIR, INPUT_PULLUP);\r\n}\r\n\r\nvoid loop() {\r\n  \r\n  switch(stavAlarmu) { \/\/Prov\u00e9st akci specifickou pro dan\u00fd stav\r\n    case 1:\r\n      \/\/Pohotovostn\u00ed stav\r\n\r\n    break;\r\n    \r\n    case 2:\r\n      \/\/Monitorov\u00e1n\u00ed\r\n\r\n    break;\r\n    \r\n    case 3:\r\n      \/\/Odzbrojov\u00e1n\u00ed\r\n\r\n    break;\r\n    \r\n    case 4:\r\n      \/\/Signalizace alarmu\r\n\r\n    break;\r\n   }\r\n  \r\n}<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-11d6b5c elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"11d6b5c\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-d05456f\" data-id=\"d05456f\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-99ada1a elementor-widget elementor-widget-heading\" data-id=\"99ada1a\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Stav 1: pohotovostn\u00ed stav alarmu<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-9e530a9 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"9e530a9\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-d278c19\" data-id=\"d278c19\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-2ac9a69 elementor-widget elementor-widget-text-editor\" data-id=\"2ac9a69\" data-element_type=\"widget\" data-e-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\t<p>B\u011bhem tohoto stavu by m\u011bl p\u0159\u00edstroj signalizovat svou p\u0159ipravenost, nap\u0159. rozsv\u00edcen\u00edm LED diody, a po stisknut\u00ed tla\u010d\u00edtka &#8222;A&#8220; by se m\u011bl alarm p\u0159epnout do stavu 2 &#8211; po vy\u010dk\u00e1n\u00ed na \u010das opu\u0161t\u011bn\u00ed m\u00edstnosti. Pou\u017eit\u00e1 dioda je p\u00e1sek diody RGB popsan\u00fd v prvn\u00edm \u010dl\u00e1nku t\u00e9to s\u00e9rie. P\u0159ipoj\u00edme je na pin A0.<\/p>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-fa1b5b8 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"fa1b5b8\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-10c2565\" data-id=\"10c2565\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-be20a1f elementor-widget elementor-widget-image\" data-id=\"be20a1f\" data-element_type=\"widget\" data-e-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\t\t\t\t<figure class=\"wp-caption\">\n\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"768\" height=\"417\" src=\"https:\/\/forbot.com\/wp-content\/uploads\/2024\/03\/kursArdu_5_1-768x417.jpg\" class=\"attachment-medium_large size-medium_large wp-image-4697\" alt=\"\" srcset=\"https:\/\/forbot.com\/wp-content\/uploads\/2024\/03\/kursArdu_5_1-768x417.jpg 768w, https:\/\/forbot.com\/wp-content\/uploads\/2024\/03\/kursArdu_5_1-300x163.jpg 300w, https:\/\/forbot.com\/wp-content\/uploads\/2024\/03\/kursArdu_5_1-1024x556.jpg 1024w, https:\/\/forbot.com\/wp-content\/uploads\/2024\/03\/kursArdu_5_1-1536x834.jpg 1536w, https:\/\/forbot.com\/wp-content\/uploads\/2024\/03\/kursArdu_5_1.jpg 2000w\" sizes=\"(max-width: 768px) 100vw, 768px\" \/>\t\t\t\t\t\t\t\t\t\t\t<figcaption class=\"widget-image-caption wp-caption-text\">P\u0159ipojen\u00ed LED veden\u00ed k Arduino.<\/figcaption>\n\t\t\t\t\t\t\t\t\t\t<\/figure>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-92d7c46 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"92d7c46\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-bfadc77\" data-id=\"bfadc77\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-49b23ed elementor-widget elementor-widget-text-editor\" data-id=\"49b23ed\" data-element_type=\"widget\" data-e-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\t<p>Program samoz\u0159ejm\u011b vy\u017eaduje tak\u00e9 p\u0159id\u00e1n\u00ed nov\u00e9 knihovny a inicializaci p\u00e1su. Kdy\u017e je za\u0159\u00edzen\u00ed v prvn\u00edm stavu, sv\u00edt\u00ed jedna z LED diod tak\u00e9 zelen\u011b.<\/p>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-87b074a elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"87b074a\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-4421bf1\" data-id=\"4421bf1\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-b8064c9 elementor-widget elementor-widget-code-highlight\" data-id=\"b8064c9\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"prismjs-default copy-to-clipboard word-wrap\">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-cpp line-numbers\">\n\t\t\t\t<code readonly=\"true\" class=\"language-cpp\">\n\t\t\t\t\t<xmp>#define BZU\u010c\u00c1K 11\r\n#define JAZ\u00dd\u010cKOV\u00dd SP\u00cdNA\u010c 10\r\n#define PIR 1\r\n\r\n#include <Keypad.h> \/\/\r\nknihovna kl\u00e1vesnice\r\n#include <Adafruit_NeoPixel.h> \/\/knihovna od LED p\u00e1sky\r\n\r\nconst byte ROWS = 4; \/\/kolik \u0159\u00e1dk\u016f\r\nconst byte COLS = 4; \/\/kolik sloupc\u016f\r\n\r\nbyte rowPins[ROWS] = {5, 4, 3, 2}; \/\/piny \u0159\u00e1dk\u016f\r\nbyte colPins[COLS] = {6, 7, 8, 9}; \/\/piny sloupc\u016f\r\nchar keys[ROWS][COLS] = {\/\/mapov\u00e1n\u00ed kl\u00e1vesnice\r\n  {'1','2','3','A'},\r\n  {'4','5','6','B'},\r\n  {'7','8','9','C'},\r\n  {'*','0','#','D'}\r\n};\r\n\r\nKeypad kl\u00e1vesnice = Keypad( makeKeymap(keys), rowPins, colPins, ROWS, COLS ); \/\/inicializace kl\u00e1vesnice\r\nAdafruit_NeoPixel p\u00e1sky = Adafruit_NeoPixel(8, A0, NEO_GRB + NEO_KHZ800); \/\/konfigurace LED p\u00e1sky\r\n\r\nvolatile int stavAlarmu = 1;\r\n\r\nvoid setup() {\r\n  pinMode(BZU\u010c\u00c1K, OUTPUT);\r\n  pinMode(JAZ\u00dd\u010cKOV\u00dd SP\u00cdNA\u010c, INPUT_PULLUP);\r\n  pinMode(PIR, INPUT_PULLUP);\r\n\r\n  p\u00e1sky.begin(); \/\/inicializace p\u00e1sky\r\n  p\u00e1sky.show(); \r\n}\r\n\r\nvoid loop() {\r\n  \r\n  switch(stavAlarmu) { \/\/Proveden\u00ed akce specifick\u00e9 pro dan\u00fd stav\r\n    case 1:\r\n      \/\/Pohotovostn\u00ed stav\r\n        p\u00e1sky.setPixelColor(0, p\u00e1sky.Color(0, 15, 0)); \/\/ dioda 1 sv\u00edt\u00ed zelen\u011b\r\n        p\u00e1sky.show();\r\n    break;\r\n    \r\n    case 2:\r\n      \/\/Monitorov\u00e1n\u00ed\r\n\r\n    break;\r\n    \r\n    case 3:\r\n      \/\/Odzbrojov\u00e1n\u00ed\r\n\r\n    break;\r\n    \r\n    case 4:\r\n      \/\/Signalizace alarmu\r\n\r\n    break;\r\n   }\r\n  \r\n}<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-d476696 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"d476696\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-1b91fe6\" data-id=\"1b91fe6\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-688a544 elementor-widget elementor-widget-text-editor\" data-id=\"688a544\" data-element_type=\"widget\" data-e-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\t<p>Nyn\u00ed je t\u0159eba p\u0159idat mo\u017enost odji\u0161t\u011bn\u00ed. P\u0159ipom\u00ednka: Pokud stiskneme tla\u010d\u00edtko ozna\u010den\u00e9 &#8222;A&#8220; (nap\u0159\u00edklad Alarm), mus\u00edme p\u0159epnout do stavu 2. Za t\u00edmto \u00fa\u010delem p\u0159id\u00e1me odpov\u00eddaj\u00edc\u00ed podm\u00ednku v r\u00e1mci stavu 1, fragment vypad\u00e1 takto:<\/p>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-7424ec9 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"7424ec9\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-81a3653\" data-id=\"81a3653\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-1c3cd2f elementor-widget elementor-widget-code-highlight\" data-id=\"1c3cd2f\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"prismjs-default copy-to-clipboard word-wrap\">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-cpp line-numbers\">\n\t\t\t\t<code readonly=\"true\" class=\"language-cpp\">\n\t\t\t\t\t<xmp>  char kl\u00e1vesa = 0;\r\n\r\n  switch(stavAlarmu) { \/\/Proveden\u00ed akce specifick\u00e9 pro dan\u00fd stav\r\n    case 1:\r\n      \/\/Pohotovostn\u00ed stav\r\n      p\u00e1sky.setPixelColor(0, p\u00e1sky.Color(0, 15, 0)); \/\/ dioda 1 sv\u00edt\u00ed zelen\u011b\r\n      p\u00e1sky.show();\r\n      \r\n      kl\u00e1vesa = kl\u00e1vesa.getKey();\r\n      if (kl\u00e1vesa == 'A') { \/\/M\u00e1 b\u00fdt alarm zapnut\u00fd?\r\n        stavAlarmu = 2;\r\n      }\r\n        \r\n    break;\r\n    \r\n    case 2:\r\n      \/\/Monitorov\u00e1n\u00ed\r\n      p\u00e1sky.setPixelColor(0, p\u00e1sky.Color(15, 0, 0)); \/\/ dioda 1 sv\u00edt\u00ed \u010derven\u011b\r\n      p\u00e1sky.show();\r\n    break;<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-1655236 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"1655236\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-012710c\" data-id=\"012710c\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-71094c5 elementor-widget elementor-widget-text-editor\" data-id=\"71094c5\" data-element_type=\"widget\" data-e-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\t<p>P\u0159i\u0159azen\u00ed prom\u011bnn\u00e9 <strong>stavAlarmu = 2<\/strong>; zp\u016fsob\u00ed, \u017ee se program v dal\u0161\u00edm cyklu smy\u010dky p\u0159epne do stavu st\u0159e\u017een\u00ed. Samoz\u0159ejm\u011b m\u00e1 smysl, jak bylo zam\u00fd\u0161leno, p\u0159idat v\u00fd\u0161e zm\u00edn\u011bn\u00fdch n\u011bkolik sekund pro opu\u0161t\u011bn\u00ed m\u00edstnosti. Pro dosa\u017een\u00ed lep\u0161\u00edho efektu jsem se rozhodl <strong>zde vytvo\u0159it dlouh\u00fd sv\u011bteln\u00fd efekt<\/strong>, kter\u00fd trv\u00e1 asi 10 sekund.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-22922d6a custom-alert-box elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"22922d6a\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-f635704\" data-id=\"f635704\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-inner-section elementor-element elementor-element-5e4ad4a5 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"5e4ad4a5\" data-element_type=\"section\" data-e-type=\"section\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-inner-column elementor-element elementor-element-11fe1d81 blue-box-bestellen-ein-set\" data-id=\"11fe1d81\" data-element_type=\"column\" data-e-type=\"column\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-41259b0e elementor-widget elementor-widget-text-editor\" data-id=\"41259b0e\" data-element_type=\"widget\" data-e-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\t<p style=\"text-align: center;\">V tomto p\u0159\u00edpad\u011b p\u0159eru\u0161en\u00ed programu pomoc\u00ed funkce zpo\u017ed\u011bn\u00ed <strong>nem\u00e1 negativn\u00ed<\/strong> vliv na program.<\/p>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-de97f48 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"de97f48\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-776654f\" data-id=\"776654f\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-21c42a8 elementor-widget elementor-widget-text-editor\" data-id=\"21c42a8\" data-element_type=\"widget\" data-e-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\t<p>Do programu jsem tak\u00e9 p\u0159idal funkci, kter\u00e1 vypne v\u0161echny LED diody. Ve druh\u00e9m stavu (pohotovostn\u00ed re\u017eim) <strong>bylo tak\u00e9 velmi mal\u00e9 zpo\u017ed\u011bn\u00ed<\/strong>. D\u00edky tomu m\u00e1me jistotu, \u017ee za\u0159\u00edzen\u00ed funguje (blikaj\u00edc\u00ed LED dioda) a je dostate\u010dn\u011b mal\u00e9, aby neru\u0161ilo zbytek programu.<\/p>\n<p>V sou\u010dasn\u00e9 dob\u011b by m\u011bl k\u00f3d vypadat takto:<\/p>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-fae4efe elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"fae4efe\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-cb67405\" data-id=\"cb67405\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap\">\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-635ed4a elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"635ed4a\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-57e7b59\" data-id=\"57e7b59\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-a80d4b0 elementor-widget elementor-widget-text-editor\" data-id=\"a80d4b0\" data-element_type=\"widget\" data-e-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\t<p>Vyzkou\u0161ejte alarmov\u00fd obvod v praxi (\u010derven\u00e1 LED dioda skute\u010dn\u011b blik\u00e1 siln\u011bji):<\/p>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-b152631 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"b152631\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-2656aa0\" data-id=\"2656aa0\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-897073d elementor-widget elementor-widget-video\" data-id=\"897073d\" data-element_type=\"widget\" data-e-type=\"widget\" data-settings=\"{&quot;youtube_url&quot;:&quot;https:\\\/\\\/www.youtube.com\\\/watch?v=7w-w30-9g_8&quot;,&quot;video_type&quot;:&quot;youtube&quot;,&quot;controls&quot;:&quot;yes&quot;}\" data-widget_type=\"video.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-wrapper elementor-open-inline\">\n\t\t\t<div class=\"elementor-video\"><\/div>\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-0ede386 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"0ede386\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-f078e05\" data-id=\"f078e05\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-37e3758 elementor-widget elementor-widget-heading\" data-id=\"37e3758\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Stav 2: Monitorov\u00e1n\u00ed m\u00edstnosti<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-a57b4ac elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"a57b4ac\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-41a66ea\" data-id=\"41a66ea\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-22600f4 elementor-widget elementor-widget-text-editor\" data-id=\"22600f4\" data-element_type=\"widget\" data-e-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\t<p>Pokud je za\u0159\u00edzen\u00ed ve druh\u00e9m stavu, m\u011blo by krom\u011b blikaj\u00edc\u00ed LED diody neust\u00e1le kontrolovat stav senzor\u016f. T\u00e9ma p\u0159eru\u0161en\u00ed v tuto chv\u00edli ponech\u00e1me stranou &#8211; <strong>m\u016f\u017eeme se bez n\u011bj obej\u00edt<\/strong>.<\/p>\n<p>P\u0159ed zpracov\u00e1n\u00edm programu mus\u00ed b\u00fdt samoz\u0159ejm\u011b p\u0159ipojeny po\u017eadovan\u00e9 senzory. V\u00fdvody jsou ji\u017e v programu definov\u00e1ny pomoc\u00ed direktivy <strong>#define<\/strong>. Pro dal\u0161\u00ed experimenty sta\u010d\u00ed p\u0159ipojit oba senzory (jaz\u00fd\u010dkov\u00fd sp\u00edna\u010d a PIR) k na\u0161\u00ed z\u00e1kladn\u00ed desce:<\/p>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-04f8754 elementor-widget elementor-widget-code-highlight\" data-id=\"04f8754\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"prismjs-default copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-javascript line-numbers\">\n\t\t\t\t<code readonly=\"true\" class=\"language-javascript\">\n\t\t\t\t\t<xmp>#define BZU\u010c\u00c1K 11\r\n#define JAZ\u00dd\u010cKOV\u00dd SP\u00cdNA\u010c 10\r\n#define PIR 1\r\n\r\n#include <Keypad.h> \/\/knihovna kl\u00e1vesnice\r\n#include <Adafruit_NeoPixel.h> \/\/knihovna LED p\u00e1sky\r\n\r\nconst byte ROWS = 4; \/\/ kolik \u0159\u00e1dk\u016f\r\nconst byte COLS = 4; \/\/kolik sloupc\u016f\r\n\r\nbyte rowPins[ROWS] = {5, 4, 3, 2}; \/\/piny \u0159\u00e1dk\u016f\r\nbyte colPins[COLS] = {6, 7, 8, 9}; \/\/piny sloupc\u016f\r\n\r\nchar keys[ROWS][COLS] = { \/\/mapov\u00e1n\u00ed kl\u00e1vesnice\r\n  {'1','2','3','A'},\r\n  {'4','5','6','B'},\r\n  {'7','8','9','C'},\r\n  {'*','0','#','D'}\r\n};\r\n\r\nKeypad kl\u00e1vesnice = Keypad( makeKeymap(keys), rowPins, colPins, ROWS, COLS ); \/\/inicializace kl\u00e1vesnice\r\nAdafruit_NeoPixel p\u00e1sky = Adafruit_NeoPixel(8, A0, NEO_GRB + NEO_KHZ800); \/\/konfigurace LED p\u00e1sky\r\n\r\nvolatile int stavAlarmu = 1;\r\n\r\nvoid setup() {\r\n  pinMode(BZU\u010c\u00c1K, OUTPUT);\r\n  pinMode(JAZ\u00dd\u010cKOV\u00dd SP\u00cdNA\u010c, INPUT_PULLUP);\r\n  pinMode(PIR, INPUT_PULLUP);\r\n\r\n  p\u00e1sky.begin(); \/\/inicializace p\u00e1sky\r\n  p\u00e1sky.show(); \r\n}\r\n\r\nvoid loop() {\r\n  char kl\u00e1vesa = 0; \/\/prom\u011bnn\u00e1 pro ulo\u017een\u00ed znak\u016f kl\u00e1vesnice\r\n  int i = 0; \/\/pomocn\u00e1 prom\u011bnn\u00e1 pro smy\u010dku\r\n\r\n  switch(stavAlarmu) { \/\/Proveden\u00ed akce specifick\u00e9 pro dan\u00fd stav\r\n    case 1:\r\n      \/\/pohotovostn\u00ed stav\r\n      p\u00e1sky.setPixelColor(0, p\u00e1sky.Color(0, 15, 0)); \/\/ Dioda 1 sv\u00edt\u00ed zelen\u011b\r\n      p\u00e1sky.show();\r\n      \r\n      kl\u00e1vesa = kl\u00e1vesnice.getKey();\r\n      if (kl\u00e1vesa == 'A') { \/\/M\u00e1m aktivovat alarm?\r\n        for (i = 1; i < 8; i++) {\r\n          Streifen.setPixelColor(i, p\u00e1sky.Color(0, 0, 15)); \/\/ Dioda \u010d. i sv\u00edt\u00ed mod\u0159e\r\n          p\u00e1sky.show();\r\n          delay(710);\r\n        } \/\/ proveden\u00ed t\u00e9to smy\u010dky trv\u00e1 p\u0159ibli\u017en\u011b 5 sekund\r\n        \r\n         for (i = 1; i < 8; i++) {\r\n          p\u00e1sky.setPixelColor(i, p\u00e1sky.Color(15, 0, 0)); \/\/ Dioda \u010d. i sv\u00edt\u00ed \u010derven\u011b\r\n          p\u00e1sky.show();\r\n          delay(710);\r\n        } \/\/ proveden\u00ed t\u00e9to smy\u010dky trv\u00e1 p\u0159ibli\u017en\u011b 5 sekund\r\n        \r\n        vypniDiody();\r\n        stavAlarmu = 2;\r\n      }\r\n        \r\n    break;\r\n    \r\n    case 2:\r\n      \/\/Monitorov\u00e1n\u00ed\r\n      p\u00e1sky.setPixelColor(7, p\u00e1sky.Color(15, 0, 0)); \/\/Dioda \u010d. 8 sv\u00edt\u00ed \u010derven\u011b\r\n      p\u00e1sky.show();\r\n      delay(50);\r\n      p\u00e1sky.setPixelColor(7, p\u00e1sky.Color(0, 0, 0)); \/\/Dioda \u010d. 8 vypnuta\r\n      p\u00e1sky.show();\r\n      delay(50);\r\n      \r\n    break;\r\n    \r\n    case 3:\r\n      \/\/Odzbrojov\u00e1n\u00ed\r\n\r\n    break;\r\n    \r\n    case 4:\r\n      \/\/Sygnalizace alarmu\r\n\r\n    break;\r\n   }\r\n  \r\n}\r\n\r\nvoid vypniDiody() {\r\n  int i = 0;\r\n  for (i = 0; i < 8; i++){\r\n    p\u00e1sky.setPixelColor(i, p\u00e1sky.Color(0, 0, 0)); \/\/Dioda LED 1 vypnuta   \r\n  }\r\n\r\n  p\u00e1sky.show();\r\n}<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-47042d4 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"47042d4\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-7100214\" data-id=\"7100214\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-b0e5cb6 elementor-widget elementor-widget-image\" data-id=\"b0e5cb6\" data-element_type=\"widget\" data-e-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\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"682\" src=\"https:\/\/forbot.com\/wp-content\/uploads\/2024\/03\/kursArdu_5_3-1024x682.jpg\" class=\"attachment-large size-large wp-image-4723\" alt=\"\" srcset=\"https:\/\/forbot.com\/wp-content\/uploads\/2024\/03\/kursArdu_5_3-1024x682.jpg 1024w, https:\/\/forbot.com\/wp-content\/uploads\/2024\/03\/kursArdu_5_3-300x200.jpg 300w, https:\/\/forbot.com\/wp-content\/uploads\/2024\/03\/kursArdu_5_3-768x512.jpg 768w, https:\/\/forbot.com\/wp-content\/uploads\/2024\/03\/kursArdu_5_3-1536x1024.jpg 1536w, https:\/\/forbot.com\/wp-content\/uploads\/2024\/03\/kursArdu_5_3.jpg 2000w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t<div class=\"elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-516deb4\" data-id=\"516deb4\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-efe48b1 elementor-widget elementor-widget-image\" data-id=\"efe48b1\" data-element_type=\"widget\" data-e-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\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"682\" src=\"https:\/\/forbot.com\/wp-content\/uploads\/2024\/03\/kursArdu_5_2-1024x682.jpg\" class=\"attachment-large size-large wp-image-4726\" alt=\"\" srcset=\"https:\/\/forbot.com\/wp-content\/uploads\/2024\/03\/kursArdu_5_2-1024x682.jpg 1024w, https:\/\/forbot.com\/wp-content\/uploads\/2024\/03\/kursArdu_5_2-300x200.jpg 300w, https:\/\/forbot.com\/wp-content\/uploads\/2024\/03\/kursArdu_5_2-768x512.jpg 768w, https:\/\/forbot.com\/wp-content\/uploads\/2024\/03\/kursArdu_5_2-1536x1024.jpg 1536w, https:\/\/forbot.com\/wp-content\/uploads\/2024\/03\/kursArdu_5_2.jpg 2000w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-79fea07 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"79fea07\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-726b105\" data-id=\"726b105\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-537b9e7 elementor-widget elementor-widget-text-editor\" data-id=\"537b9e7\" data-element_type=\"widget\" data-e-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\t<p>V dal\u0161\u00edm kroku p\u0159id\u00e1me dv\u011b podm\u00ednky. Detekce pohybu by m\u011bla okam\u017eit\u011b spustit alarm, zat\u00edmco otev\u0159en\u00ed dve\u0159\u00ed (jaz\u00fd\u010dkov\u00fd sp\u00edna\u010d) by n\u00e1m m\u011blo umo\u017enit deaktivaci syst\u00e9mu. To lze velmi snadno prov\u00e9st pomoc\u00ed prom\u011bnn\u00e9 <strong>StatusAlarm<\/strong>.<\/p>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-2e65b4c elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"2e65b4c\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-bbf1d98\" data-id=\"bbf1d98\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-74d8068 elementor-widget elementor-widget-code-highlight\" data-id=\"74d8068\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"prismjs-default copy-to-clipboard word-wrap\">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-cpp line-numbers\">\n\t\t\t\t<code readonly=\"true\" class=\"language-cpp\">\n\t\t\t\t\t<xmp>    case 2:\r\n      \/\/Monitorov\u00e1n\u00ed\r\n      p\u00e1sky.setPixelColor(7, p\u00e1sky.Color(15, 0, 0)); \/\/Dioda \u010d. 8 sv\u00edt\u00ed \u010derven\u011b\r\n      p\u00e1sky.show();\r\n      delay(50);\r\n      p\u00e1sky.setPixelColor(7, p\u00e1sky.Color(0, 0, 0)); \/\/Dioda \u010d. 8 je vypnuta\r\n      p\u00e1sky.show();\r\n      delay(50);\r\n\r\n      if (digitalRead(PIR) == HIGH) {\r\n        stavAlarmu = 4; \/\/Okam\u017eit\u011b spust\u00edme alarm\r\n      } else if (digitalRead(JAZ\u00dd\u010cKOV\u00dd SP\u00cdNA\u010c) == HIGH) {\r\n        stavAlarmu = 3; \/\/\u0160ance na odzbrojen\u00ed\r\n      }\r\n      \r\n    break;<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-2e44709 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"2e44709\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-790ddb1\" data-id=\"790ddb1\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-514c3b0 elementor-widget elementor-widget-text-editor\" data-id=\"514c3b0\" data-element_type=\"widget\" data-e-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\t<p>Po spu\u0161t\u011bn\u00ed programu se samoz\u0159ejm\u011b neprojev\u00ed \u017e\u00e1dn\u00e9 nov\u00e9 \u00fa\u010dinky, <strong>proto\u017ee stavy 3 a 4 je\u0161t\u011b nemaj\u00ed \u017e\u00e1dn\u00fd \u00fa\u010dinek<\/strong>. Proto nejprve obejdeme stav 3 t\u00edm, \u017ee obvod deaktivujeme. Nejprve p\u0159id\u00e1me do stavu 4 n\u011bkolik \u0159\u00e1dk\u016f, kter\u00e9 spust\u00ed alarm. Zat\u00edm jen lehk\u00fd efekt.<\/p>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-302ce99 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"302ce99\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-6438520\" data-id=\"6438520\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-4518861 elementor-widget elementor-widget-heading\" data-id=\"4518861\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Stav 4: Signalizace alarmu<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-5a08b5a elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"5a08b5a\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-92e0e5b\" data-id=\"92e0e5b\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-4dee4d5 elementor-widget elementor-widget-text-editor\" data-id=\"4dee4d5\" data-element_type=\"widget\" data-e-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\t<p>Program v sou\u010dasn\u00e9 dob\u011b neumo\u017e\u0148uje ukon\u010dit re\u017eim alarmu. V t\u00e9to \u010d\u00e1sti k\u00f3du tedy m\u016f\u017eete &#8222;upustit p\u00e1ru&#8220;, nedoch\u00e1z\u00ed zde k \u017e\u00e1dn\u00fdm prodlev\u00e1m, kter\u00e9 by n\u00e1m mohly u\u0161kodit. Pro za\u010d\u00e1tek p\u0159id\u00e1m blik\u00e1n\u00ed ve dvou barv\u00e1ch, \u010derven\u00e9 a modr\u00e9:<\/p>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-2155963 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"2155963\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-cf424f4\" data-id=\"cf424f4\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-721a807 elementor-widget elementor-widget-code-highlight\" data-id=\"721a807\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"prismjs-default copy-to-clipboard word-wrap\">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-cpp line-numbers\">\n\t\t\t\t<code readonly=\"true\" class=\"language-cpp\">\n\t\t\t\t\t<xmp>    case 4:\r\n      \/\/Signalizace alarmu\r\n      for (i = 0; i < 8; i++) {  \r\n        p\u00e1sky.setPixelColor(i, p\u00e1sky.Color(255, 0, 0)); \/\/Dioda \u010d. i sv\u00edt\u00ed \u010derven\u011b \r\n      }\r\n      p\u00e1sky.show();\r\n      delay(100);\r\n      \r\n      for (i = 0; i < 8; i++) {  \r\n        p\u00e1sky.setPixelColor(i, p\u00e1sky.Color(0, 0, 255)); \/\/Dioda \u010d. i sv\u00edt\u00ed mod\u0159e \r\n      }\r\n      p\u00e1sky.show();\r\n      delay(100);\r\n\r\n    break;\r\n   }<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-6c221e8 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"6c221e8\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-fec8e77\" data-id=\"fec8e77\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-d8ae630 elementor-widget elementor-widget-text-editor\" data-id=\"d8ae630\" data-element_type=\"widget\" data-e-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\t<p>K\u00f3d je tak jednoduch\u00fd, \u017ee nen\u00ed t\u0159eba nic vysv\u011btlovat. Pokud m\u00e1 n\u011bkdo pochybnosti o tom, co se zde d\u011bje, doporu\u010duji pod\u00edvat se na za\u010d\u00e1tek \u010dl\u00e1nku. <a href=\"https:\/\/forbot.com\/cs\/kurz-arduino\/kurz-arduino-uroven-ii-1-uvod-obsah\/\"><span style=\"text-decoration: underline;\">Arduino (\u00farove\u0148 II)<\/span><\/a> abyste se vr\u00e1tili zp\u011bt. Od t\u00e9to chv\u00edle by za\u0159\u00edzen\u00ed m\u011blo spustit alarm, kdy\u017e je aktivov\u00e1n alarm a kdy\u017e PIR senzor detekuje pohyb:<\/p>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-65bc6b1 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"65bc6b1\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-18e8fcc\" data-id=\"18e8fcc\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-28770c4 elementor-widget elementor-widget-video\" data-id=\"28770c4\" data-element_type=\"widget\" data-e-type=\"widget\" data-settings=\"{&quot;youtube_url&quot;:&quot;https:\\\/\\\/www.youtube.com\\\/watch?v=ykOeUV02fAA&quot;,&quot;video_type&quot;:&quot;youtube&quot;,&quot;controls&quot;:&quot;yes&quot;}\" data-widget_type=\"video.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-wrapper elementor-open-inline\">\n\t\t\t<div class=\"elementor-video\"><\/div>\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-65bbcf5 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"65bbcf5\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-646978c\" data-id=\"646978c\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-ce81950 elementor-widget elementor-widget-heading\" data-id=\"ce81950\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Stav 3: Vstup pin\u016f<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-e134500 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"e134500\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-98129f6\" data-id=\"98129f6\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-0f24731 elementor-widget elementor-widget-text-editor\" data-id=\"0f24731\" data-element_type=\"widget\" data-e-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\t<p>Nastal \u010das roz\u0161\u00ed\u0159it program o jednu z jeho nejd\u016fle\u017eit\u011bj\u0161\u00edch funkc\u00ed, a to deaktivaci alarmu. Tento probl\u00e9m vy\u0159e\u0161\u00edme ve dvou kroc\u00edch. Zpo\u010d\u00e1tku se budeme zab\u00fdvat pouze zad\u00e1n\u00edm k\u00f3du PIN.<\/p>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-43918fba custom-alert-box elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"43918fba\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-11470acb\" data-id=\"11470acb\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-inner-section elementor-element elementor-element-7a650ec5 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"7a650ec5\" data-element_type=\"section\" data-e-type=\"section\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-inner-column elementor-element elementor-element-646bf80c blue-box-bestellen-ein-set\" data-id=\"646bf80c\" data-element_type=\"column\" data-e-type=\"column\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-7648d8ed elementor-widget elementor-widget-text-editor\" data-id=\"7648d8ed\" data-element_type=\"widget\" data-e-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\t<p>Pozd\u011bji p\u0159id\u00e1me \u010d\u00edta\u010d, kter\u00fd kontroluje,<br \/>zda ji\u017e vypr\u0161el \u010das pro zad\u00e1n\u00ed k\u00f3du.<\/p>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-bae6bb0 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"bae6bb0\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-027d17f\" data-id=\"027d17f\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-247df08 elementor-widget elementor-widget-code-highlight\" data-id=\"247df08\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"prismjs-default copy-to-clipboard word-wrap\">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-cpp line-numbers\">\n\t\t\t\t<code readonly=\"true\" class=\"language-cpp\">\n\t\t\t\t\t<xmp>int pinAlarmPozice = 1;\r\nchar pinCifra1 = '1';\r\nchar pinCifra2 = '2';\r\nchar pinCifra3 = '3';\r\nchar pinCifra4 = '4';<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-ae0a3a7 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"ae0a3a7\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-f554d31\" data-id=\"f554d31\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-1ab161b elementor-widget elementor-widget-text-editor\" data-id=\"1ab161b\" data-element_type=\"widget\" data-e-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\t<p>Jak jsem ji\u017e zm\u00ednil, <strong>v t\u00e9to f\u00e1zi kurzu nepou\u017e\u00edv\u00e1me tabulky<\/strong>, tak\u017ee jsem k\u00f3d zapsal do 4 samostatn\u00fdch prom\u011bnn\u00fdch. Pokud budeme v n\u011bkter\u00e9m z p\u0159\u00ed\u0161t\u00edch \u010dl\u00e1nk\u016f pracovat s tabulkami, m\u016f\u017eeme se sem vr\u00e1tit a napsat k\u00f3d elegantn\u011bji.<\/p>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-530eaa6b custom-alert-box elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"530eaa6b\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-4a1ede39\" data-id=\"4a1ede39\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-inner-section elementor-element elementor-element-6f09d134 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"6f09d134\" data-element_type=\"section\" data-e-type=\"section\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-inner-column elementor-element elementor-element-63c5edd8 blue-box-bestellen-ein-set\" data-id=\"63c5edd8\" data-element_type=\"column\" data-e-type=\"column\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-2bf902df elementor-widget elementor-widget-text-editor\" data-id=\"2bf902df\" data-element_type=\"widget\" data-e-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\t<p style=\"text-align: center;\">V tuto chv\u00edli bych v\u0161ak cht\u011bl co nejjednodu\u0161eji uk\u00e1zat.<br \/>jak tento mechanismus kontroly k\u00f3du funguje.<\/p>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-88c000a elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"88c000a\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-a947cfd\" data-id=\"a947cfd\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-12f6c5d elementor-widget elementor-widget-text-editor\" data-id=\"12f6c5d\" data-element_type=\"widget\" data-e-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\t<p>Jakmile deklarujeme k\u00f3d (v tomto p\u0159\u00edpad\u011b 1234), m\u016f\u017eeme prov\u00e9st kontrolu ve stavu 3. Mechanismus funguje n\u00e1sledovn\u011b &#8211; koment\u00e1\u0159e ke k\u00f3du by m\u011bly v\u0161e objasnit:<\/p>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-08d4209 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"08d4209\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-7440cad\" data-id=\"7440cad\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-270b898 elementor-widget__width-initial elementor-widget elementor-widget-code-highlight\" data-id=\"270b898\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"prismjs-default copy-to-clipboard word-wrap\">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-cpp line-numbers\">\n\t\t\t\t<code readonly=\"true\" class=\"language-cpp\">\n\t\t\t\t\t<xmp>    case 3:\r\n      \/\/Odzbrojov\u00e1n\u00ed\r\n      kl\u00e1vesa = kl\u00e1vesnice.getKey();\r\n      if (kl\u00e1vesa) {\r\n        \/\/Je dal\u0161\u00ed uveden\u00e1 cifra spr\u00e1vn\u00e1?\r\n        if (pinAlarmuPozice\r\n == 1 && kl\u00e1vesa == pinCifra1\r\n1) { \/\/Pokud zkontrolujeme 1. pozici PINu\r\n          pinAlarmuPozice\r\n++; \/\/\u010c\u00edslo spr\u00e1vn\u00e9, lze zkontrolovat u dal\u0161\u00edho       \r\n        } else if (pinAlarmuPozice\r\n == 2 && kl\u00e1vesa == pinCifra2\r\n2) { \/\/Pokud zkontrolujeme 2 pozice PINu   \r\n          pinAlarmuPozice\r\n++; \/\/\u010c\u00edslo spr\u00e1vn\u00e9, lze zkontrolovat u dal\u0161\u00edho              \r\n        } else if (pinAlarmuPozice\r\n == 3 && kl\u00e1vesa == pinCifra3\r\n3) { \/\/Pokud zkontrolujeme 3 pozice PINu\r\n          pinAlarmPosition\r\n++; \/\/\u010c\u00edslo spr\u00e1vn\u00e9, lze zkontrolovat u dal\u0161\u00edho             \r\n        } else if (pinAlarmuPozice\r\n == 4 && kl\u00e1vesa == pinCifra4\r\nPokud zkontrolujeme 4 pozice pinu            stavAlarmu = 1; \/\/V\u0161echny 4 \u010d\u00edslice k\u00f3du jsou spr\u00e1vn\u00e9      \r\n            pinAlarmuPozice\r\n = 1; \/\/Resetujeme informace o zad\u00e1van\u00e9m PINu  \r\n        } else {\r\n     stavAlarmu = 4; \/\/Chyba k\u00f3du PIN - spu\u0161t\u011bn\u00ed alarmu \r\n           pinAlarmuPozice\r\n = 1; \/\/Resetujeme informace o zad\u00e1van\u00e9m PINu   \r\n        }\r\n      }\r\n    break;<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-3cf41df elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"3cf41df\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-37effe8\" data-id=\"37effe8\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-e2e8353 elementor-widget elementor-widget-text-editor\" data-id=\"e2e8353\" data-element_type=\"widget\" data-e-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\t<p>Stru\u010dn\u011b \u0159e\u010deno, tento mechanismus si pamatuje, kolik spr\u00e1vn\u00fdch znak\u016f k\u00f3du ji\u017e bylo zad\u00e1no do prom\u011bnn\u00e9 <strong>pinAlarmuPozice<\/strong>. T\u00edmto zp\u016fsobem v\u00edme, se kterou prom\u011bnnou m\u00e1me aktu\u00e1ln\u011b porovn\u00e1vat zadan\u00fd znak.<\/p><p>Pokud je \u010dtvrt\u00fd zadan\u00fd znak spr\u00e1vn\u00fd, znamen\u00e1 to, \u017ee cel\u00fd k\u00f3d byl spr\u00e1vn\u00fd &#8211; m\u016f\u017eeme se vr\u00e1tit do <strong>stavu 1 (\u201eStandby\u201c)<\/strong>. Pokud n\u011bkde p\u0159i zad\u00e1v\u00e1n\u00ed k\u00f3du ud\u011bl\u00e1me chybu, <strong>p\u0159epneme se do stavu 4 a spust\u00edme alarm<\/strong>.<\/p><p>V tomto okam\u017eiku by m\u011bl cel\u00fd k\u00f3d vypadat takto:<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-db888e5 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"db888e5\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-7141325\" data-id=\"7141325\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-2b87cff elementor-widget elementor-widget-code-highlight\" data-id=\"2b87cff\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"prismjs-default copy-to-clipboard word-wrap\">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-cpp line-numbers\">\n\t\t\t\t<code readonly=\"true\" class=\"language-cpp\">\n\t\t\t\t\t<xmp>#define BZU\u010c\u00c1K 11\r\n#define JAZ\u00dd\u010cKOV\u00dd SP\u00cdNA\u010c 10\r\n#define PIR 1\r\n\r\n#include <Keypad.h> \/\/knihovna kl\u00e1vesnice  \r\n#include <Adafruit_NeoPixel.h> \/\/knihovna led p\u00e1sky  \r\n\r\nconst byte ROWS = 4; \/\/ kolik \u0159\u00e1dk\u016f \r\nconst byte COLS = 4; \/\/kolik sloupc\u016f\r\n\r\nbyte rowPins[ROWS] = {5, 4, 3, 2}; \/\/piny \u0159\u00e1dk\u016f\r\nbyte colPins[COLS] = {6, 7, 8, 9}; \/\/piny sloupc\u016f\r\n\r\nchar keys[ROWS][COLS] = { \/\/mapov\u00e1n\u00ed kl\u00e1vesnice\r\n  {'1','2','3','A'},\r\n  {'4','5','6','B'},\r\n  {'7','8','9','C'},\r\n  {'*','0','#','D'}\r\n};\r\n\r\nKeypad kl\u00e1vesnice = Keypad( makeKeymap(keys), rowPins, colPins, ROWS, COLS ); \/\/ inicializace kl\u00e1vesnice\r\nAdafruit_NeoPixel p\u00e1sky = Adafruit_NeoPixel(8, A0, NEO_GRB + NEO_KHZ800); \/\/konfigurace led p\u00e1sky \r\n\r\nvolatile int stavAlarmu  = 1;\r\nint pinAlarmuPozice = 1;\r\nchar pinCifra1 = '1';\r\nchar pinCifra2 = '2';\r\nchar pinCifra3 = '3';\r\nchar pinCifra4 = '4';\r\n\r\nvoid setup() {\r\n  pinMode(BZU\u010c\u00c1K, OUTPUT);\r\n  pinMode(JAZ\u00dd\u010cKOV\u00dd SP\u00cdNA\u010c, INPUT_PULLUP);\r\n  pinMode(PIR, INPUT_PULLUP);\r\n\r\n  p\u00e1sky.begin(); \/\/inicializace p\u00e1sky\r\n  p\u00e1sky.show(); \r\n}\r\n\r\nvoid loop() {\r\n  char kl\u00e1vesa = 0; \/\/prom\u011bnn\u00e1 pro ulo\u017een\u00ed znak\u016f kl\u00e1vesnice    \r\n  int i = 0; \/\/pomocn\u00e1 prom\u011bnn\u00e1 pro smy\u010dku  \r\n\r\n  switch(stavAlarmu ) { \/\/Proveden\u00ed akce specifick\u00e9 pro dan\u00fd stav   \r\n    case 1:\r\n      \/\/Pohotovostn\u00ed stav\r\n      p\u00e1sky.setPixelColor(0, p\u00e1sky.Color(0, 15, 0)); \/\/dioda \u010d. 1 sv\u00edt\u00ed zelen\u011b\r\n      p\u00e1sky.show();\r\n      \r\n      kl\u00e1vesa = kl\u00e1vesnice.getKey();\r\n      if (kl\u00e1vesa == 'A') { \/\/Aktivovat alarm?\r\n        for (i = 1; i < 8; i++) {\r\n          p\u00e1sky.setPixelColor(i, p\u00e1sky.Color(0, 0, 15)); \/\/dioda \u010d.i sv\u00edt\u00ed mod\u0159e\r\n          p\u00e1sky.show();\r\n          delay(710);\r\n        } \/\/ proveden\u00ed t\u00e9to smy\u010dky trv\u00e1 p\u0159ibli\u017en\u011b 5 sekund     \r\n        \r\n         for (i = 1; i < 8; i++) {\r\n          p\u00e1sky.setPixelColor(i, p\u00e1sky.Color(15, 0, 0)); \/\/dioda \u010d. i sv\u00edt\u00ed \u010derven\u011b\r\n          p\u00e1sky.show();\r\n          delay(710);\r\n        } \/\/ proveden\u00ed t\u00e9to smy\u010dky trv\u00e1 p\u0159ibli\u017en\u011b 5 sekund           \r\n          \r\n        vypniDiody();\r\n        stavAlarmu  = 2;\r\n      }\r\n        \r\n    break;\r\n    \r\n    case 2:\r\n      \/\/Monitorov\u00e1n\u00ed\r\n      p\u00e1sky.setPixelColor(7, p\u00e1sky.Color(15, 0, 0)); \/\/dioda \u010d. 8 sv\u00edt\u00ed \u010derven\u011b\r\n      p\u00e1sky.show();\r\n      delay(50);\r\n      p\u00e1sky.setPixelColor(7, p\u00e1sky.Color(0, 0, 0)); \/\/dioda \u010d. 8 vypnuta\r\n      p\u00e1sky.show();\r\n      delay(50);\r\n\r\n      if (digitalRead(PIR) == HIGH) {\r\n        stavAlarmu  = 4; \/\/Okam\u017eit\u011b spust\u00edme alarm   \r\n      } else if (digitalRead(JAZ\u00dd\u010cKOV\u00dd SP\u00cdNA\u010c) == HIGH) {\r\n        stavAlarmu  = 3; \/\/\u0160ance na odzbrojen\u00ed  \r\n      }\r\n      \r\n    break;\r\n    \r\n    case 3:\r\n      \/\/Odzbrojov\u00e1n\u00ed\r\n      kl\u00e1vesa = kl\u00e1vesnice.getKey();\r\n      if (kl\u00e1vesa) {\r\n        \/\/Je dal\u0161\u00ed uveden\u00e1 \u010d\u00edslice spr\u00e1vn\u00e1?     \r\n        if (pinAlarmuPozice pinAlarmuPozice == 1 && kl\u00e1vesa == pinCifra1) { \/\/Pokud zkontrolujeme 1 pozici PINu    \r\n          pinAlarmuPozice++; \/\/\u010c\u00edslo spr\u00e1vn\u00e9, lze zkontrolovat u dal\u0161\u00edho      \r\n        } else if (pinAlarmuPozice == 2 && kl\u00e1vesa == pinCifra2) { \/\/Pokud zkontrolujeme 2 pozice PINu \r\n          pinAlarmuPozice++; \/\/\u010cislo spr\u00e1vn\u00e9, lze zkontrolovat u dal\u0161\u00edho              \r\n        } else if (pinAlarmuPozice == 3 && kl\u00e1vesa == pinCifra3) { \/\/Pokud zkontrolujeme 3 pozice PINu\r\n          pinAlarmuPozice++; \/\/\u010c\u00edslo spr\u00e1vn\u00e9, lze zkontrolovat u dal\u0161\u00edho           \r\npinAlarmuPozice == 4kl\u00e1vesa            stavAlarmu  = 1; \/\/V\u0161echny 4 \u010d\u00edslice k\u00f3du jsou spr\u00e1vn\u00e9        \r\n      pinAlarmuPozice = 1; \/\/Resetujeme informace o zad\u00e1van\u00e9m pinu  } else {\r\n           stavAlarmu  = 4; \/\/Chyba k\u00f3du PIN - spustit alarm\r\n           pinAlarmuPozice = 1; \/\/Resetujeme informace o zad\u00e1van\u00e9m PINu   \r\n        }\r\n      }\r\n    break;\r\n    \r\n    case 4:\r\n      \/\/Signalizace alarmu\r\n      for (i = 0; i < 8; i++) {  \r\n        p\u00e1sky.setPixelColor(i, p\u00e1sky.Color(255, 0, 0)); \/\/Dioda \u010d. i sv\u00edt\u00ed \u010derven\u011b \r\n      }\r\n      p\u00e1sky.show();\r\n      delay(100);\r\n      \r\n      for (i = 0; i < 8; i++) {  \r\n        p\u00e1sky.setPixelColor(i, p\u00e1sky.Color(0, 0, 255)); \/\/Dioda \u010d. i sv\u00edt\u00ed mod\u0159e\r\n      }\r\n      p\u00e1sky.show();\r\n      delay(100);\r\n\r\n    break;\r\n   }\r\n  \r\n}\r\n\r\nvoid vypniDiody() {\r\n  int i = 0;\r\n  for (i = 0; i < 8; i++){\r\n    p\u00e1sky.setPixelColor(i, p\u00e1sky.Color(0, 0, 0)); \/\/Dioda \u010d. 1  vypnuta   \r\n  }\r\n\r\n  p\u00e1sky.show();\r\n}<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-734556a elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"734556a\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-1cbea84\" data-id=\"1cbea84\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-abad9a3 elementor-widget elementor-widget-text-editor\" data-id=\"abad9a3\" data-element_type=\"widget\" data-e-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\t<p>Jak tento k\u00f3d funguje v praxi:<\/p>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-092522e elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"092522e\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-a8b8009\" data-id=\"a8b8009\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-12972a4 elementor-widget elementor-widget-video\" data-id=\"12972a4\" data-element_type=\"widget\" data-e-type=\"widget\" data-settings=\"{&quot;youtube_url&quot;:&quot;https:\\\/\\\/www.youtube.com\\\/watch?v=QDncMYE37qw&quot;,&quot;video_type&quot;:&quot;youtube&quot;,&quot;controls&quot;:&quot;yes&quot;}\" data-widget_type=\"video.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-wrapper elementor-open-inline\">\n\t\t\t<div class=\"elementor-video\"><\/div>\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-243e175 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"243e175\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-8c317f7\" data-id=\"8c317f7\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-589fc33 elementor-widget elementor-widget-text-editor\" data-id=\"589fc33\" data-element_type=\"widget\" data-e-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\t<p>Ve druh\u00e9 situaci je k\u00f3d spr\u00e1vn\u00fd:<\/p>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-1dee161 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"1dee161\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-f623516\" data-id=\"f623516\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-c1d39aa elementor-widget elementor-widget-video\" data-id=\"c1d39aa\" data-element_type=\"widget\" data-e-type=\"widget\" data-settings=\"{&quot;youtube_url&quot;:&quot;https:\\\/\\\/www.youtube.com\\\/watch?v=xeaRMKDZRJY&quot;,&quot;video_type&quot;:&quot;youtube&quot;,&quot;controls&quot;:&quot;yes&quot;}\" data-widget_type=\"video.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-wrapper elementor-open-inline\">\n\t\t\t<div class=\"elementor-video\"><\/div>\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-ada748d elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"ada748d\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-2b0918c\" data-id=\"2b0918c\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-badcaff elementor-widget elementor-widget-heading\" data-id=\"badcaff\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Odpo\u010d\u00edt\u00e1v\u00e1n\u00ed do zad\u00e1n\u00ed pinu<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-6a13473 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"6a13473\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-e931721\" data-id=\"e931721\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-992f16b elementor-widget elementor-widget-text-editor\" data-id=\"992f16b\" data-element_type=\"widget\" data-e-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\t<p>Nyn\u00ed je t\u0159eba napsat \u010d\u00e1st k\u00f3du, kter\u00e1 spust\u00ed alarm, pokud zad\u00e1n\u00ed k\u00f3du trv\u00e1 p\u0159\u00edli\u0161 dlouho. Samoz\u0159ejm\u011b zde nem\u016f\u017eete napsat nap\u0159\u00edklad <strong>delay(10000)<\/strong>, proto\u017ee takov\u00e1 instrukce by cel\u00fd program zastavila a my bychom nemohli k\u00f3d zkontrolovat.<\/p>\n<p>Ale&#8230; m\u016f\u017eeme <strong>zadat mal\u00e9 zpo\u017ed\u011bn\u00ed, nap\u0159. 50 ms<\/strong>. Tato hodnota by nezasahovala do k\u00f3du, pin bychom mohli zad\u00e1vat neust\u00e1le. Sta\u010d\u00ed tedy p\u0159idat podm\u00ednku, kter\u00e1 zkontroluje, zda jsme byli ve stavu 3 (odzbrojen\u00ed) v\u00edce ne\u017e 100 kr\u00e1t.<\/p>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-1dc14751 custom-alert-box elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"1dc14751\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-47fdab72\" data-id=\"47fdab72\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-inner-section elementor-element elementor-element-90ca5fa elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"90ca5fa\" data-element_type=\"section\" data-e-type=\"section\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-inner-column elementor-element elementor-element-26b1e178 blue-box-bestellen-ein-set\" data-id=\"26b1e178\" data-element_type=\"column\" data-e-type=\"column\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-3835293b elementor-widget elementor-widget-text-editor\" data-id=\"3835293b\" data-element_type=\"widget\" data-e-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\t<p style=\"text-align: center;\">Ka\u017ed\u00fd vstup funk\u010dn\u00edho bloku trv\u00e1 50 ms, tj. 100 vstup\u016f je v\u00fdsledkem 5 sekund.<br \/>Pokud b\u011bhem t\u00e9to doby nen\u00ed k\u00f3d zad\u00e1n, <strong>mus\u00ed b\u00fdt alarm aktivov\u00e1n<\/strong>.<\/p>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-5d096ec elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"5d096ec\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-85a2e22\" data-id=\"85a2e22\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-7669856 elementor-widget elementor-widget-text-editor\" data-id=\"7669856\" data-element_type=\"widget\" data-e-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\t<p>P\u0159enos do programu je velmi jednoduch\u00fd. Sta\u010d\u00ed p\u0159idat glob\u00e1ln\u00ed prom\u011bnnou:<\/p>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-a3af4f2 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"a3af4f2\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-e24dfc6\" data-id=\"e24dfc6\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-9c7ea71 elementor-widget elementor-widget-code-highlight\" data-id=\"9c7ea71\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"prismjs-default copy-to-clipboard word-wrap\">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-cpp line-numbers\">\n\t\t\t\t<code readonly=\"true\" class=\"language-cpp\">\n\t\t\t\t\t<xmp>int kolikCasuUplynulo = 0;<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-59532e1 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"59532e1\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-61af709\" data-id=\"61af709\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-403d9b1 elementor-widget elementor-widget-text-editor\" data-id=\"403d9b1\" data-element_type=\"widget\" data-e-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\t<p>Po\u010d\u00edt\u00e1 se, kolikr\u00e1t jsme byli v bloku, abychom zkontrolovali PIN k\u00f3d. Pot\u00e9 p\u0159id\u00e1me v r\u00e1mci funk\u010dn\u00edho bloku (prov\u00e1d\u011bn\u00e9ho b\u011bhem stavu 3):<\/p>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-59a8bb6 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"59a8bb6\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-e3cc8bf\" data-id=\"e3cc8bf\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-80e54f7 elementor-widget elementor-widget-code-highlight\" data-id=\"80e54f7\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"prismjs-default copy-to-clipboard word-wrap\">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-cpp line-numbers\">\n\t\t\t\t<code readonly=\"true\" class=\"language-cpp\">\n\t\t\t\t\t<xmp>      delay(100);\r\n      kolikCasuUplynulo++;\r\n\r\n      if (kolikCasuUplynulo >= 50) {\r\n        stavAlarmu = 4;\r\n      }<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-575a33d elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"575a33d\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-02e483f\" data-id=\"02e483f\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-08a2fde elementor-widget elementor-widget-text-editor\" data-id=\"08a2fde\" data-element_type=\"widget\" data-e-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\t<p>Ka\u017ed\u00fdch 100 ms \u010dekac\u00ed doby zv\u00fd\u0161\u00ed hodnotu prom\u011bnn\u00e9 <strong>kolikCasuUplynulo<\/strong>. Pokud zaznamen\u00e1me 50 nebo v\u00edce, dal\u0161\u00ed cyklus hlavn\u00ed smy\u010dky p\u0159ejde do stavu 4 a spust\u00ed alarm. P\u0159esto stoj\u00ed za to se ujistit, \u017ee prom\u011bnn\u00e1 <strong>kolikCasuUplynulo<\/strong>\u00a0se po\u010d\u00edt\u00e1 od nuly, kdy\u017e n\u00e1m alarm d\u00e1v\u00e1 mo\u017enost zadat pin. Nejl\u00e9pe je vlo\u017eit tento k\u00f3d do stavu 2, kr\u00e1tce p\u0159ed p\u0159echodem do stavu 3.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-653c0da elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"653c0da\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-c936ece\" data-id=\"c936ece\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-ab45d18 elementor-widget elementor-widget-code-highlight\" data-id=\"ab45d18\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"prismjs-default copy-to-clipboard word-wrap\">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-cpp line-numbers\">\n\t\t\t\t<code readonly=\"true\" class=\"language-cpp\">\n\t\t\t\t\t<xmp>      if (digitalRead(PIR) == HIGH) {\r\n        stavAlarmu = 4; \/\/ Okam\u017eit\u011b spust\u00edme alarm\r\n      } else if (digitalRead(JAZ\u00dd\u010cKOV\u00dd SP\u00cdNA\u010c) == HIGH) {\r\n        kolikCasuUplynulo= 0; \/\/Vynulov\u00e1n\u00ed prom\u011bnn\u00e9  \r\n        stavAlarmu = 3; \/\/\u0160ance na odzbrojen\u00ed \r\n      }<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-d50ac4c elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"d50ac4c\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-a2c0991\" data-id=\"a2c0991\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-87546ca elementor-widget elementor-widget-text-editor\" data-id=\"87546ca\" data-element_type=\"widget\" data-e-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\t<p>Kone\u010dn\u00e1 verze programu vypad\u00e1 n\u00e1sledovn\u011b:<\/p>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-31d66a9 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"31d66a9\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-9399121\" data-id=\"9399121\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-7397871 elementor-widget elementor-widget-code-highlight\" data-id=\"7397871\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"prismjs-default copy-to-clipboard word-wrap\">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-cpp line-numbers\">\n\t\t\t\t<code readonly=\"true\" class=\"language-cpp\">\n\t\t\t\t\t<xmp>#define BZU\u010c\u00c1K 11\r\n#define JAZ\u00dd\u010cKOV\u00dd SP\u00cdNA\u010c 10\r\n#define PIR 1\r\n\r\n#include <Keypad.h> \/\/knihovna kl\u00e1vesnice\r\n#include <Adafruit_NeoPixel.h> \/\/knihovna LED p\u00e1sky\r\n\r\nconst byte ROWS = 4; \/\/ kolik \u0159\u00e1dk\u016f\r\nconst byte COLS = 4; \/\/kolik sloupc\u016f\r\n\r\nbyte rowPins[ROWS] = {5, 4, 3, 2}; \/\/piny \u0159\u00e1dk\u016f\r\nbyte colPins[COLS] = {6, 7, 8, 9}; \/\/piny sloupc\u016f\r\n\r\nchar keys[ROWS][COLS] = { \/\/mapov\u00e1n\u00ed kl\u00e1vesnice\r\n  {'1','2','3','A'},\r\n  {'4','5','6','B'},\r\n  {'7','8','9','C'},\r\n  {'*','0','#','D'}\r\n};\r\n\r\nKeypad kl\u00e1vesnice = Keypad( makeKeymap(keys), rowPins, colPins, ROWS, COLS ); \/\/inicializace kl\u00e1vesnice  \r\nAdafruit_NeoPixel p\u00e1sky = Adafruit_NeoPixel(8, A0, NEO_GRB + NEO_KHZ800); \/\/Konfigurace LED p\u00e1sky\r\n\r\nvolatile int stavAlarmu = 1;\r\nint pinAlarmuPozice = 1;\r\nchar pinCifra1 = '1';\r\nchar pinCifra2 = '2';\r\nchar pinCifra3 = '3';\r\nchar pinCifra4 = '4';\r\n\r\nint kolikCasuUplynulo = 0;\r\n\r\nvoid setup() {\r\n  pinMode(BZU\u010c\u00c1K, OUTPUT);\r\n  pinMode(JAZ\u00dd\u010cKOV\u00dd SP\u00cdNA\u010c, INPUT_PULLUP);\r\n  pinMode(PIR, INPUT_PULLUP);\r\n\r\n  p\u00e1sky.begin(); \/\/inicializace p\u00e1sky\r\n  p\u00e1sky.show(); \r\n}\r\n\r\nvoid loop() {\r\n  char kl\u00e1vesa  = 0; \/\/prom\u011bnn\u00e1 pro ulo\u017een\u00ed znak\u016f kl\u00e1vesnice    \r\n  int i = 0; \/\/pomocn\u00e1 prom\u011bnn\u00e1 pro smy\u010dku  \r\n\r\n  switch(stavAlarmu) { \/\/Prov\u00e9st akci specifickou pro dan\u00fd stav   \r\n    case 1:\r\n      \/\/Pohotovostn\u00ed stav\r\n      p\u00e1sky.setPixelColor(0, p\u00e1sky.Color(0, 15, 0)); \/\/Dioda \u010d. 1 sv\u00edt\u00ed zelen\u011b\r\n      p\u00e1sky.show();\r\n      \r\n      kl\u00e1cesa  = kl\u00e1vesnice.getKey();\r\n      if (kl\u00e1vesa  == 'A') { \/\/Zapnout alarm?\r\n        for (i = 1; i < 8; i++) {\r\n          p\u00e1sky.setPixelColor(i, p\u00e1sky.Color(0, 0, 15)); \/\/Diode 4. i sv\u00edt\u00ed mod\u0159e\r\n          p\u00e1sky.show();\r\n          delay(710);\r\n        } \/\/ dokon\u010den\u00ed t\u00e9to smy\u010dky bude trvat p\u0159ibli\u017en\u011b 5 sekund      \r\n        \r\n         for (i = 1; i < 8; i++) {\r\n          p\u00e1sky.setPixelColor(i, p\u00e1sky.Color(15, 0, 0)); \/\/Dioda 4. i sv\u00edt\u00ed \u010derven\u011b\r\n          p\u00e1sky.show();\r\n          delay(710);\r\n        } \/\/ dokon\u010den\u00ed t\u00e9to smy\u010dky bude trvat p\u0159ibli\u017en\u011b 5 sekund          \r\n          \r\n        vypniDiody();\r\n        stavAlarmu = 2;\r\n      }\r\n        \r\n    break;\r\n    \r\n    case 2:\r\n      \/\/Monitorov\u00e1n\u00ed\r\n      p\u00e1sky.setPixelColor(7, p\u00e1sky.Color(15, 0, 0)); \/\/Dioda \u010d. 8 sv\u00edt\u00ed \u010derven\u011b\r\n      p\u00e1sky.show();\r\n      delay(50);\r\n      p\u00e1sky.setPixelColor(7, p\u00e1sky.Color(0, 0, 0)); \/\/Dioda \u010d. 8 vypnuta\r\n      p\u00e1sky.show();\r\n      delay(50);\r\n\r\n      if (digitalRead(PIR) == HIGH) {\r\n        stavAlarmu = 4; \/\/Okam\u017eit\u011b spust\u00edme alarm   \r\n      } else if (digitalRead(JAZ\u00dd\u010cKOV\u00dd SP\u00cdNA\u010c) == HIGH) {\r\n        kolikCasuUplynulo= 0; \/\/Vynulov\u00e1n\u00ed prom\u011bnn\u00e9  \r\n        stavAlarmu = 3; \/\/\u0160ance na odzbrojen\u00ed \r\n      }\r\n      \r\n    break;\r\n    \r\n    case 3:\r\n      \/\/Odzbrojov\u00e1n\u00ed\r\n      kl\u00e1vesa  = kl\u00e1vesnice.getKey();\r\n      if (kl\u00e1vesa ) {\r\n        \/\/Je dal\u0161\u00ed uveden\u00e1 cifra spr\u00e1vn\u00e1?   \r\n        if (pinAlarmuPozice == 1 && kl\u00e1vesa  == pinCifra1) { \/\/Pokud zkontrolujeme 1 pozici PINu  \r\n          pinAlarmPosition++; \/\/\u010c\u00edslo spr\u00e1vn\u00e9, lze zkontrolovat na dal\u0161\u00edm      \r\n        } else if (pinAlarmuPozice == 2 && kl\u00e1vesa  == pinCifra2) { \/\/Pokud zkontrolujeme 2 pozici PINu \r\n          pinAlarmPosition++; \/\/\u010c\u00edslo spr\u00e1vn\u00e9, lze zkontrolovat na dal\u0161\u00edm              \r\n        } else if (pinAlarmuPozice == 3 && kl\u00e1vesa  == pinCifra3) { \/\/Pokud zkontrolujeme 3 pozici PINu     \r\n          pinAlarmuPozice++; \/\/\u010c\u00edslo spr\u00e1vn\u00e9, lze zkontrolovat na dal\u0161\u00edm           \r\n        } else if (pinAlarmuPozice == 4 && kl\u00e1vesa  == pinCifra4) { \/\/Pokud zkontrolujeme 4 pozici PINu   \r\n            stavAlarmu = 1; \/\/V\u0161echny 4 \u010d\u00edslice k\u00f3du jsou spr\u00e1vn\u00e9\r\n            pinAlarmuPozice = 1; \/\/Resetov\u00e1n\u00ed informac\u00ed o zad\u00e1van\u00e9m PINu      \r\n        } else {\r\n           stavAlarmu = 4; \/\/Chyba k\u00f3du PIN - spustit alarm\r\n           pinAlarmuPozice = 1; \/\/Resetov\u00e1n\u00ed informac\u00ed o zad\u00e1van\u00e9m PINu \r\n        }\r\n      }\r\n\r\n      delay(100);\r\n      kolikCasuUplynulo++;\r\n\r\n      if (kolikCasuUplynulo >= 50) {\r\n        stavAlarmu = 4;\r\n      }\r\n    break;\r\n    \r\n    case 4:\r\n      \/\/Signalizace alarmu\r\n      for (i = 0; i < 8; i++) {  \r\n        p\u00e1sky.setPixelColor(i, p\u00e1sky.Color(255, 0, 0)); \/\/Dioda \u010d. i sv\u00edt\u00ed \u010derven\u011b \r\n      }\r\n      p\u00e1sky.show();\r\n      delay(100);\r\n      \r\n      for (i = 0; i < 8; i++) {  \r\n        p\u00e1sky.setPixelColor(i, p\u00e1sky.Color(0, 0, 255)); \/\/Dioda \u010d. i sv\u00edt\u00ed mod\u0159e \r\n      }\r\n      p\u00e1sky.show();\r\n      delay(100);\r\n\r\n    break;\r\n   }\r\n  \r\n}\r\n\r\nvoid vypniDiody() {\r\n  int i = 0;\r\n  for (i = 0; i < 8; i++){\r\n    p\u00e1sky.setPixelColor(i, p\u00e1sky.Color(0, 0, 0)); \/\/Dioda \u010d.1 je vypnuta   \r\n  }\r\n\r\n  p\u00e1sky.show();\r\n}<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-9efb9a4 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"9efb9a4\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-7fbd292\" data-id=\"7fbd292\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-0e00e09 elementor-widget elementor-widget-text-editor\" data-id=\"0e00e09\" data-element_type=\"widget\" data-e-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\t<p>Jak tato \u010d\u00e1st programu funguje v praxi:<\/p>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-2ea6263 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"2ea6263\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-87d89b4\" data-id=\"87d89b4\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-e4372ef elementor-widget elementor-widget-video\" data-id=\"e4372ef\" data-element_type=\"widget\" data-e-type=\"widget\" data-settings=\"{&quot;youtube_url&quot;:&quot;https:\\\/\\\/www.youtube.com\\\/watch?v=wqm29TNqEJQ&amp;embeds_referring_euri=https%3A%2F%2Fforbot.pl%2F&amp;source_ve_path=MjM4NTE&amp;feature=emb_title&quot;,&quot;video_type&quot;:&quot;youtube&quot;,&quot;controls&quot;:&quot;yes&quot;}\" data-widget_type=\"video.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-wrapper elementor-open-inline\">\n\t\t\t<div class=\"elementor-video\"><\/div>\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-e9b8ea2 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"e9b8ea2\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-25d94cc\" data-id=\"25d94cc\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-41bbc20 elementor-widget elementor-widget-heading\" data-id=\"41bbc20\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">P\u0159id\u00e1n\u00ed zvukov\u00fdch efekt\u016f<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-dfa7d9f elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"dfa7d9f\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-4223fbb\" data-id=\"4223fbb\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-940aefd elementor-widget elementor-widget-text-editor\" data-id=\"940aefd\" data-element_type=\"widget\" data-e-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\t<p>Aby alarm plnil sv\u016fj \u00fakol, <strong>mus\u00ed b\u00fdt p\u0159ipojen bzu\u010d\u00e1k<\/strong> &#8211; existuje verze s gener\u00e1torem nebo bez n\u011bj. Rozhodl jsem se pro verzi bez gener\u00e1toru a p\u0159ipojil ho na pin 11, jak bylo deklarov\u00e1no d\u0159\u00edve:<\/p>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-d787faf elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"d787faf\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-bedd17f\" data-id=\"bedd17f\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-f8b2bf9 elementor-widget elementor-widget-image\" data-id=\"f8b2bf9\" data-element_type=\"widget\" data-e-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\t\t\t\t<figure class=\"wp-caption\">\n\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"768\" height=\"483\" src=\"https:\/\/forbot.com\/wp-content\/uploads\/2024\/03\/kursArdu_5_4-768x483.jpg\" class=\"attachment-medium_large size-medium_large wp-image-4768\" alt=\"\" srcset=\"https:\/\/forbot.com\/wp-content\/uploads\/2024\/03\/kursArdu_5_4-768x483.jpg 768w, https:\/\/forbot.com\/wp-content\/uploads\/2024\/03\/kursArdu_5_4-300x189.jpg 300w, https:\/\/forbot.com\/wp-content\/uploads\/2024\/03\/kursArdu_5_4-1024x645.jpg 1024w, https:\/\/forbot.com\/wp-content\/uploads\/2024\/03\/kursArdu_5_4-1536x967.jpg 1536w, https:\/\/forbot.com\/wp-content\/uploads\/2024\/03\/kursArdu_5_4.jpg 2000w\" sizes=\"(max-width: 768px) 100vw, 768px\" \/>\t\t\t\t\t\t\t\t\t\t\t<figcaption class=\"widget-image-caption wp-caption-text\">P\u0159ipojen\u00ed bzu\u010d\u00e1ku k poplachov\u00e9mu centru.<\/figcaption>\n\t\t\t\t\t\t\t\t\t\t<\/figure>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-c67d3c9 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"c67d3c9\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-342d3fa\" data-id=\"342d3fa\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-8ccb5c1 elementor-widget elementor-widget-text-editor\" data-id=\"8ccb5c1\" data-element_type=\"widget\" data-e-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\t<p>Pak jsem p\u0159idal dv\u011b linky do 4. stavu obvodu, kter\u00fd je zodpov\u011bdn\u00fd za signalizaci alarmu. Dal\u0161\u00ed informace o funkci <strong>tone()<\/strong> naleznete v \u010d\u00e1sti <a href=\"https:\/\/forbot.com\/de\/arduino-kurs\/arduino-kurs-ii-3-alarmsirene-mosfet-in-der-praxis\/\"><span style=\"text-decoration: underline;\">3. \u010d\u00e1sti kurzu<\/span><\/a>.<\/p>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-f677b99 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"f677b99\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-5f604c4\" data-id=\"5f604c4\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-dabf4a5 elementor-widget elementor-widget-code-highlight\" data-id=\"dabf4a5\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"prismjs-default copy-to-clipboard word-wrap\">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-cpp line-numbers\">\n\t\t\t\t<code readonly=\"true\" class=\"language-cpp\">\n\t\t\t\t\t<xmp>    case 4:\r\n      \/\/Signalizace alarmu\r\n      for (i = 0; i < 8; i++) {  \r\n        p\u00e1sky.setPixelColor(i, p\u00e1sky.Color(255, 0, 0)); \/\/Dioda \u010d. i sv\u00edt\u00ed \u010derven\u011b \r\n      }\r\n      p\u00e1sky.show();\r\n      tone(BZU\u010c\u00c1K, 4300);\r\n      delay(100);\r\n      \r\n      for (i = 0; i < 8; i++) {  \r\n        p\u00e1sky.setPixelColor(i, p\u00e1sky.Color(0, 0, 255)); \/\/Dioda \u010d. i sv\u00edt\u00ed mod\u0159e\r\n      }\r\n      p\u00e1sky.show();\r\n      tone(BZU\u010c\u00c1K, 3500);\r\n      delay(100);\r\n\r\n    break;<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-c16ee3d elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"c16ee3d\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-a73c8b2\" data-id=\"a73c8b2\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-ea6bf1b elementor-widget elementor-widget-text-editor\" data-id=\"ea6bf1b\" data-element_type=\"widget\" data-e-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\t<p>Kone\u010dn\u00e9 fungov\u00e1n\u00ed cel\u00e9ho alarmu si m\u016f\u017eete prohl\u00e9dnout na videu n\u00ed\u017ee:<\/p>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-683c142 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"683c142\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-73bd0c6\" data-id=\"73bd0c6\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-b176033 elementor-widget elementor-widget-video\" data-id=\"b176033\" data-element_type=\"widget\" data-e-type=\"widget\" data-settings=\"{&quot;youtube_url&quot;:&quot;https:\\\/\\\/www.youtube.com\\\/watch?v=q8iV_QFKzWw&amp;embeds_referring_euri=https%3A%2F%2Fforbot.pl%2F&amp;source_ve_path=MjM4NTE&amp;feature=emb_title&quot;,&quot;video_type&quot;:&quot;youtube&quot;,&quot;controls&quot;:&quot;yes&quot;}\" data-widget_type=\"video.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-wrapper elementor-open-inline\">\n\t\t\t<div class=\"elementor-video\"><\/div>\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-53094b7 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"53094b7\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-80da6cc\" data-id=\"80da6cc\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-8a3816e elementor-widget elementor-widget-heading\" data-id=\"8a3816e\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Dal\u0161\u00ed \u00fakoly - pro dobrovoln\u00edky<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-316babe elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"316babe\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-89a9946\" data-id=\"89a9946\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-34a74c5 elementor-widget elementor-widget-text-editor\" data-id=\"34a74c5\" data-element_type=\"widget\" data-e-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\t<p>Program se stal pom\u011brn\u011b rozs\u00e1hl\u00fdm, tak\u017ee ho nebudu d\u00e1le &#8222;natahovat&#8220;. Pokud v\u0161ak chcete, m\u016f\u017eete do programu p\u0159idat nov\u00e9 funkce. Uv\u00e1d\u00edm seznam v\u011bc\u00ed, kter\u00e9 lze p\u0159idat:<\/p>\n<ul>\n<li>akustick\u00fd sign\u00e1l p\u0159i zapnut\u00ed alarmu,<\/li>\n<li>akustick\u00fd sign\u00e1l p\u0159i zad\u00e1n\u00ed pinu (stisknut\u00ed kl\u00e1vesy &#8211; &#8222;p\u00edpnut\u00ed&#8220;),<\/li>\n<li>samostatn\u00e9 tla\u010d\u00edtko, kter\u00e9 je spojeno s p\u0159eru\u0161en\u00edm a resetuje alarm,<\/li>\n<li>rozs\u00e1hlej\u0161\u00ed zvukov\u00e9 efekty.<\/li>\n<\/ul>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-56a0f3a elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"56a0f3a\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-c70b2f5\" data-id=\"c70b2f5\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-0901ece elementor-widget elementor-widget-heading\" data-id=\"0901ece\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Shrnut\u00ed<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-6a9049b elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"6a9049b\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-74b5be2\" data-id=\"74b5be2\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-cca2c69 elementor-widget elementor-widget-text-editor\" data-id=\"cca2c69\" data-element_type=\"widget\" data-e-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\t<p>V pr\u016fb\u011bhu tohoto \u010dl\u00e1nku jsem se poprv\u00e9 pokusil spole\u010dn\u011b s v\u00e1mi vytvo\u0159it dlouh\u00fd k\u00f3d. Douf\u00e1m, \u017ee i pro v\u00e1s je tato forma \u010dl\u00e1nku u\u017eite\u010dn\u00e1! D\u0159\u00edv jsem v\u0161echny &#8222;stra\u0161il&#8220; p\u0159eru\u0161ov\u00e1n\u00edm a tady jsem je nepou\u017e\u00edval. Pro\u010d tomu tak je? Proto\u017ee nemus\u00edte v\u017edycky!<\/p>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-7bfaf30 custom-alert-box elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"7bfaf30\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-1b064559\" data-id=\"1b064559\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-inner-section elementor-element elementor-element-33ba2fe9 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"33ba2fe9\" data-element_type=\"section\" data-e-type=\"section\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-inner-column elementor-element elementor-element-29135db6 blue-box-bestellen-ein-set\" data-id=\"29135db6\" data-element_type=\"column\" data-e-type=\"column\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-2ff0b97d elementor-widget elementor-widget-text-editor\" data-id=\"2ff0b97d\" data-element_type=\"widget\" data-e-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\t<p style=\"text-align: center;\">D\u00edky tomuto programu se poda\u0159ilo odstranit zpo\u017ed\u011bn\u00ed. V praxi to funguje tak, \u017ee se neust\u00e1le proch\u00e1z\u00ed hlavn\u00ed smy\u010dka a prov\u00e1d\u011bj\u00ed se pouze operace, kter\u00e9 jsou (v dan\u00e9m okam\u017eiku) nezbytn\u00e9. Proto se nemus\u00edte ob\u00e1vat, \u017ee by Arduino sign\u00e1l ze senzoru p\u0159ehl\u00e9dlo.<\/p>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-8e6f327 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"8e6f327\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-23c0587\" data-id=\"23c0587\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-4451784 elementor-widget elementor-widget-text-editor\" data-id=\"4451784\" data-element_type=\"widget\" data-e-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\t<p><strong>Vyplat\u00ed se sezn\u00e1mit se s r\u016fzn\u00fdmi \u0159e\u0161en\u00edmi<\/strong> a vybrat si je pro konkr\u00e9tn\u00ed projekty. Pokud by na\u0161e za\u0159\u00edzen\u00ed m\u011blo prov\u00e1d\u011bt mnoho dal\u0161\u00edch \u010dasov\u011b n\u00e1ro\u010dn\u00fdch operac\u00ed, nepochybn\u011b by se zde uplatnilo p\u0159eru\u0161en\u00ed.<\/p>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-57a4b663 custom-kurs-nav-bottom-section elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"57a4b663\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-7fba5b26\" data-id=\"7fba5b26\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-527793a9 elementor-widget elementor-widget-heading\" data-id=\"527793a9\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h3 class=\"elementor-heading-title elementor-size-default\">Navigace v kurzu<\/h3>\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-53fa821e elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"53fa821e\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-33 elementor-inner-column elementor-element elementor-element-254271d\" data-id=\"254271d\" data-element_type=\"column\" data-e-type=\"column\" id=\"menu-nav-prev-col-bottom\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-15bd2ddf elementor-align-center elementor-widget__width-initial elementor-widget elementor-widget-button\" data-id=\"15bd2ddf\" data-element_type=\"widget\" data-e-type=\"widget\" id=\"menu-prev-btn-bottom\" data-widget_type=\"button.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<div class=\"elementor-button-wrapper\">\n\t\t\t\t\t<a class=\"elementor-button elementor-button-link elementor-size-md\" href=\"https:\/\/forbot.com\/cs\/kurz-arduino\/kurz-arduino-uroven-ii-4-preruseni-jazyckovy-spinac-pir-senzor\/\">\n\t\t\t\t\t\t<span class=\"elementor-button-content-wrapper\">\n\t\t\t\t\t\t\t\t\t<span class=\"elementor-button-text\">&lt;&lt; P\u0159edchoz\u00ed \u010d\u00e1st<\/span>\n\t\t\t\t\t<\/span>\n\t\t\t\t\t<\/a>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t<div class=\"elementor-column elementor-col-33 elementor-inner-column elementor-element elementor-element-35ea93b9\" data-id=\"35ea93b9\" data-element_type=\"column\" data-e-type=\"column\" id=\"menu-nav-middle-col-bottom\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-6969c04 elementor-view-default elementor-widget elementor-widget-icon\" data-id=\"6969c04\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"icon.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\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-map-signs\"><\/i>\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t<div class=\"elementor-column elementor-col-33 elementor-inner-column elementor-element elementor-element-2c9c81c4\" data-id=\"2c9c81c4\" data-element_type=\"column\" data-e-type=\"column\" id=\"menu-nav-next-col-bottom\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-12f8159a elementor-align-center elementor-widget__width-initial elementor-widget elementor-widget-button\" data-id=\"12f8159a\" data-element_type=\"widget\" data-e-type=\"widget\" id=\"menu-next-btn-bottom\" data-widget_type=\"button.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<div class=\"elementor-button-wrapper\">\n\t\t\t\t\t<a class=\"elementor-button elementor-button-link elementor-size-md\" href=\"\/cs\/kurz-arduino-uroven-2\/kurz-arduino-uroven-ii-6-7-segmentove-displeje\/\">\n\t\t\t\t\t\t<span class=\"elementor-button-content-wrapper\">\n\t\t\t\t\t\t\t\t\t<span class=\"elementor-button-text\">Dal\u0161\u00ed \u010d\u00e1st &gt;&gt;<\/span>\n\t\t\t\t\t<\/span>\n\t\t\t\t\t<\/a>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<div class=\"elementor-element elementor-element-4df4a257 elementor-align-center elementor-widget elementor-widget-button\" data-id=\"4df4a257\" data-element_type=\"widget\" data-e-type=\"widget\" id=\"menu-nav-btn-bottom\" data-widget_type=\"button.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<div class=\"elementor-button-wrapper\">\n\t\t\t\t\t<a class=\"elementor-button elementor-size-md\" role=\"button\">\n\t\t\t\t\t\t<span class=\"elementor-button-content-wrapper\">\n\t\t\t\t\t\t\t\t\t<span class=\"elementor-button-text\">Zobrazit\/skr\u00fdt v\u0161echny \u010d\u00e1sti<\/span>\n\t\t\t\t\t<\/span>\n\t\t\t\t\t<\/a>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-13873f4c elementor-nav-menu__text-align-aside elementor-widget elementor-widget-nav-menu\" data-id=\"13873f4c\" data-element_type=\"widget\" data-e-type=\"widget\" id=\"menu-nav-post-bottom\" data-settings=\"{&quot;layout&quot;:&quot;dropdown&quot;,&quot;submenu_icon&quot;:{&quot;value&quot;:&quot;&lt;i class=\\&quot;\\&quot; aria-hidden=\\&quot;true\\&quot;&gt;&lt;\\\/i&gt;&quot;,&quot;library&quot;:&quot;&quot;}}\" data-widget_type=\"nav-menu.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t<nav class=\"elementor-nav-menu--dropdown elementor-nav-menu__container\" aria-hidden=\"true\">\n\t\t\t\t<ul id=\"menu-2-13873f4c\" class=\"elementor-nav-menu\"><li class=\"menu-item menu-item-type-post_type menu-item-object-post menu-item-10167\"><a href=\"https:\/\/forbot.com\/de\/arduino-kurs-stufe-2\/arduino-kurs-stufe-ii-1-einfuehrung-inhaltsverzeichnis\/\" class=\"elementor-item menu-link\" tabindex=\"-1\">Kurz Arduino \u00farove\u0148 II &#8211; #1 &#8211; \u00davod, Obsah<\/a><\/li>\n<li class=\"menu-item menu-item-type-post_type menu-item-object-post menu-item-10166\"><a href=\"https:\/\/forbot.com\/de\/arduino-kurs-stufe-2\/arduino-kurs-ii-2-rgb-leds-traditionell-und-ws2812\/\" class=\"elementor-item menu-link\" tabindex=\"-1\">Kurz Arduino \u00farove\u0148 II &#8211; #2 &#8211; RGB LED diody (tradi\u010dn\u00ed a WS2812)<\/a><\/li>\n<li class=\"menu-item menu-item-type-post_type menu-item-object-post menu-item-10165\"><a href=\"https:\/\/forbot.com\/de\/arduino-kurs-stufe-2\/arduino-kurs-ii-3-alarmsirene-mosfet-in-der-praxis\/\" class=\"elementor-item menu-link\" tabindex=\"-1\">Kurz Arduino \u00farove\u0148 II &#8211; #3 &#8211; Poplachov\u00e1 sir\u00e9na, MOSFET v praxi<\/a><\/li>\n<li class=\"menu-item menu-item-type-post_type menu-item-object-post menu-item-10164\"><a href=\"https:\/\/forbot.com\/de\/arduino-kurs-stufe-2\/arduino-ii-kurs-4-unterbrechungen-reed-schalter-pir-sensor\/\" class=\"elementor-item menu-link\" tabindex=\"-1\">Kurz Arduino \u00farove\u0148 II &#8211; #4 &#8211; P\u0159eru\u0161en\u00ed, jaz\u00fd\u010dkov\u00fd sp\u00edna\u010d, PIR senzor<\/a><\/li>\n<li class=\"menu-item menu-item-type-post_type menu-item-object-post menu-item-10163\"><a href=\"https:\/\/forbot.com\/de\/arduino-kurs-stufe-2\/arduino-ii-kurs-5-tastatur-eigene-alarmanlage\/\" class=\"elementor-item menu-link\" tabindex=\"-1\">Kurz Arduino \u00farove\u0148 II &#8211; #5 &#8211; Kl\u00e1vesnice, vlastn\u00ed alarmov\u00fd syst\u00e9m<\/a><\/li>\n<li class=\"menu-item menu-item-type-post_type menu-item-object-post menu-item-10162\"><a href=\"https:\/\/forbot.com\/de\/arduino-kurs-stufe-2\/arduino-ii-kurs-6-7-segment-anzeigen\/\" class=\"elementor-item menu-link\" tabindex=\"-1\">Kurz Arduino \u00farove\u0148 II &#8211; #6 &#8211; 7-segmentov\u00e9 displeje<\/a><\/li>\n<li class=\"menu-item menu-item-type-post_type menu-item-object-post menu-item-10161\"><a href=\"https:\/\/forbot.com\/de\/arduino-kurs-stufe-2\/arduino-kurs-stufe-ii-7-analoge-und-digitale-thermometer\/\" class=\"elementor-item menu-link\" tabindex=\"-1\">Kurz Arduino \u00farove\u0148 II &#8211; #7 &#8211; analogov\u00e9 a digit\u00e1ln\u00ed teplom\u011bry<\/a><\/li>\n<li class=\"menu-item menu-item-type-post_type menu-item-object-post menu-item-10160\"><a href=\"https:\/\/forbot.com\/de\/arduino-kurs-stufe-2\/arduino-kurs-stufe-ii-8-digitaler-feuchtigkeitssensor-dht11\/\" class=\"elementor-item menu-link\" tabindex=\"-1\">Kurz Arduino \u00farove\u0148 II &#8211; #8 &#8211; Digit\u00e1ln\u00ed senzor vlhkosti (DHT11)<\/a><\/li>\n<li class=\"menu-item menu-item-type-post_type menu-item-object-post menu-item-10159\"><a href=\"https:\/\/forbot.com\/de\/arduino-kurs-stufe-2\/arduino-kurs-stufe-ii-9-multitasking-verzoegerungen-mit-millis\/\" class=\"elementor-item menu-link\" tabindex=\"-1\">Kurz Arduino \u00farove\u0148 II &#8211; #9 &#8211; Multitasking, zpo\u017ed\u011bn\u00ed pomoc\u00ed funkce millis()<\/a><\/li>\n<\/ul>\t\t\t<\/nav>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-2ca83727 custom-alert-box elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"2ca83727\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-544ce6d4\" data-id=\"544ce6d4\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-inner-section elementor-element elementor-element-48b4686c elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"48b4686c\" data-element_type=\"section\" data-e-type=\"section\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-inner-column elementor-element elementor-element-6c189751 blue-box-bestellen-ein-set\" data-id=\"6c189751\" data-element_type=\"column\" data-e-type=\"column\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-fe91819 elementor-widget elementor-widget-text-editor\" data-id=\"fe91819\" data-element_type=\"widget\" data-e-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\t<p><i class=\"fas fa-shopping-cart fa-lg\" style=\"color: #004085;\"><\/i> Objednejte si sadu prvk\u016f a za\u010dn\u011bte se u\u010dit v praxi! <a href=\"https:\/\/botland.cz\/startovaci-sady-pro-arduino\/23721-forbot-sada-arduino-urovne-2-5904422384296.html\"><strong>Kliknut\u00edm sem p\u0159ejdete do obchodu &gt;&gt;<\/strong><\/a><\/p>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>B\u011bhem cvi\u010den\u00ed v t\u00e9to \u010d\u00e1sti kurzu Arduino se pod\u00edv\u00e1me na nejvhodn\u011bj\u0161\u00ed zp\u016fsob p\u0159ipojen\u00ed kl\u00e1vesnice k na\u0161emu za\u0159\u00edzen\u00ed v praxi. Pomoc\u00ed v\u0161ech dosud probran\u00fdch komponent sestav\u00edme popla\u0161n\u00e9 centrum, jeho\u017e hlavn\u00edm mozkem bude Arduino. &lt;&lt; P\u0159edchoz\u00ed \u010d\u00e1st Navigace v kurzu \u25bc Dal\u0161\u00ed \u010d\u00e1st &gt;&gt; Objednejte si sadu prvk\u016f a za\u010dn\u011bte se u\u010dit v praxi! Kliknut\u00edm sem p\u0159ejdete [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":4617,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[63],"tags":[],"class_list":["post-5806","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-kurz-arduino-uroven-2"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Kurz Arduino \u00farove\u0148 II - #5 - Kl\u00e1vesnice, vlastn\u00ed alarmov\u00fd syst\u00e9m - FORBOT<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/forbot.com\/cs\/kurz-arduino-uroven-2\/kurz-arduino-uroven-ii-5-klavesnice-vlastni-alarmovy-system\/\" \/>\n<meta property=\"og:locale\" content=\"cs_CZ\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Kurz Arduino \u00farove\u0148 II - #5 - Kl\u00e1vesnice, vlastn\u00ed alarmov\u00fd syst\u00e9m - FORBOT\" \/>\n<meta property=\"og:description\" content=\"B\u011bhem cvi\u010den\u00ed v t\u00e9to \u010d\u00e1sti kurzu Arduino se pod\u00edv\u00e1me na nejvhodn\u011bj\u0161\u00ed zp\u016fsob p\u0159ipojen\u00ed kl\u00e1vesnice k na\u0161emu za\u0159\u00edzen\u00ed v praxi. Pomoc\u00ed v\u0161ech dosud probran\u00fdch komponent sestav\u00edme popla\u0161n\u00e9 centrum, jeho\u017e hlavn\u00edm mozkem bude Arduino. &lt;&lt; P\u0159edchoz\u00ed \u010d\u00e1st Navigace v kurzu \u25bc Dal\u0161\u00ed \u010d\u00e1st &gt;&gt; Objednejte si sadu prvk\u016f a za\u010dn\u011bte se u\u010dit v praxi! Kliknut\u00edm sem p\u0159ejdete [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/forbot.com\/cs\/kurz-arduino-uroven-2\/kurz-arduino-uroven-ii-5-klavesnice-vlastni-alarmovy-system\/\" \/>\n<meta property=\"og:site_name\" content=\"FORBOT\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/botland.de\/\" \/>\n<meta property=\"article:published_time\" content=\"2024-03-01T11:23:09+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-09-06T21:19:38+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/forbot.com\/wp-content\/uploads\/2024\/09\/ikonaArd2_5.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"788\" \/>\n\t<meta property=\"og:image:height\" content=\"533\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Sebastian Trame\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Napsal(a)\" \/>\n\t<meta name=\"twitter:data1\" content=\"Sebastian Trame\" \/>\n\t<meta name=\"twitter:label2\" content=\"Odhadovan\u00e1 doba \u010dten\u00ed\" \/>\n\t<meta name=\"twitter:data2\" content=\"18 minut\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/forbot.com\\\/cs\\\/kurz-arduino-uroven-2\\\/kurz-arduino-uroven-ii-5-klavesnice-vlastni-alarmovy-system\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/forbot.com\\\/cs\\\/kurz-arduino-uroven-2\\\/kurz-arduino-uroven-ii-5-klavesnice-vlastni-alarmovy-system\\\/\"},\"author\":{\"name\":\"Sebastian Trame\",\"@id\":\"https:\\\/\\\/forbot.com\\\/de\\\/#\\\/schema\\\/person\\\/aff57459c89be0682a88d130e1b2157c\"},\"headline\":\"Kurz Arduino \u00farove\u0148 II &#8211; #5 &#8211; Kl\u00e1vesnice, vlastn\u00ed alarmov\u00fd syst\u00e9m\",\"datePublished\":\"2024-03-01T11:23:09+00:00\",\"dateModified\":\"2024-09-06T21:19:38+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/forbot.com\\\/cs\\\/kurz-arduino-uroven-2\\\/kurz-arduino-uroven-ii-5-klavesnice-vlastni-alarmovy-system\\\/\"},\"wordCount\":3665,\"publisher\":{\"@id\":\"https:\\\/\\\/forbot.com\\\/de\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/forbot.com\\\/cs\\\/kurz-arduino-uroven-2\\\/kurz-arduino-uroven-ii-5-klavesnice-vlastni-alarmovy-system\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/forbot.com\\\/wp-content\\\/uploads\\\/2024\\\/09\\\/ikonaArd2_5.jpg\",\"articleSection\":[\"Kurz Arduino \u00farove\u0148 II\"],\"inLanguage\":\"cs\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/forbot.com\\\/cs\\\/kurz-arduino-uroven-2\\\/kurz-arduino-uroven-ii-5-klavesnice-vlastni-alarmovy-system\\\/\",\"url\":\"https:\\\/\\\/forbot.com\\\/cs\\\/kurz-arduino-uroven-2\\\/kurz-arduino-uroven-ii-5-klavesnice-vlastni-alarmovy-system\\\/\",\"name\":\"Kurz Arduino \u00farove\u0148 II - #5 - Kl\u00e1vesnice, vlastn\u00ed alarmov\u00fd syst\u00e9m - FORBOT\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/forbot.com\\\/de\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/forbot.com\\\/cs\\\/kurz-arduino-uroven-2\\\/kurz-arduino-uroven-ii-5-klavesnice-vlastni-alarmovy-system\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/forbot.com\\\/cs\\\/kurz-arduino-uroven-2\\\/kurz-arduino-uroven-ii-5-klavesnice-vlastni-alarmovy-system\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/forbot.com\\\/wp-content\\\/uploads\\\/2024\\\/09\\\/ikonaArd2_5.jpg\",\"datePublished\":\"2024-03-01T11:23:09+00:00\",\"dateModified\":\"2024-09-06T21:19:38+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/forbot.com\\\/cs\\\/kurz-arduino-uroven-2\\\/kurz-arduino-uroven-ii-5-klavesnice-vlastni-alarmovy-system\\\/#breadcrumb\"},\"inLanguage\":\"cs\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/forbot.com\\\/cs\\\/kurz-arduino-uroven-2\\\/kurz-arduino-uroven-ii-5-klavesnice-vlastni-alarmovy-system\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"cs\",\"@id\":\"https:\\\/\\\/forbot.com\\\/cs\\\/kurz-arduino-uroven-2\\\/kurz-arduino-uroven-ii-5-klavesnice-vlastni-alarmovy-system\\\/#primaryimage\",\"url\":\"https:\\\/\\\/forbot.com\\\/wp-content\\\/uploads\\\/2024\\\/09\\\/ikonaArd2_5.jpg\",\"contentUrl\":\"https:\\\/\\\/forbot.com\\\/wp-content\\\/uploads\\\/2024\\\/09\\\/ikonaArd2_5.jpg\",\"width\":788,\"height\":533},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/forbot.com\\\/cs\\\/kurz-arduino-uroven-2\\\/kurz-arduino-uroven-ii-5-klavesnice-vlastni-alarmovy-system\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/forbot.com\\\/de\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Kurz Arduino \u00farove\u0148 II &#8211; #5 &#8211; Kl\u00e1vesnice, vlastn\u00ed alarmov\u00fd syst\u00e9m\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/forbot.com\\\/de\\\/#website\",\"url\":\"https:\\\/\\\/forbot.com\\\/de\\\/\",\"name\":\"FORBOT\",\"description\":\"Blog o elektronice, Arduino a Raspberry Pi\",\"publisher\":{\"@id\":\"https:\\\/\\\/forbot.com\\\/de\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/forbot.com\\\/de\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"cs\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/forbot.com\\\/de\\\/#organization\",\"name\":\"FORBOT\",\"url\":\"https:\\\/\\\/forbot.com\\\/de\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"cs\",\"@id\":\"https:\\\/\\\/forbot.com\\\/de\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/forbot.com\\\/wp-content\\\/uploads\\\/2024\\\/09\\\/logo.svg\",\"contentUrl\":\"https:\\\/\\\/forbot.com\\\/wp-content\\\/uploads\\\/2024\\\/09\\\/logo.svg\",\"width\":1179,\"height\":255,\"caption\":\"FORBOT\"},\"image\":{\"@id\":\"https:\\\/\\\/forbot.com\\\/de\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/botland.de\\\/\",\"https:\\\/\\\/www.youtube.com\\\/@botland_pl\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/forbot.com\\\/de\\\/#\\\/schema\\\/person\\\/aff57459c89be0682a88d130e1b2157c\",\"name\":\"Sebastian Trame\",\"url\":\"https:\\\/\\\/forbot.com\\\/cs\\\/author\\\/sebastian-trame\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Kurz Arduino \u00farove\u0148 II - #5 - Kl\u00e1vesnice, vlastn\u00ed alarmov\u00fd syst\u00e9m - FORBOT","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/forbot.com\/cs\/kurz-arduino-uroven-2\/kurz-arduino-uroven-ii-5-klavesnice-vlastni-alarmovy-system\/","og_locale":"cs_CZ","og_type":"article","og_title":"Kurz Arduino \u00farove\u0148 II - #5 - Kl\u00e1vesnice, vlastn\u00ed alarmov\u00fd syst\u00e9m - FORBOT","og_description":"B\u011bhem cvi\u010den\u00ed v t\u00e9to \u010d\u00e1sti kurzu Arduino se pod\u00edv\u00e1me na nejvhodn\u011bj\u0161\u00ed zp\u016fsob p\u0159ipojen\u00ed kl\u00e1vesnice k na\u0161emu za\u0159\u00edzen\u00ed v praxi. Pomoc\u00ed v\u0161ech dosud probran\u00fdch komponent sestav\u00edme popla\u0161n\u00e9 centrum, jeho\u017e hlavn\u00edm mozkem bude Arduino. &lt;&lt; P\u0159edchoz\u00ed \u010d\u00e1st Navigace v kurzu \u25bc Dal\u0161\u00ed \u010d\u00e1st &gt;&gt; Objednejte si sadu prvk\u016f a za\u010dn\u011bte se u\u010dit v praxi! Kliknut\u00edm sem p\u0159ejdete [&hellip;]","og_url":"https:\/\/forbot.com\/cs\/kurz-arduino-uroven-2\/kurz-arduino-uroven-ii-5-klavesnice-vlastni-alarmovy-system\/","og_site_name":"FORBOT","article_publisher":"https:\/\/www.facebook.com\/botland.de\/","article_published_time":"2024-03-01T11:23:09+00:00","article_modified_time":"2024-09-06T21:19:38+00:00","og_image":[{"width":788,"height":533,"url":"https:\/\/forbot.com\/wp-content\/uploads\/2024\/09\/ikonaArd2_5.jpg","type":"image\/jpeg"}],"author":"Sebastian Trame","twitter_card":"summary_large_image","twitter_misc":{"Napsal(a)":"Sebastian Trame","Odhadovan\u00e1 doba \u010dten\u00ed":"18 minut"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/forbot.com\/cs\/kurz-arduino-uroven-2\/kurz-arduino-uroven-ii-5-klavesnice-vlastni-alarmovy-system\/#article","isPartOf":{"@id":"https:\/\/forbot.com\/cs\/kurz-arduino-uroven-2\/kurz-arduino-uroven-ii-5-klavesnice-vlastni-alarmovy-system\/"},"author":{"name":"Sebastian Trame","@id":"https:\/\/forbot.com\/de\/#\/schema\/person\/aff57459c89be0682a88d130e1b2157c"},"headline":"Kurz Arduino \u00farove\u0148 II &#8211; #5 &#8211; Kl\u00e1vesnice, vlastn\u00ed alarmov\u00fd syst\u00e9m","datePublished":"2024-03-01T11:23:09+00:00","dateModified":"2024-09-06T21:19:38+00:00","mainEntityOfPage":{"@id":"https:\/\/forbot.com\/cs\/kurz-arduino-uroven-2\/kurz-arduino-uroven-ii-5-klavesnice-vlastni-alarmovy-system\/"},"wordCount":3665,"publisher":{"@id":"https:\/\/forbot.com\/de\/#organization"},"image":{"@id":"https:\/\/forbot.com\/cs\/kurz-arduino-uroven-2\/kurz-arduino-uroven-ii-5-klavesnice-vlastni-alarmovy-system\/#primaryimage"},"thumbnailUrl":"https:\/\/forbot.com\/wp-content\/uploads\/2024\/09\/ikonaArd2_5.jpg","articleSection":["Kurz Arduino \u00farove\u0148 II"],"inLanguage":"cs"},{"@type":"WebPage","@id":"https:\/\/forbot.com\/cs\/kurz-arduino-uroven-2\/kurz-arduino-uroven-ii-5-klavesnice-vlastni-alarmovy-system\/","url":"https:\/\/forbot.com\/cs\/kurz-arduino-uroven-2\/kurz-arduino-uroven-ii-5-klavesnice-vlastni-alarmovy-system\/","name":"Kurz Arduino \u00farove\u0148 II - #5 - Kl\u00e1vesnice, vlastn\u00ed alarmov\u00fd syst\u00e9m - FORBOT","isPartOf":{"@id":"https:\/\/forbot.com\/de\/#website"},"primaryImageOfPage":{"@id":"https:\/\/forbot.com\/cs\/kurz-arduino-uroven-2\/kurz-arduino-uroven-ii-5-klavesnice-vlastni-alarmovy-system\/#primaryimage"},"image":{"@id":"https:\/\/forbot.com\/cs\/kurz-arduino-uroven-2\/kurz-arduino-uroven-ii-5-klavesnice-vlastni-alarmovy-system\/#primaryimage"},"thumbnailUrl":"https:\/\/forbot.com\/wp-content\/uploads\/2024\/09\/ikonaArd2_5.jpg","datePublished":"2024-03-01T11:23:09+00:00","dateModified":"2024-09-06T21:19:38+00:00","breadcrumb":{"@id":"https:\/\/forbot.com\/cs\/kurz-arduino-uroven-2\/kurz-arduino-uroven-ii-5-klavesnice-vlastni-alarmovy-system\/#breadcrumb"},"inLanguage":"cs","potentialAction":[{"@type":"ReadAction","target":["https:\/\/forbot.com\/cs\/kurz-arduino-uroven-2\/kurz-arduino-uroven-ii-5-klavesnice-vlastni-alarmovy-system\/"]}]},{"@type":"ImageObject","inLanguage":"cs","@id":"https:\/\/forbot.com\/cs\/kurz-arduino-uroven-2\/kurz-arduino-uroven-ii-5-klavesnice-vlastni-alarmovy-system\/#primaryimage","url":"https:\/\/forbot.com\/wp-content\/uploads\/2024\/09\/ikonaArd2_5.jpg","contentUrl":"https:\/\/forbot.com\/wp-content\/uploads\/2024\/09\/ikonaArd2_5.jpg","width":788,"height":533},{"@type":"BreadcrumbList","@id":"https:\/\/forbot.com\/cs\/kurz-arduino-uroven-2\/kurz-arduino-uroven-ii-5-klavesnice-vlastni-alarmovy-system\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/forbot.com\/de\/"},{"@type":"ListItem","position":2,"name":"Kurz Arduino \u00farove\u0148 II &#8211; #5 &#8211; Kl\u00e1vesnice, vlastn\u00ed alarmov\u00fd syst\u00e9m"}]},{"@type":"WebSite","@id":"https:\/\/forbot.com\/de\/#website","url":"https:\/\/forbot.com\/de\/","name":"FORBOT","description":"Blog o elektronice, Arduino a Raspberry Pi","publisher":{"@id":"https:\/\/forbot.com\/de\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/forbot.com\/de\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"cs"},{"@type":"Organization","@id":"https:\/\/forbot.com\/de\/#organization","name":"FORBOT","url":"https:\/\/forbot.com\/de\/","logo":{"@type":"ImageObject","inLanguage":"cs","@id":"https:\/\/forbot.com\/de\/#\/schema\/logo\/image\/","url":"https:\/\/forbot.com\/wp-content\/uploads\/2024\/09\/logo.svg","contentUrl":"https:\/\/forbot.com\/wp-content\/uploads\/2024\/09\/logo.svg","width":1179,"height":255,"caption":"FORBOT"},"image":{"@id":"https:\/\/forbot.com\/de\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/botland.de\/","https:\/\/www.youtube.com\/@botland_pl"]},{"@type":"Person","@id":"https:\/\/forbot.com\/de\/#\/schema\/person\/aff57459c89be0682a88d130e1b2157c","name":"Sebastian Trame","url":"https:\/\/forbot.com\/cs\/author\/sebastian-trame\/"}]}},"uagb_featured_image_src":{"full":["https:\/\/forbot.com\/wp-content\/uploads\/2024\/09\/ikonaArd2_5.jpg",788,533,false],"thumbnail":["https:\/\/forbot.com\/wp-content\/uploads\/2024\/09\/ikonaArd2_5-150x150.jpg",150,150,true],"medium":["https:\/\/forbot.com\/wp-content\/uploads\/2024\/09\/ikonaArd2_5-300x203.jpg",300,203,true],"medium_large":["https:\/\/forbot.com\/wp-content\/uploads\/2024\/09\/ikonaArd2_5-768x519.jpg",768,519,true],"large":["https:\/\/forbot.com\/wp-content\/uploads\/2024\/09\/ikonaArd2_5.jpg",788,533,false],"1536x1536":["https:\/\/forbot.com\/wp-content\/uploads\/2024\/09\/ikonaArd2_5.jpg",788,533,false],"2048x2048":["https:\/\/forbot.com\/wp-content\/uploads\/2024\/09\/ikonaArd2_5.jpg",788,533,false]},"uagb_author_info":{"display_name":"Sebastian Trame","author_link":"https:\/\/forbot.com\/cs\/author\/sebastian-trame\/"},"uagb_comment_info":0,"uagb_excerpt":"B\u011bhem cvi\u010den\u00ed v t\u00e9to \u010d\u00e1sti kurzu Arduino se pod\u00edv\u00e1me na nejvhodn\u011bj\u0161\u00ed zp\u016fsob p\u0159ipojen\u00ed kl\u00e1vesnice k na\u0161emu za\u0159\u00edzen\u00ed v praxi. Pomoc\u00ed v\u0161ech dosud probran\u00fdch komponent sestav\u00edme popla\u0161n\u00e9 centrum, jeho\u017e hlavn\u00edm mozkem bude Arduino. &lt;&lt; P\u0159edchoz\u00ed \u010d\u00e1st Navigace v kurzu \u25bc Dal\u0161\u00ed \u010d\u00e1st &gt;&gt; Objednejte si sadu prvk\u016f a za\u010dn\u011bte se u\u010dit v praxi! Kliknut\u00edm sem p\u0159ejdete&hellip;","_links":{"self":[{"href":"https:\/\/forbot.com\/cs\/wp-json\/wp\/v2\/posts\/5806","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/forbot.com\/cs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/forbot.com\/cs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/forbot.com\/cs\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/forbot.com\/cs\/wp-json\/wp\/v2\/comments?post=5806"}],"version-history":[{"count":640,"href":"https:\/\/forbot.com\/cs\/wp-json\/wp\/v2\/posts\/5806\/revisions"}],"predecessor-version":[{"id":10693,"href":"https:\/\/forbot.com\/cs\/wp-json\/wp\/v2\/posts\/5806\/revisions\/10693"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/forbot.com\/cs\/wp-json\/wp\/v2\/media\/4617"}],"wp:attachment":[{"href":"https:\/\/forbot.com\/cs\/wp-json\/wp\/v2\/media?parent=5806"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/forbot.com\/cs\/wp-json\/wp\/v2\/categories?post=5806"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/forbot.com\/cs\/wp-json\/wp\/v2\/tags?post=5806"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}