<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[forum.rcl-radio.ru &mdash; RGB КОЛЬЦО - ЧАСЫ]]></title>
	<link rel="self" href="http://forum.rcl-radio.ru/extern.php?action=feed&amp;tid=199&amp;type=atom" />
	<updated>2021-05-29T07:02:05Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.rcl-radio.ru/viewtopic.php?id=199</id>
		<entry>
			<title type="html"><![CDATA[Re: RGB КОЛЬЦО - ЧАСЫ]]></title>
			<link rel="alternate" href="http://forum.rcl-radio.ru/viewtopic.php?pid=3778#p3778" />
			<content type="html"><![CDATA[<p>Собрал часы внутрянка и оболочка Китай, но плагодаря автору все работает.<span class="postimg"><img src="http://forum.rcl-radio.ru/uploads/images/2021/05/d149f673ad53255bb30d9658c31758cb.jpg" alt="http://forum.rcl-radio.ru/uploads/images/2021/05/d149f673ad53255bb30d9658c31758cb.jpg" /></span></p>]]></content>
			<author>
				<name><![CDATA[Acura]]></name>
				<uri>http://forum.rcl-radio.ru/profile.php?id=1313</uri>
			</author>
			<updated>2021-05-29T07:02:05Z</updated>
			<id>http://forum.rcl-radio.ru/viewtopic.php?pid=3778#p3778</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: RGB КОЛЬЦО - ЧАСЫ]]></title>
			<link rel="alternate" href="http://forum.rcl-radio.ru/viewtopic.php?pid=3640#p3640" />
			<content type="html"><![CDATA[<p>Всем привет. Разбирался с схемой подключения по коду. Все получилось.<span class="attention-yellow"></span></p>]]></content>
			<author>
				<name><![CDATA[Acura]]></name>
				<uri>http://forum.rcl-radio.ru/profile.php?id=1313</uri>
			</author>
			<updated>2021-05-22T02:43:23Z</updated>
			<id>http://forum.rcl-radio.ru/viewtopic.php?pid=3640#p3640</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: RGB КОЛЬЦО - ЧАСЫ]]></title>
			<link rel="alternate" href="http://forum.rcl-radio.ru/viewtopic.php?pid=2317#p2317" />
			<content type="html"><![CDATA[<p>Я внес изменения в скетчи</p>]]></content>
			<author>
				<name><![CDATA[liman324]]></name>
				<uri>http://forum.rcl-radio.ru/profile.php?id=2</uri>
			</author>
			<updated>2020-10-12T14:39:03Z</updated>
			<id>http://forum.rcl-radio.ru/viewtopic.php?pid=2317#p2317</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: RGB КОЛЬЦО - ЧАСЫ]]></title>
			<link rel="alternate" href="http://forum.rcl-radio.ru/viewtopic.php?pid=2315#p2315" />
			<content type="html"><![CDATA[<p>С 12 дня ,у меня пропадает индикация часов на кольце, ( минуты,сек есть ). Переключил на 13 , есть все .</p>]]></content>
			<author>
				<name><![CDATA[rn3qkp]]></name>
				<uri>http://forum.rcl-radio.ru/profile.php?id=642</uri>
			</author>
			<updated>2020-10-10T09:45:01Z</updated>
			<id>http://forum.rcl-radio.ru/viewtopic.php?pid=2315#p2315</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: RGB КОЛЬЦО - ЧАСЫ]]></title>
			<link rel="alternate" href="http://forum.rcl-radio.ru/viewtopic.php?pid=2314#p2314" />
			<content type="html"><![CDATA[<p>Попробуйте поменять строку:<br />if(h&gt;12){h=h-12;}<br />на<br />if(h&gt;11){h=h-12;}</p><p>Если не получился, мне надо проверять на собранной схеме, а это я смогу сделать не раньше понедельника</p>]]></content>
			<author>
				<name><![CDATA[liman324]]></name>
				<uri>http://forum.rcl-radio.ru/profile.php?id=2</uri>
			</author>
			<updated>2020-10-10T09:42:55Z</updated>
			<id>http://forum.rcl-radio.ru/viewtopic.php?pid=2314#p2314</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: RGB КОЛЬЦО - ЧАСЫ]]></title>
			<link rel="alternate" href="http://forum.rcl-radio.ru/viewtopic.php?pid=2313#p2313" />
			<content type="html"><![CDATA[<p>С 13 часов , правильно идет отображение времени.</p>]]></content>
			<author>
				<name><![CDATA[rn3qkp]]></name>
				<uri>http://forum.rcl-radio.ru/profile.php?id=642</uri>
			</author>
			<updated>2020-10-10T09:31:25Z</updated>
			<id>http://forum.rcl-radio.ru/viewtopic.php?pid=2313#p2313</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: RGB КОЛЬЦО - ЧАСЫ]]></title>
			<link rel="alternate" href="http://forum.rcl-radio.ru/viewtopic.php?pid=2312#p2312" />
			<content type="html"><![CDATA[<p>красный часы, синий минуты, зеленый секунды</p>]]></content>
			<author>
				<name><![CDATA[liman324]]></name>
				<uri>http://forum.rcl-radio.ru/profile.php?id=2</uri>
			</author>
			<updated>2020-10-10T09:29:00Z</updated>
			<id>http://forum.rcl-radio.ru/viewtopic.php?pid=2312#p2312</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: RGB КОЛЬЦО - ЧАСЫ]]></title>
			<link rel="alternate" href="http://forum.rcl-radio.ru/viewtopic.php?pid=2311#p2311" />
			<content type="html"><![CDATA[<p>Привет. Сейчас 12-23 ,часы показывают ---часы синий 12 и бегут секунды -зеленый.</p>]]></content>
			<author>
				<name><![CDATA[rn3qkp]]></name>
				<uri>http://forum.rcl-radio.ru/profile.php?id=642</uri>
			</author>
			<updated>2020-10-10T09:25:59Z</updated>
			<id>http://forum.rcl-radio.ru/viewtopic.php?pid=2311#p2311</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: RGB КОЛЬЦО - ЧАСЫ]]></title>
			<link rel="alternate" href="http://forum.rcl-radio.ru/viewtopic.php?pid=2310#p2310" />
			<content type="html"><![CDATA[<p>Установка времени по времени компиляции:</p><p>// clock.setDateTime(__DATE__, __TIME__);</p><p>Кнопки D6 D7, замыкание на GND</p>]]></content>
			<author>
				<name><![CDATA[liman324]]></name>
				<uri>http://forum.rcl-radio.ru/profile.php?id=2</uri>
			</author>
			<updated>2020-10-10T01:35:29Z</updated>
			<id>http://forum.rcl-radio.ru/viewtopic.php?pid=2310#p2310</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: RGB КОЛЬЦО - ЧАСЫ]]></title>
			<link rel="alternate" href="http://forum.rcl-radio.ru/viewtopic.php?pid=2309#p2309" />
			<content type="html"><![CDATA[<p>Привет. <br />1. Как выставить часы от компа ? <br />2 Куда ставим кнопки ?</p>]]></content>
			<author>
				<name><![CDATA[rn3qkp]]></name>
				<uri>http://forum.rcl-radio.ru/profile.php?id=642</uri>
			</author>
			<updated>2020-10-09T20:06:59Z</updated>
			<id>http://forum.rcl-radio.ru/viewtopic.php?pid=2309#p2309</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: RGB КОЛЬЦО - ЧАСЫ]]></title>
			<link rel="alternate" href="http://forum.rcl-radio.ru/viewtopic.php?pid=2082#p2082" />
			<content type="html"><![CDATA[<p>RGB КОЛЬЦО ЧАСЫ + TM1637 + коррекция времени кнопками</p><div class="codebox"><pre><code>#include &lt;Adafruit_NeoPixel.h&gt;
#include &lt;Wire.h&gt;
#include &lt;STM32_TM1637.h&gt;                // http://rcl-radio.ru/wp-content/uploads/2020/02/STM32_TM1637_V1_3.zip
#include &lt;DS3231.h&gt;//https://github.com/jarzebski/Arduino-DS3231/archive/master.zip
 DS3231 clock;
 RTCDateTime DateTime;
 STM32_TM1637 tm(4,3);// CLK, DIO
 Adafruit_NeoPixel strip = Adafruit_NeoPixel(12, 2, NEO_GRB + NEO_KHZ400);// 4 трека, D6

byte i,s,m,h,mm,sm,sh,mh,minut,hour;
unsigned long t;
bool w;

void setup(){
  pinMode(5,INPUT);
  pinMode(6,INPUT_PULLUP);
  pinMode(7,INPUT_PULLUP);
  strip.begin();Wire.begin(); clock.begin();
  tm.brig(5);
  clock.setOutput(DS3231_1HZ);
// clock.setDateTime(__DATE__, __TIME__);
}

void loop(){ 
    DateTime=clock.getDateTime();
    s = DateTime.second/5;
    m = DateTime.minute/5;
    minut = DateTime.minute;
    h = DateTime.hour;
    hour = DateTime.hour;
    if(h&gt;11){h=h-12;}
    if(s==m){sm=10;}else{sm=0;}
    if(s==h){sh=10;}else{sh=0;}
    if(m==h){mh=10;}else{mh=0;}
    
    if(s==0){strip.setPixelColor(11, strip.Color(0, 0, 0));}
    else{strip.setPixelColor(s-1, strip.Color(0, 0, 0)); }
    if(m==0){strip.setPixelColor(11, strip.Color(0, 0, 0));}
    else{strip.setPixelColor(m-1, strip.Color(0, 0, 0)); }
    if(h==0){strip.setPixelColor(11, strip.Color(0, 0, 0));}
    else{strip.setPixelColor(h-1, strip.Color(0, 0, 0)); }
    strip.setPixelColor(s, strip.Color(0, 10, 0));
    strip.setPixelColor(m, strip.Color(0, sm, 10));
    strip.setPixelColor(h, strip.Color(10, sh, mh));
    strip.show();
    tm.print_time(DateTime.hour*100+DateTime.minute, digitalRead(5));

    ////////// SET CLOCK

  if(digitalRead(6) == LOW){ /////// BUTTON PC2
    w=1; hour++; if(hour&gt;23){hour=0;} delay(300);}
  if(digitalRead(7) == LOW){ /////// BUTTON PC1
    w=1; minut++; if(minut&gt;59){minut=0;} delay(300);}
 if(w == 1){w=0; clock.setDateTime(2020, 9, 3, hour, minut, 0);}
  delay(100);
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[liman324]]></name>
				<uri>http://forum.rcl-radio.ru/profile.php?id=2</uri>
			</author>
			<updated>2020-09-03T07:47:26Z</updated>
			<id>http://forum.rcl-radio.ru/viewtopic.php?pid=2082#p2082</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: RGB КОЛЬЦО - ЧАСЫ]]></title>
			<link rel="alternate" href="http://forum.rcl-radio.ru/viewtopic.php?pid=2081#p2081" />
			<content type="html"><![CDATA[<p>RGB КОЛЬЦО ЧАСЫ + TM1637<br /><span class="postimg"><img src="http://forum.rcl-radio.ru/uploads/images/2020/09/3bc033a7d1eb544b58a855bc44395db8.png" alt="http://forum.rcl-radio.ru/uploads/images/2020/09/3bc033a7d1eb544b58a855bc44395db8.png" /></span> </p><div class="codebox"><pre><code>#include &lt;Adafruit_NeoPixel.h&gt;
#include &lt;Wire.h&gt;
#include &lt;STM32_TM1637.h&gt;                // http://rcl-radio.ru/wp-content/uploads/2020/02/STM32_TM1637_V1_3.zip
#include &lt;DS3231.h&gt;//https://github.com/jarzebski/Arduino-DS3231/archive/master.zip
 DS3231 clock;
 RTCDateTime DateTime;
 STM32_TM1637 tm(4,3);// CLK, DIO
 Adafruit_NeoPixel strip = Adafruit_NeoPixel(12, 2, NEO_GRB + NEO_KHZ400);// 4 трека, D6

byte i,s,m,h,mm,sm,sh,mh;
unsigned long t;

void setup(){
  pinMode(5,INPUT);
  strip.begin();Wire.begin(); clock.begin();
  tm.brig(5);
  clock.setOutput(DS3231_1HZ);
// clock.setDateTime(__DATE__, __TIME__);
}

void loop(){ 
    DateTime=clock.getDateTime();
    s = DateTime.second/5;
    m = DateTime.minute/5;
    h = DateTime.hour;
    if(h&gt;11){h=h-12;}
    if(s==m){sm=10;}else{sm=0;}
    if(s==h){sh=10;}else{sh=0;}
    if(m==h){mh=10;}else{mh=0;}
    
    if(s==0){strip.setPixelColor(11, strip.Color(0, 0, 0));}
    else{strip.setPixelColor(s-1, strip.Color(0, 0, 0)); }
    if(m==0){strip.setPixelColor(11, strip.Color(0, 0, 0));}
    else{strip.setPixelColor(m-1, strip.Color(0, 0, 0)); }
    if(h==0){strip.setPixelColor(11, strip.Color(0, 0, 0));}
    else{strip.setPixelColor(h-1, strip.Color(0, 0, 0)); }
    strip.setPixelColor(s, strip.Color(0, 10, 0));
    strip.setPixelColor(m, strip.Color(0, sm, 10));
    strip.setPixelColor(h, strip.Color(10, sh, mh));
    strip.show();
    tm.print_time(DateTime.hour*100+DateTime.minute, digitalRead(5));
   // delay(500);
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[liman324]]></name>
				<uri>http://forum.rcl-radio.ru/profile.php?id=2</uri>
			</author>
			<updated>2020-09-03T01:50:58Z</updated>
			<id>http://forum.rcl-radio.ru/viewtopic.php?pid=2081#p2081</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[RGB КОЛЬЦО - ЧАСЫ]]></title>
			<link rel="alternate" href="http://forum.rcl-radio.ru/viewtopic.php?pid=2080#p2080" />
			<content type="html"><![CDATA[<p><span class="postimg"><img src="http://forum.rcl-radio.ru/uploads/images/2020/09/2e555cce76c2a3369db734af5667858a.png" alt="http://forum.rcl-radio.ru/uploads/images/2020/09/2e555cce76c2a3369db734af5667858a.png" /></span> </p><div class="codebox"><pre><code>#include &lt;Adafruit_NeoPixel.h&gt;
#include &lt;Wire.h&gt;
#include &lt;DS3231.h&gt;//https://github.com/jarzebski/Arduino-DS3231/archive/master.zip
 DS3231 clock;
 RTCDateTime DateTime;
 Adafruit_NeoPixel strip = Adafruit_NeoPixel(12, 2, NEO_GRB + NEO_KHZ400);// 4 трека, D6

byte i,s,m,h,mm,sm,sh,mh;
unsigned long t;

void setup(){
  strip.begin();Wire.begin(); clock.begin();
// clock.setDateTime(__DATE__, __TIME__);
}

void loop(){ 
    DateTime=clock.getDateTime();
    s = DateTime.second/5;
    m = DateTime.minute/5;
    h = DateTime.hour;
    if(h&gt;11){h=h-12;}
    if(s==m){sm=10;}else{sm=0;}
    if(s==h){sh=10;}else{sh=0;}
    if(m==h){mh=10;}else{mh=0;}
    
    if(s==0){strip.setPixelColor(11, strip.Color(0, 0, 0));}
    else{strip.setPixelColor(s-1, strip.Color(0, 0, 0)); }
    if(m==0){strip.setPixelColor(11, strip.Color(0, 0, 0));}
    else{strip.setPixelColor(m-1, strip.Color(0, 0, 0)); }
    if(h==0){strip.setPixelColor(11, strip.Color(0, 0, 0));}
    else{strip.setPixelColor(h-1, strip.Color(0, 0, 0)); }
    strip.setPixelColor(s, strip.Color(0, 10, 0));
    strip.setPixelColor(m, strip.Color(0, sm, 10));
    strip.setPixelColor(h, strip.Color(10, sh, mh));
    strip.show();
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[liman324]]></name>
				<uri>http://forum.rcl-radio.ru/profile.php?id=2</uri>
			</author>
			<updated>2020-09-03T01:45:45Z</updated>
			<id>http://forum.rcl-radio.ru/viewtopic.php?pid=2080#p2080</id>
		</entry>
</feed>
