{"id":721,"date":"2025-04-17T13:06:34","date_gmt":"2025-04-17T13:06:34","guid":{"rendered":"https:\/\/glebdranitson24.thkit.ee\/wp\/?page_id=721"},"modified":"2025-04-24T12:11:28","modified_gmt":"2025-04-24T12:11:28","slug":"valgusfoor","status":"publish","type":"page","link":"https:\/\/glebdranitson24.thkit.ee\/wp\/?page_id=721","title":{"rendered":"LED RGB \/ Valgusfoor"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">KATSE 1 LED RGB<\/h2>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1015\" height=\"798\" data-id=\"742\" src=\"https:\/\/glebdranitson24.thkit.ee\/wp\/wp-content\/uploads\/2025\/04\/111Hoiva.png\" alt=\"\" class=\"wp-image-742\" srcset=\"https:\/\/glebdranitson24.thkit.ee\/wp\/wp-content\/uploads\/2025\/04\/111Hoiva.png 1015w, https:\/\/glebdranitson24.thkit.ee\/wp\/wp-content\/uploads\/2025\/04\/111Hoiva-300x236.png 300w, https:\/\/glebdranitson24.thkit.ee\/wp\/wp-content\/uploads\/2025\/04\/111Hoiva-768x604.png 768w, https:\/\/glebdranitson24.thkit.ee\/wp\/wp-content\/uploads\/2025\/04\/111Hoiva-150x118.png 150w, https:\/\/glebdranitson24.thkit.ee\/wp\/wp-content\/uploads\/2025\/04\/111Hoiva-600x472.png 600w\" sizes=\"auto, (max-width: 1015px) 100vw, 1015px\" \/><\/figure>\n<\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">LED RGB<\/h3>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: arduino; title: ; notranslate\" title=\"\">\nconst int RED_PIN = 11;\n\nconst int GREEN_PIN = 9;\n\nconst int BLUE_PIN = 10;\n\nint DISPLAY_TIME = 100;  \/\/ v\u00e4rvimuutuse kiirus\n\nvoid setup()\n\n{\n\n  pinMode(RED_PIN, OUTPUT);\n\n  pinMode(GREEN_PIN, OUTPUT);\n\n  pinMode(BLUE_PIN, OUTPUT);\n\n}\n\nvoid loop()\n\n{\n\nmainColors();\n\nshowSpectrum();\n\n}\n\nvoid mainColors()\n\n{\n\n\/\/ K\u00f5ik LEDid on v\u00e4lja l\u00fclitatud\n\n  digitalWrite(RED_PIN, LOW);\n\n  digitalWrite(GREEN_PIN, LOW);\n\n  digitalWrite(BLUE_PIN, LOW);\n\n delay(50);\n\n\/\/P\u00f5leb punane\n\n  digitalWrite(RED_PIN, HIGH);\n\n  digitalWrite(GREEN_PIN, LOW);\n\n  digitalWrite(BLUE_PIN, LOW);\n\n  delay(50);\n\n\/\/ P\u00f5leb roheline\n\n  digitalWrite(RED_PIN, LOW);\n\n  digitalWrite(GREEN_PIN, HIGH);\n\n  digitalWrite(BLUE_PIN, LOW);\n\n  delay(50);\n\n\/\/ Sinine on sisse l\u00fclitatud\n\n  digitalWrite(RED_PIN, LOW);\n\n  digitalWrite(GREEN_PIN, LOW);\n\n  digitalWrite(BLUE_PIN, HIGH);\n\n  delay(50);\n\n\/\/ Kollane.\n\n  digitalWrite(RED_PIN, HIGH);\n\n  digitalWrite(GREEN_PIN, HIGH);\n\n  digitalWrite(BLUE_PIN, LOW);\n\n  delay(50);\n\n\/\/ Lilla\n\n  digitalWrite(RED_PIN, LOW);\n\n  digitalWrite(GREEN_PIN, HIGH);\n\n  digitalWrite(BLUE_PIN, HIGH);\n\n  delay(50);\n\n\/\/Roosa\n\n  digitalWrite(RED_PIN, HIGH);\n\n  digitalWrite(GREEN_PIN, LOW);\n\n  digitalWrite(BLUE_PIN, HIGH);\n\n  delay(50);\n\n\/\/Valge ehk k\u00f5ik on sisse l\u00fclitatud\n\n  digitalWrite(RED_PIN, HIGH);\n\n  digitalWrite(GREEN_PIN, HIGH);\n\n  digitalWrite(BLUE_PIN, HIGH);\n\n  delay(50);\n\n}\n\n\/\/ Vikerkaar. \n\nvoid showSpectrum()\n\n{\n\n  int x;\n\n  for (x = 0; x &lt; 768; x++)\n\n  {\n\n    showRGB(x);  \/\/ \n\n    delay(10);   \/\/ paus 0,001 sek\n\n  }\n\n}\n\n\/\/ ShowRGB()  p\u00f5hiv\u00e4rvid: \n\n\/\/ 0 = punane \n\n\/\/ 255 = roheline\n\n\/\/ 511 = sinine\n\n\/\/ 767 = j\u00e4lle punane \n\nvoid showRGB(int color)\n\n{\n\n  int redIntensity;\n\n  int greenIntensity;\n\n  int blueIntensity;\n\n  if (color &lt;= 255)                \n\n  {\n\n    redIntensity = 255 - color;    \/\/ l\u00fclitakse v\u00e4lja punane\n\n    greenIntensity = color;        \/\/ l\u00fclitakse sisse roheline\n\n    blueIntensity = 0;             \/\/ sinine on v\u00e4lja l\u00fclitatud\n\n  }\n\n  else if (color &lt;= 511)          \n\n  {\n\n    redIntensity = 0;                     \/\/ punane on v\u00e4lja l\u00fclitatud\n\n    greenIntensity = 255 - (color - 256); \n\n    blueIntensity = (color - 256);        \n\n  }\n\n  else if (color &gt;= 512)             \n\n  {\n\n    redIntensity = (color - 512);        \n\n    greenIntensity = 0;                  \n\n    blueIntensity = 255 - (color - 512);  \n\n  }\n\n  analogWrite(RED_PIN, redIntensity); \/\/ punase LED\u00b4i sujuv \u00fcmberl\u00fclitamine\n\n  analogWrite(BLUE_PIN, blueIntensity);\n\n  analogWrite(GREEN_PIN, greenIntensity);\n\n}\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading\">\u041f\u043e\u044f\u0441\u043d\u0435\u043d\u0438\u0435 \u043a\u043e\u0434\u0430 \/ \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435<\/h2>\n\n\n\n<p>\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 <strong>RGB-\u0441\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434\u043e\u043c<\/strong>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0451\u043d \u043a \u0442\u0440\u0435\u043c \u043f\u0438\u043d\u0430\u043c:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u041a\u0440\u0430\u0441\u043d\u044b\u0439<\/strong> \u2014 \u043f\u0438\u043d 11<\/li>\n\n\n\n<li><strong>\u0417\u0435\u043b\u0451\u043d\u044b\u0439<\/strong> \u2014 \u043f\u0438\u043d 9<\/li>\n\n\n\n<li><strong>\u0421\u0438\u043d\u0438\u0439<\/strong> \u2014 \u043f\u0438\u043d 10<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">\u041e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438:<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>\u0418\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f (<code>setup<\/code>):<\/strong><br>\u0412\u0441\u0435 \u0442\u0440\u0438 \u043f\u0438\u043d\u0430 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u044b \u043a\u0430\u043a \u0432\u044b\u0445\u043e\u0434\u044b.<\/li>\n\n\n\n<li><strong>\u041e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0446\u0438\u043a\u043b (<code>loop<\/code>):<\/strong><br>\u0412 \u0431\u0435\u0441\u043a\u043e\u043d\u0435\u0447\u043d\u043e\u043c \u0446\u0438\u043a\u043b\u0435 \u0432\u044b\u0437\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u0434\u0432\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438:\n<ul class=\"wp-block-list\">\n<li><code>mainColors()<\/code> \u2014 \u0432\u044b\u0432\u043e\u0434\u0438\u0442 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u0446\u0432\u0435\u0442\u0430 \u0438 \u0438\u0445 \u043a\u043e\u043c\u0431\u0438\u043d\u0430\u0446\u0438\u0438 (\u0432\u043a\u043b.\/\u0432\u044b\u043a\u043b. \u0431\u0435\u0437 \u0433\u0440\u0430\u0434\u0430\u0446\u0438\u0439 \u044f\u0440\u043a\u043e\u0441\u0442\u0438).<\/li>\n\n\n\n<li><code>showSpectrum()<\/code> \u2014 \u043f\u043b\u0430\u0432\u043d\u043e \u043f\u0435\u0440\u0435\u0431\u0438\u0440\u0430\u0435\u0442 \u0432\u0435\u0441\u044c \u0441\u043f\u0435\u043a\u0442\u0440 RGB, \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u044f \u044d\u0444\u0444\u0435\u043a\u0442 \u0440\u0430\u0434\u0443\u0433\u0438.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u0414\u0435\u0442\u0430\u043b\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u0439:<\/h3>\n\n\n\n<h3 class=\"wp-block-heading\">1. <code>mainColors()<\/code>:<\/h3>\n\n\n\n<p>\u041f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u0441\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434 \u0432 \u0442\u0430\u043a\u0438\u0435 \u0446\u0432\u0435\u0442\u0430:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u0412\u044b\u043a\u043b.<\/strong><\/li>\n\n\n\n<li><strong>\u041a\u0440\u0430\u0441\u043d\u044b\u0439<\/strong><\/li>\n\n\n\n<li><strong>\u0417\u0435\u043b\u0451\u043d\u044b\u0439<\/strong><\/li>\n\n\n\n<li><strong>\u0421\u0438\u043d\u0438\u0439<\/strong><\/li>\n\n\n\n<li><strong>\u0416\u0451\u043b\u0442\u044b\u0439<\/strong> (\u043a\u0440\u0430\u0441\u043d\u044b\u0439 + \u0437\u0435\u043b\u0451\u043d\u044b\u0439)<\/li>\n\n\n\n<li><strong>\u0413\u043e\u043b\u0443\u0431\u043e\u0439<\/strong> (\u0437\u0435\u043b\u0451\u043d\u044b\u0439 + \u0441\u0438\u043d\u0438\u0439)<\/li>\n\n\n\n<li><strong>\u0420\u043e\u0437\u043e\u0432\u044b\u0439<\/strong> (\u043a\u0440\u0430\u0441\u043d\u044b\u0439 + \u0441\u0438\u043d\u0438\u0439)<\/li>\n\n\n\n<li><strong>\u0411\u0435\u043b\u044b\u0439<\/strong> (\u0432\u0441\u0435 \u0446\u0432\u0435\u0442\u0430 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u044b)<\/li>\n<\/ul>\n\n\n\n<p>\u041a\u0430\u0436\u0434\u044b\u0439 \u0446\u0432\u0435\u0442 \u0433\u043e\u0440\u0438\u0442 <strong>50 \u043c\u0441<\/strong>, \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043c\u0435\u0436\u0434\u0443 \u043d\u0438\u043c\u0438 \u0440\u0435\u0437\u043a\u043e\u0435 (\u0431\u0435\u0437 \u0433\u0440\u0430\u0434\u0438\u0435\u043d\u0442\u0430).<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">2. <code>showSpectrum()<\/code>:<\/h3>\n\n\n\n<p>\u0421\u043e\u0437\u0434\u0430\u0435\u0442 <strong>\u043f\u043b\u0430\u0432\u043d\u044b\u0439 \u043f\u0435\u0440\u0435\u0445\u043e\u0434 \u043c\u0435\u0436\u0434\u0443 \u0446\u0432\u0435\u0442\u0430\u043c\u0438<\/strong>:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0446\u0438\u043a\u043b \u043e\u0442 <strong>0 \u0434\u043e 767<\/strong>, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043a\u0430\u0436\u0434\u044b\u0439 \u0448\u0430\u0433 \u2014 \u044d\u0442\u043e \u043d\u043e\u0432\u043e\u0435 \u0441\u043e\u0447\u0435\u0442\u0430\u043d\u0438\u0435 \u044f\u0440\u043a\u043e\u0441\u0442\u0438 \u0434\u043b\u044f \u043a\u0440\u0430\u0441\u043d\u043e\u0433\u043e, \u0437\u0435\u043b\u0451\u043d\u043e\u0433\u043e \u0438 \u0441\u0438\u043d\u0435\u0433\u043e \u043a\u0430\u043d\u0430\u043b\u043e\u0432.<\/li>\n\n\n\n<li>\u041a\u0430\u0436\u0434\u044b\u0439 \u0448\u0430\u0433 \u0437\u0430\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043d\u0430 <strong>10 \u043c\u0441<\/strong>, \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u044f \u044d\u0444\u0444\u0435\u043a\u0442 <strong>\u043f\u043b\u0430\u0432\u043d\u043e\u0439 \u0441\u043c\u0435\u043d\u044b \u0446\u0432\u0435\u0442\u043e\u0432 (\u0440\u0430\u0434\u0443\u0433\u0438)<\/strong>.<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">\u041f\u043e\u044f\u0441\u043d\u0435\u043d\u0438\u0435 \u0441\u043f\u0435\u043a\u0442\u0440\u0430 \u0432 <code>showRGB(int color)<\/code>:<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>0\u2013255<\/strong>:<br>\u041f\u0435\u0440\u0435\u0445\u043e\u0434 \u043e\u0442 <strong>\u043a\u0440\u0430\u0441\u043d\u043e\u0433\u043e \u043a \u0437\u0435\u043b\u0451\u043d\u043e\u043c\u0443<\/strong> (\u043f\u043e\u0441\u0442\u0435\u043f\u0435\u043d\u043d\u043e \u0443\u0431\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043a\u0440\u0430\u0441\u043d\u044b\u0439 \u0438 \u043f\u0440\u0438\u0431\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0437\u0435\u043b\u0451\u043d\u044b\u0439).<\/li>\n\n\n\n<li><strong>256\u2013511<\/strong>:<br>\u041f\u0435\u0440\u0435\u0445\u043e\u0434 \u043e\u0442 <strong>\u0437\u0435\u043b\u0451\u043d\u043e\u0433\u043e \u043a \u0441\u0438\u043d\u0435\u043c\u0443<\/strong> (\u0443\u0431\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0437\u0435\u043b\u0451\u043d\u044b\u0439 \u0438 \u043f\u0440\u0438\u0431\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441\u0438\u043d\u0438\u0439).<\/li>\n\n\n\n<li><strong>512\u2013767<\/strong>:<br>\u041f\u0435\u0440\u0435\u0445\u043e\u0434 \u043e\u0442 <strong>\u0441\u0438\u043d\u0435\u0433\u043e \u043a \u043a\u0440\u0430\u0441\u043d\u043e\u043c\u0443<\/strong> (\u0443\u0431\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441\u0438\u043d\u0438\u0439 \u0438 \u043f\u0440\u0438\u0431\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043a\u0440\u0430\u0441\u043d\u044b\u0439).<\/li>\n<\/ul>\n\n\n\n<p>\u0426\u0432\u0435\u0442\u0430 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e <strong>\u0428\u0418\u041c (PWM)<\/strong> \u0447\u0435\u0440\u0435\u0437 <code>analogWrite<\/code>, \u0447\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0440\u0435\u0433\u0443\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u044f\u0440\u043a\u043e\u0441\u0442\u044c \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0446\u0432\u0435\u0442\u0430.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u0418\u0442\u043e\u0433:<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong><code>mainColors()<\/code><\/strong> \u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0438\u0440\u0443\u0435\u0442 \u0431\u0430\u0437\u043e\u0432\u044b\u0435 \u0446\u0432\u0435\u0442\u0430 \u0438 \u0438\u0445 \u043a\u043e\u043c\u0431\u0438\u043d\u0430\u0446\u0438\u0438.<\/li>\n\n\n\n<li><strong><code>showSpectrum()<\/code><\/strong> \u0441\u043e\u0437\u0434\u0430\u0451\u0442 \u044d\u0444\u0444\u0435\u043a\u0442 \u0440\u0430\u0434\u0443\u0433\u0438 \u0441 \u043f\u043b\u0430\u0432\u043d\u044b\u043c\u0438 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0430\u043c\u0438.<\/li>\n<\/ul>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">LED<\/h2>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-2 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"749\" height=\"791\" data-id=\"743\" src=\"https:\/\/glebdranitson24.thkit.ee\/wp\/wp-content\/uploads\/2025\/04\/led.png\" alt=\"\" class=\"wp-image-743\" srcset=\"https:\/\/glebdranitson24.thkit.ee\/wp\/wp-content\/uploads\/2025\/04\/led.png 749w, https:\/\/glebdranitson24.thkit.ee\/wp\/wp-content\/uploads\/2025\/04\/led-284x300.png 284w, https:\/\/glebdranitson24.thkit.ee\/wp\/wp-content\/uploads\/2025\/04\/led-142x150.png 142w, https:\/\/glebdranitson24.thkit.ee\/wp\/wp-content\/uploads\/2025\/04\/led-600x634.png 600w\" sizes=\"auto, (max-width: 749px) 100vw, 749px\" \/><\/figure>\n<\/figure>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: arduino; title: ; notranslate\" title=\"\">\n\/\/ C++ code\n\/\/\nvoid setup()\n{\n  pinMode(13, OUTPUT);\n}\n\nvoid loop()\n{\n  digitalWrite(13, HIGH);\n  delay(500); \/\/ Wait for 1000 millisecond(s)\n  digitalWrite(13, LOW);\n  delay(500); \/\/ Wait for 1000 millisecond(s)\n}\n\n<\/pre><\/div>\n\n\n<h3 class=\"wp-block-heading\">\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0440\u0430\u0431\u043e\u0442\u044b \u043a\u043e\u0434\u0430<\/h3>\n\n\n\n<h3 class=\"wp-block-heading\">\u041e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u0448\u0430\u0433\u0438:<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>\u0418\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f (<code>setup<\/code>):<\/strong>\n<ul class=\"wp-block-list\">\n<li>\u041f\u0438\u043d <strong>13<\/strong> \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043a\u0430\u043a \u0432\u044b\u0445\u043e\u0434\u043d\u043e\u0439 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e <code>pinMode(13, OUTPUT);<\/code>.<\/li>\n\n\n\n<li>\u041e\u0431\u044b\u0447\u043d\u043e \u043d\u0430 Arduino \u044d\u0442\u043e\u0442 \u043f\u0438\u043d \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0451\u043d \u043a \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u043e\u043c\u0443 \u0441\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434\u0443.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>\u041e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0446\u0438\u043a\u043b (<code>loop<\/code>):<\/strong>\n<ul class=\"wp-block-list\">\n<li>\u0412\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0441\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434 (<code>digitalWrite(13, HIGH);<\/code>).<\/li>\n\n\n\n<li>\u041f\u0430\u0443\u0437\u0430 <strong>500 \u043c\u0441<\/strong> (<code>delay(500);<\/code>).<\/li>\n\n\n\n<li>\u0412\u044b\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0441\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434 (<code>digitalWrite(13, LOW);<\/code>).<\/li>\n\n\n\n<li>\u0421\u043d\u043e\u0432\u0430 \u043f\u0430\u0443\u0437\u0430 <strong>500 \u043c\u0441<\/strong>.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442:<\/h3>\n\n\n\n<p>\u0421\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434 \u043c\u0438\u0433\u0430\u0435\u0442 \u0441 \u0447\u0430\u0441\u0442\u043e\u0442\u043e\u0439 <strong>1 \u0413\u0446<\/strong> (\u0440\u0430\u0437 \u0432 \u0441\u0435\u043a\u0443\u043d\u0434\u0443), \u0432\u043a\u043b\u044e\u0447\u0430\u044f\u0441\u044c \u0438 \u0432\u044b\u043a\u043b\u044e\u0447\u0430\u044f\u0441\u044c \u043a\u0430\u0436\u0434\u044b\u0435 <strong>0,5 \u0441\u0435\u043a\u0443\u043d\u0434\u044b<\/strong>.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">VALGUSFOOR<\/h2>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"794\" src=\"https:\/\/glebdranitson24.thkit.ee\/wp\/wp-content\/uploads\/2025\/04\/valgusfoor-1024x794.png\" alt=\"\" class=\"wp-image-722\" srcset=\"https:\/\/glebdranitson24.thkit.ee\/wp\/wp-content\/uploads\/2025\/04\/valgusfoor-1024x794.png 1024w, https:\/\/glebdranitson24.thkit.ee\/wp\/wp-content\/uploads\/2025\/04\/valgusfoor-300x233.png 300w, https:\/\/glebdranitson24.thkit.ee\/wp\/wp-content\/uploads\/2025\/04\/valgusfoor-768x595.png 768w, https:\/\/glebdranitson24.thkit.ee\/wp\/wp-content\/uploads\/2025\/04\/valgusfoor-150x116.png 150w, https:\/\/glebdranitson24.thkit.ee\/wp\/wp-content\/uploads\/2025\/04\/valgusfoor-600x465.png 600w, https:\/\/glebdranitson24.thkit.ee\/wp\/wp-content\/uploads\/2025\/04\/valgusfoor.png 1037w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: arduino; title: ; notranslate\" title=\"\">\nint redcar = 13;\nint yellowcar = 12;\nint greencar = 11;\n\nint redpeople = 10;\nint greenpeople = 9;\n\nbool dayMode = true;\n\nvoid setup() {\n  pinMode(redcar, OUTPUT);\n  pinMode(yellowcar, OUTPUT);\n  pinMode(greencar, OUTPUT);\n  pinMode(redpeople, OUTPUT);\n  pinMode(greenpeople, OUTPUT);\n}\n\nvoid loop() {\n  if (dayMode) {\n    \/\/ \u0414\u0435\u043d\u044c\n\n    \/\/ \u0421\u0442\u043e\u043f \u0434\u043b\u044f \u043c\u0430\u0448\u0438\u043d, \u043f\u0435\u0448\u0435\u0445\u043e\u0434\u044b \u0438\u0434\u0443\u0442\n    digitalWrite(redcar, HIGH);\n    digitalWrite(redpeople, LOW);\n    digitalWrite(greenpeople, HIGH);\n    delay(5000);\n\n    \/\/ \u0436\u0451\u043b\u0442\u044b\u0439 \u043c\u0438\u0433\u0430\u0435\u0442, \u043f\u0435\u0448\u0435\u0445\u043e\u0434\u0430\u043c \u0441\u0442\u043e\u043f\n    digitalWrite(greenpeople, LOW);\n    digitalWrite(redpeople, HIGH);\n    for (int i = 0; i &lt; 3; i++) {\n      digitalWrite(yellowcar, HIGH);\n      delay(300);\n      digitalWrite(yellowcar, LOW);\n      delay(300);\n    }\n\n    \/\/ \u0415\u0434\u0443\u0442 \u043c\u0430\u0448\u0438\u043d\u044b\n    digitalWrite(redcar, LOW);\n    digitalWrite(greencar, HIGH);\n    delay(5000);\n\n    \/\/ \u041a\u043e\u043d\u0435\u0446: \u0437\u0435\u043b\u0451\u043d\u044b\u0439 \u043c\u0438\u0433\u0430\u0435\u0442\n    for (int i = 0; i &lt; 3; i++) {\n      digitalWrite(greencar, LOW);\n      delay(300);\n      digitalWrite(greencar, HIGH);\n      delay(300);\n    }\n    digitalWrite(greencar, LOW);\n\n    \/\/ \u041f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u043d\u0430 \u043d\u043e\u0447\u043d\u043e\u0439 \u0440\u0435\u0436\u0438\u043c\n    dayMode = false;\n  } else {\n    \/\/ \u041d\u043e\u0447\u043d\u043e\u0439 \u0440\u0435\u0436\u0438\u043c\n\n    \/\/ \u0412\u0441\u0435 \u043f\u0435\u0448\u0435\u0445\u043e\u0434\u043d\u044b\u0435 \u043e\u0433\u043d\u0438 \u0432\u044b\u043a\u043b\u044e\u0447\u0435\u043d\u044b\n    digitalWrite(redpeople, LOW);\n    digitalWrite(greenpeople, LOW);\n\n    \/\/ \u041a\u0440\u0430\u0441\u043d\u044b\u0439 \u0438 \u0437\u0435\u043b\u0451\u043d\u044b\u0439 \u0434\u043b\u044f \u043c\u0430\u0448\u0438\u043d \u0432\u044b\u043a\u043b\u044e\u0447\u0435\u043d\u044b\n    digitalWrite(redcar, LOW);\n    digitalWrite(greencar, LOW);\n\n    \/\/ \u041c\u0438\u0433\u0430\u044e\u0449\u0438\u0439 \u0436\u0451\u043b\u0442\u044b\u0439 \u0434\u043b\u044f \u043c\u0430\u0448\u0438\u043d\n    for (int i = 0; i &lt; 10; i++) { \/\/ 10 \u043c\u0438\u0433\u0430\u043d\u0438\u0439 (\u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e 10 \u0441\u0435\u043a\u0443\u043d\u0434)\n      digitalWrite(yellowcar, HIGH);\n      delay(500);\n      digitalWrite(yellowcar, LOW);\n      delay(500);\n    }\n\n    \/\/ \u0412\u0435\u0440\u043d\u0443\u0442\u044c\u0441\u044f \u0432 \u0434\u043d\u0435\u0432\u043d\u043e\u0439 \u0440\u0435\u0436\u0438\u043c\n    dayMode = true;\n  }\n}\n\n<\/pre><\/div>\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-3 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"360\" data-id=\"727\" src=\"https:\/\/glebdranitson24.thkit.ee\/wp\/wp-content\/uploads\/2025\/04\/Hoiva-1-1024x360.png\" alt=\"\" class=\"wp-image-727\" srcset=\"https:\/\/glebdranitson24.thkit.ee\/wp\/wp-content\/uploads\/2025\/04\/Hoiva-1-1024x360.png 1024w, https:\/\/glebdranitson24.thkit.ee\/wp\/wp-content\/uploads\/2025\/04\/Hoiva-1-300x105.png 300w, https:\/\/glebdranitson24.thkit.ee\/wp\/wp-content\/uploads\/2025\/04\/Hoiva-1-768x270.png 768w, https:\/\/glebdranitson24.thkit.ee\/wp\/wp-content\/uploads\/2025\/04\/Hoiva-1-150x53.png 150w, https:\/\/glebdranitson24.thkit.ee\/wp\/wp-content\/uploads\/2025\/04\/Hoiva-1-1536x540.png 1536w, https:\/\/glebdranitson24.thkit.ee\/wp\/wp-content\/uploads\/2025\/04\/Hoiva-1-600x211.png 600w, https:\/\/glebdranitson24.thkit.ee\/wp\/wp-content\/uploads\/2025\/04\/Hoiva-1.png 1721w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043f\u0440\u043e\u0434\u0435\u043b\u0430\u043d\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b: \u0421\u0432\u0435\u0442\u043e\u0444\u043e\u0440<\/h3>\n\n\n\n<p>\u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430 \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0441\u0432\u0435\u0442\u043e\u0444\u043e\u0440\u043e\u043c \u0441 \u0434\u043d\u0435\u0432\u043d\u044b\u043c \u0438 \u043d\u043e\u0447\u043d\u044b\u043c \u0440\u0435\u0436\u0438\u043c\u0430\u043c\u0438 \u0440\u0430\u0431\u043e\u0442\u044b. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043f\u044f\u0442\u044c \u0441\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434\u043e\u0432:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u0422\u0440\u0438 \u0441\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434\u0430 \u0434\u043b\u044f \u0430\u0432\u0442\u043e\u043c\u043e\u0431\u0438\u043b\u0435\u0439<\/strong>: \u043a\u0440\u0430\u0441\u043d\u044b\u0439, \u0436\u0451\u043b\u0442\u044b\u0439 \u0438 \u0437\u0435\u043b\u0451\u043d\u044b\u0439.<\/li>\n\n\n\n<li><strong>\u0414\u0432\u0430 \u0441\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434\u0430 \u0434\u043b\u044f \u043f\u0435\u0448\u0435\u0445\u043e\u0434\u043e\u0432<\/strong>: \u043a\u0440\u0430\u0441\u043d\u044b\u0439 \u0438 \u0437\u0435\u043b\u0451\u043d\u044b\u0439.<\/li>\n<\/ul>\n\n\n\n<p>\u0423\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430 Arduino. \u041b\u043e\u0433\u0438\u043a\u0430 \u0440\u0430\u0431\u043e\u0442\u044b \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u0430 \u043d\u0430 \u0434\u0432\u0430 \u0440\u0435\u0436\u0438\u043c\u0430:<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u0410\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u0440\u0430\u0431\u043e\u0442\u044b<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">\u0414\u043d\u0435\u0432\u043d\u043e\u0439 \u0440\u0435\u0436\u0438\u043c:<\/h4>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>\u0421\u0442\u043e\u043f \u0434\u043b\u044f \u0430\u0432\u0442\u043e\u043c\u043e\u0431\u0438\u043b\u0435\u0439, \u043f\u0435\u0448\u0435\u0445\u043e\u0434\u044b \u0438\u0434\u0443\u0442<\/strong>:\n<ul class=\"wp-block-list\">\n<li>\u041a\u0440\u0430\u0441\u043d\u044b\u0439 \u0441\u0432\u0435\u0442 \u0434\u043b\u044f \u043c\u0430\u0448\u0438\u043d \u0432\u043a\u043b\u044e\u0447\u0451\u043d.<\/li>\n\n\n\n<li>\u0417\u0435\u043b\u0451\u043d\u044b\u0439 \u0434\u043b\u044f \u043f\u0435\u0448\u0435\u0445\u043e\u0434\u043e\u0432.<\/li>\n\n\n\n<li>\u0412\u0440\u0435\u043c\u044f \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0430 \u2014 5 \u0441\u0435\u043a\u0443\u043d\u0434.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>\u041f\u0435\u0448\u0435\u0445\u043e\u0434\u0430\u043c \u0441\u0442\u043e\u043f, \u0436\u0451\u043b\u0442\u044b\u0439 \u043c\u0438\u0433\u0430\u0435\u0442 \u0434\u043b\u044f \u043c\u0430\u0448\u0438\u043d<\/strong>:\n<ul class=\"wp-block-list\">\n<li>\u041a\u0440\u0430\u0441\u043d\u044b\u0439 \u0441\u0432\u0435\u0442 \u0434\u043b\u044f \u043f\u0435\u0448\u0435\u0445\u043e\u0434\u043e\u0432.<\/li>\n\n\n\n<li>\u0416\u0451\u043b\u0442\u044b\u0439 \u0434\u043b\u044f \u043c\u0430\u0448\u0438\u043d \u043c\u0438\u0433\u0430\u0435\u0442 \u0442\u0440\u0438 \u0440\u0430\u0437\u0430 (\u043f\u043e 300 \u043c\u0441).<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>\u0415\u0434\u0443\u0442 \u043c\u0430\u0448\u0438\u043d\u044b<\/strong>:\n<ul class=\"wp-block-list\">\n<li>\u0417\u0435\u043b\u0451\u043d\u044b\u0439 \u0441\u0432\u0435\u0442 \u0434\u043b\u044f \u043c\u0430\u0448\u0438\u043d \u0432\u043a\u043b\u044e\u0447\u0451\u043d \u043d\u0430 5 \u0441\u0435\u043a\u0443\u043d\u0434.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>\u041a\u043e\u043d\u0435\u0446 \u0437\u0435\u043b\u0451\u043d\u043e\u0433\u043e \u0441\u0438\u0433\u043d\u0430\u043b\u0430 \u0434\u043b\u044f \u043c\u0430\u0448\u0438\u043d<\/strong>:\n<ul class=\"wp-block-list\">\n<li>\u0417\u0435\u043b\u0451\u043d\u044b\u0439 \u0441\u0432\u0435\u0442 \u0434\u043b\u044f \u043c\u0430\u0448\u0438\u043d \u043c\u0438\u0433\u0430\u0435\u0442 \u0442\u0440\u0438 \u0440\u0430\u0437\u0430 (\u043f\u043e 300 \u043c\u0441).<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n\n<p>\u041f\u043e\u0441\u043b\u0435 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044f \u0446\u0438\u043a\u043b\u0430 \u0440\u0435\u0436\u0438\u043c \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u043d\u0430 \u043d\u043e\u0447\u043d\u043e\u0439.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h4 class=\"wp-block-heading\">\u041d\u043e\u0447\u043d\u043e\u0439 \u0440\u0435\u0436\u0438\u043c:<\/h4>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>\u041e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u044b \u0432\u0441\u0435 \u043f\u0435\u0448\u0435\u0445\u043e\u0434\u043d\u044b\u0435 \u043e\u0433\u043d\u0438<\/strong>.<\/li>\n\n\n\n<li><strong>\u041a\u0440\u0430\u0441\u043d\u044b\u0439 \u0438 \u0437\u0435\u043b\u0451\u043d\u044b\u0439 \u0441\u0438\u0433\u043d\u0430\u043b\u044b \u0434\u043b\u044f \u043c\u0430\u0448\u0438\u043d \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u044b<\/strong>.<\/li>\n\n\n\n<li><strong>\u041c\u0438\u0433\u0430\u044e\u0449\u0438\u0439 \u0436\u0451\u043b\u0442\u044b\u0439 \u0434\u043b\u044f \u043c\u0430\u0448\u0438\u043d<\/strong>:\n<ul class=\"wp-block-list\">\n<li>\u0416\u0451\u043b\u0442\u044b\u0439 \u0441\u0432\u0435\u0442 \u043c\u0438\u0433\u0430\u0435\u0442 \u0434\u0435\u0441\u044f\u0442\u044c \u0440\u0430\u0437 (\u043f\u043e 500 \u043c\u0441), \u0438\u043c\u0438\u0442\u0438\u0440\u0443\u044f \u043d\u043e\u0447\u043d\u043e\u0439 \u0440\u0435\u0436\u0438\u043c \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u044f.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n\n<p>\u041f\u043e\u0441\u043b\u0435 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044f \u043d\u043e\u0447\u043d\u043e\u0433\u043e \u0440\u0435\u0436\u0438\u043c\u0430 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u0434\u043d\u0435\u0432\u043d\u043e\u0439.<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-4-3 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"Valgusfoor TTHK\" width=\"1200\" height=\"900\" src=\"https:\/\/www.youtube.com\/embed\/2Q_QD5Mwybw?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>KATSE 1 LED RGB LED RGB \u041f\u043e\u044f\u0441\u043d\u0435\u043d\u0438\u0435 \u043a\u043e\u0434\u0430 \/ \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 RGB-\u0441\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434\u043e\u043c, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0451\u043d \u043a \u0442\u0440\u0435\u043c \u043f\u0438\u043d\u0430\u043c: \u041e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438: \u0414\u0435\u0442\u0430\u043b\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u0439: 1. mainColors(): \u041f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u0441\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434 \u0432 \u0442\u0430\u043a\u0438\u0435 \u0446\u0432\u0435\u0442\u0430: \u041a\u0430\u0436\u0434\u044b\u0439 \u0446\u0432\u0435\u0442 \u0433\u043e\u0440\u0438\u0442 50 \u043c\u0441, \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043c\u0435\u0436\u0434\u0443 \u043d\u0438\u043c\u0438 \u0440\u0435\u0437\u043a\u043e\u0435 (\u0431\u0435\u0437 \u0433\u0440\u0430\u0434\u0438\u0435\u043d\u0442\u0430). 2. showSpectrum(): \u0421\u043e\u0437\u0434\u0430\u0435\u0442 \u043f\u043b\u0430\u0432\u043d\u044b\u0439 \u043f\u0435\u0440\u0435\u0445\u043e\u0434 \u043c\u0435\u0436\u0434\u0443 \u0446\u0432\u0435\u0442\u0430\u043c\u0438: \u041f\u043e\u044f\u0441\u043d\u0435\u043d\u0438\u0435 \u0441\u043f\u0435\u043a\u0442\u0440\u0430 \u0432 showRGB(int color): \u0426\u0432\u0435\u0442\u0430 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u044e\u0442\u0441\u044f &#8230; <a title=\"LED RGB \/ Valgusfoor\" class=\"read-more\" href=\"https:\/\/glebdranitson24.thkit.ee\/wp\/?page_id=721\" aria-label=\"Read more about LED RGB \/ Valgusfoor\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-721","page","type-page","status-publish"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>LED RGB \/ Valgusfoor - Gleb Dranitsyn \/ Portfolio<\/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:\/\/glebdranitson24.thkit.ee\/wp\/?page_id=721\" \/>\n<meta property=\"og:locale\" content=\"et_EE\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"LED RGB \/ Valgusfoor - Gleb Dranitsyn \/ Portfolio\" \/>\n<meta property=\"og:description\" content=\"KATSE 1 LED RGB LED RGB \u041f\u043e\u044f\u0441\u043d\u0435\u043d\u0438\u0435 \u043a\u043e\u0434\u0430 \/ \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 RGB-\u0441\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434\u043e\u043c, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0451\u043d \u043a \u0442\u0440\u0435\u043c \u043f\u0438\u043d\u0430\u043c: \u041e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438: \u0414\u0435\u0442\u0430\u043b\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u0439: 1. mainColors(): \u041f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u0441\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434 \u0432 \u0442\u0430\u043a\u0438\u0435 \u0446\u0432\u0435\u0442\u0430: \u041a\u0430\u0436\u0434\u044b\u0439 \u0446\u0432\u0435\u0442 \u0433\u043e\u0440\u0438\u0442 50 \u043c\u0441, \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043c\u0435\u0436\u0434\u0443 \u043d\u0438\u043c\u0438 \u0440\u0435\u0437\u043a\u043e\u0435 (\u0431\u0435\u0437 \u0433\u0440\u0430\u0434\u0438\u0435\u043d\u0442\u0430). 2. showSpectrum(): \u0421\u043e\u0437\u0434\u0430\u0435\u0442 \u043f\u043b\u0430\u0432\u043d\u044b\u0439 \u043f\u0435\u0440\u0435\u0445\u043e\u0434 \u043c\u0435\u0436\u0434\u0443 \u0446\u0432\u0435\u0442\u0430\u043c\u0438: \u041f\u043e\u044f\u0441\u043d\u0435\u043d\u0438\u0435 \u0441\u043f\u0435\u043a\u0442\u0440\u0430 \u0432 showRGB(int color): \u0426\u0432\u0435\u0442\u0430 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u044e\u0442\u0441\u044f ... Read more\" \/>\n<meta property=\"og:url\" content=\"https:\/\/glebdranitson24.thkit.ee\/wp\/?page_id=721\" \/>\n<meta property=\"og:site_name\" content=\"Gleb Dranitsyn \/ Portfolio\" \/>\n<meta property=\"article:modified_time\" content=\"2025-04-24T12:11:28+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/glebdranitson24.thkit.ee\/wp\/wp-content\/uploads\/2025\/04\/111Hoiva.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1015\" \/>\n\t<meta property=\"og:image:height\" content=\"798\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"4 minutit\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/glebdranitson24.thkit.ee\\\/wp\\\/?page_id=721\",\"url\":\"https:\\\/\\\/glebdranitson24.thkit.ee\\\/wp\\\/?page_id=721\",\"name\":\"LED RGB \\\/ Valgusfoor - Gleb Dranitsyn \\\/ Portfolio\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/glebdranitson24.thkit.ee\\\/wp\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/glebdranitson24.thkit.ee\\\/wp\\\/?page_id=721#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/glebdranitson24.thkit.ee\\\/wp\\\/?page_id=721#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/glebdranitson24.thkit.ee\\\/wp\\\/wp-content\\\/uploads\\\/2025\\\/04\\\/111Hoiva.png\",\"datePublished\":\"2025-04-17T13:06:34+00:00\",\"dateModified\":\"2025-04-24T12:11:28+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/glebdranitson24.thkit.ee\\\/wp\\\/?page_id=721#breadcrumb\"},\"inLanguage\":\"et\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/glebdranitson24.thkit.ee\\\/wp\\\/?page_id=721\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"et\",\"@id\":\"https:\\\/\\\/glebdranitson24.thkit.ee\\\/wp\\\/?page_id=721#primaryimage\",\"url\":\"https:\\\/\\\/glebdranitson24.thkit.ee\\\/wp\\\/wp-content\\\/uploads\\\/2025\\\/04\\\/111Hoiva.png\",\"contentUrl\":\"https:\\\/\\\/glebdranitson24.thkit.ee\\\/wp\\\/wp-content\\\/uploads\\\/2025\\\/04\\\/111Hoiva.png\",\"width\":1015,\"height\":798},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/glebdranitson24.thkit.ee\\\/wp\\\/?page_id=721#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u0413\u043b\u0430\u0432\u043d\u0430\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430\",\"item\":\"https:\\\/\\\/glebdranitson24.thkit.ee\\\/wp\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"LED RGB \\\/ Valgusfoor\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/glebdranitson24.thkit.ee\\\/wp\\\/#website\",\"url\":\"https:\\\/\\\/glebdranitson24.thkit.ee\\\/wp\\\/\",\"name\":\"Gleb Dranitsyn \\\/ Portfolio\",\"description\":\"Tarkvara aarendaja\",\"publisher\":{\"@id\":\"https:\\\/\\\/glebdranitson24.thkit.ee\\\/wp\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/glebdranitson24.thkit.ee\\\/wp\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"et\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/glebdranitson24.thkit.ee\\\/wp\\\/#organization\",\"name\":\"Gleb Dranitsyn \\\/ Portfolio\",\"url\":\"https:\\\/\\\/glebdranitson24.thkit.ee\\\/wp\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"et\",\"@id\":\"https:\\\/\\\/glebdranitson24.thkit.ee\\\/wp\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/glebdranitson24.thkit.ee\\\/wp\\\/wp-content\\\/uploads\\\/2025\\\/03\\\/cropped-cropped-logo1.jpg\",\"contentUrl\":\"https:\\\/\\\/glebdranitson24.thkit.ee\\\/wp\\\/wp-content\\\/uploads\\\/2025\\\/03\\\/cropped-cropped-logo1.jpg\",\"width\":400,\"height\":171,\"caption\":\"Gleb Dranitsyn \\\/ Portfolio\"},\"image\":{\"@id\":\"https:\\\/\\\/glebdranitson24.thkit.ee\\\/wp\\\/#\\\/schema\\\/logo\\\/image\\\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"LED RGB \/ Valgusfoor - Gleb Dranitsyn \/ Portfolio","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:\/\/glebdranitson24.thkit.ee\/wp\/?page_id=721","og_locale":"et_EE","og_type":"article","og_title":"LED RGB \/ Valgusfoor - Gleb Dranitsyn \/ Portfolio","og_description":"KATSE 1 LED RGB LED RGB \u041f\u043e\u044f\u0441\u043d\u0435\u043d\u0438\u0435 \u043a\u043e\u0434\u0430 \/ \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 RGB-\u0441\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434\u043e\u043c, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0451\u043d \u043a \u0442\u0440\u0435\u043c \u043f\u0438\u043d\u0430\u043c: \u041e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438: \u0414\u0435\u0442\u0430\u043b\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u0439: 1. mainColors(): \u041f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u0441\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434 \u0432 \u0442\u0430\u043a\u0438\u0435 \u0446\u0432\u0435\u0442\u0430: \u041a\u0430\u0436\u0434\u044b\u0439 \u0446\u0432\u0435\u0442 \u0433\u043e\u0440\u0438\u0442 50 \u043c\u0441, \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043c\u0435\u0436\u0434\u0443 \u043d\u0438\u043c\u0438 \u0440\u0435\u0437\u043a\u043e\u0435 (\u0431\u0435\u0437 \u0433\u0440\u0430\u0434\u0438\u0435\u043d\u0442\u0430). 2. showSpectrum(): \u0421\u043e\u0437\u0434\u0430\u0435\u0442 \u043f\u043b\u0430\u0432\u043d\u044b\u0439 \u043f\u0435\u0440\u0435\u0445\u043e\u0434 \u043c\u0435\u0436\u0434\u0443 \u0446\u0432\u0435\u0442\u0430\u043c\u0438: \u041f\u043e\u044f\u0441\u043d\u0435\u043d\u0438\u0435 \u0441\u043f\u0435\u043a\u0442\u0440\u0430 \u0432 showRGB(int color): \u0426\u0432\u0435\u0442\u0430 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u044e\u0442\u0441\u044f ... Read more","og_url":"https:\/\/glebdranitson24.thkit.ee\/wp\/?page_id=721","og_site_name":"Gleb Dranitsyn \/ Portfolio","article_modified_time":"2025-04-24T12:11:28+00:00","og_image":[{"width":1015,"height":798,"url":"https:\/\/glebdranitson24.thkit.ee\/wp\/wp-content\/uploads\/2025\/04\/111Hoiva.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"4 minutit"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/glebdranitson24.thkit.ee\/wp\/?page_id=721","url":"https:\/\/glebdranitson24.thkit.ee\/wp\/?page_id=721","name":"LED RGB \/ Valgusfoor - Gleb Dranitsyn \/ Portfolio","isPartOf":{"@id":"https:\/\/glebdranitson24.thkit.ee\/wp\/#website"},"primaryImageOfPage":{"@id":"https:\/\/glebdranitson24.thkit.ee\/wp\/?page_id=721#primaryimage"},"image":{"@id":"https:\/\/glebdranitson24.thkit.ee\/wp\/?page_id=721#primaryimage"},"thumbnailUrl":"https:\/\/glebdranitson24.thkit.ee\/wp\/wp-content\/uploads\/2025\/04\/111Hoiva.png","datePublished":"2025-04-17T13:06:34+00:00","dateModified":"2025-04-24T12:11:28+00:00","breadcrumb":{"@id":"https:\/\/glebdranitson24.thkit.ee\/wp\/?page_id=721#breadcrumb"},"inLanguage":"et","potentialAction":[{"@type":"ReadAction","target":["https:\/\/glebdranitson24.thkit.ee\/wp\/?page_id=721"]}]},{"@type":"ImageObject","inLanguage":"et","@id":"https:\/\/glebdranitson24.thkit.ee\/wp\/?page_id=721#primaryimage","url":"https:\/\/glebdranitson24.thkit.ee\/wp\/wp-content\/uploads\/2025\/04\/111Hoiva.png","contentUrl":"https:\/\/glebdranitson24.thkit.ee\/wp\/wp-content\/uploads\/2025\/04\/111Hoiva.png","width":1015,"height":798},{"@type":"BreadcrumbList","@id":"https:\/\/glebdranitson24.thkit.ee\/wp\/?page_id=721#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u0413\u043b\u0430\u0432\u043d\u0430\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430","item":"https:\/\/glebdranitson24.thkit.ee\/wp\/"},{"@type":"ListItem","position":2,"name":"LED RGB \/ Valgusfoor"}]},{"@type":"WebSite","@id":"https:\/\/glebdranitson24.thkit.ee\/wp\/#website","url":"https:\/\/glebdranitson24.thkit.ee\/wp\/","name":"Gleb Dranitsyn \/ Portfolio","description":"Tarkvara aarendaja","publisher":{"@id":"https:\/\/glebdranitson24.thkit.ee\/wp\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/glebdranitson24.thkit.ee\/wp\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"et"},{"@type":"Organization","@id":"https:\/\/glebdranitson24.thkit.ee\/wp\/#organization","name":"Gleb Dranitsyn \/ Portfolio","url":"https:\/\/glebdranitson24.thkit.ee\/wp\/","logo":{"@type":"ImageObject","inLanguage":"et","@id":"https:\/\/glebdranitson24.thkit.ee\/wp\/#\/schema\/logo\/image\/","url":"https:\/\/glebdranitson24.thkit.ee\/wp\/wp-content\/uploads\/2025\/03\/cropped-cropped-logo1.jpg","contentUrl":"https:\/\/glebdranitson24.thkit.ee\/wp\/wp-content\/uploads\/2025\/03\/cropped-cropped-logo1.jpg","width":400,"height":171,"caption":"Gleb Dranitsyn \/ Portfolio"},"image":{"@id":"https:\/\/glebdranitson24.thkit.ee\/wp\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/glebdranitson24.thkit.ee\/wp\/index.php?rest_route=\/wp\/v2\/pages\/721","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/glebdranitson24.thkit.ee\/wp\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/glebdranitson24.thkit.ee\/wp\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/glebdranitson24.thkit.ee\/wp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/glebdranitson24.thkit.ee\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=721"}],"version-history":[{"count":7,"href":"https:\/\/glebdranitson24.thkit.ee\/wp\/index.php?rest_route=\/wp\/v2\/pages\/721\/revisions"}],"predecessor-version":[{"id":744,"href":"https:\/\/glebdranitson24.thkit.ee\/wp\/index.php?rest_route=\/wp\/v2\/pages\/721\/revisions\/744"}],"wp:attachment":[{"href":"https:\/\/glebdranitson24.thkit.ee\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=721"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}