<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[forum.rcl-radio.ru &mdash; 4x14LED GPS]]></title>
	<link rel="self" href="http://forum.rcl-radio.ru/extern.php?action=feed&amp;tid=562&amp;type=atom" />
	<updated>2023-06-15T17:28:05Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.rcl-radio.ru/viewtopic.php?id=562</id>
		<entry>
			<title type="html"><![CDATA[Re: 4x14LED GPS]]></title>
			<link rel="alternate" href="http://forum.rcl-radio.ru/viewtopic.php?pid=7989#p7989" />
			<content type="html"><![CDATA[<div class="quotebox"><blockquote><p>Я собрал на attiny13 термометр , но не работает точка разделения .</p></blockquote></div><p> Опубликуйте код</p>]]></content>
			<author>
				<name><![CDATA[liman324]]></name>
				<uri>http://forum.rcl-radio.ru/profile.php?id=2</uri>
			</author>
			<updated>2023-06-15T17:28:05Z</updated>
			<id>http://forum.rcl-radio.ru/viewtopic.php?pid=7989#p7989</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: 4x14LED GPS]]></title>
			<link rel="alternate" href="http://forum.rcl-radio.ru/viewtopic.php?pid=7988#p7988" />
			<content type="html"><![CDATA[<p><span class="postimg"><img src="http://forum.rcl-radio.ru/uploads/images/2023/06/373b831582649c53ad08251679a9ac87.png" alt="http://forum.rcl-radio.ru/uploads/images/2023/06/373b831582649c53ad08251679a9ac87.png" /></span></p>]]></content>
			<author>
				<name><![CDATA[liman324]]></name>
				<uri>http://forum.rcl-radio.ru/profile.php?id=2</uri>
			</author>
			<updated>2023-06-15T17:26:54Z</updated>
			<id>http://forum.rcl-radio.ru/viewtopic.php?pid=7988#p7988</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: 4x14LED GPS]]></title>
			<link rel="alternate" href="http://forum.rcl-radio.ru/viewtopic.php?pid=7987#p7987" />
			<content type="html"><![CDATA[<p>Да для справки . Датчик температуры нужен или можно не ставить ? Это часы gps. В случае работы какая информация будет <br />в мониторе порта ?</p>]]></content>
			<author>
				<name><![CDATA[rn3qkp]]></name>
				<uri>http://forum.rcl-radio.ru/profile.php?id=642</uri>
			</author>
			<updated>2023-06-15T17:07:26Z</updated>
			<id>http://forum.rcl-radio.ru/viewtopic.php?pid=7987#p7987</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: 4x14LED GPS]]></title>
			<link rel="alternate" href="http://forum.rcl-radio.ru/viewtopic.php?pid=7986#p7986" />
			<content type="html"><![CDATA[<p>Оставлю это на завтра. <br />Я собрал на attiny13 термометр , но не работает точка разделения .</p>]]></content>
			<author>
				<name><![CDATA[rn3qkp]]></name>
				<uri>http://forum.rcl-radio.ru/profile.php?id=642</uri>
			</author>
			<updated>2023-06-15T17:03:38Z</updated>
			<id>http://forum.rcl-radio.ru/viewtopic.php?pid=7986#p7986</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: 4x14LED GPS]]></title>
			<link rel="alternate" href="http://forum.rcl-radio.ru/viewtopic.php?pid=7985#p7985" />
			<content type="html"><![CDATA[<p>Поменяйте местами px tx</p>]]></content>
			<author>
				<name><![CDATA[liman324]]></name>
				<uri>http://forum.rcl-radio.ru/profile.php?id=2</uri>
			</author>
			<updated>2023-06-15T16:58:17Z</updated>
			<id>http://forum.rcl-radio.ru/viewtopic.php?pid=7985#p7985</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: 4x14LED GPS]]></title>
			<link rel="alternate" href="http://forum.rcl-radio.ru/viewtopic.php?pid=7984#p7984" />
			<content type="html"><![CDATA[<p>SERIAL OK<br />No GPS detected</p>]]></content>
			<author>
				<name><![CDATA[rn3qkp]]></name>
				<uri>http://forum.rcl-radio.ru/profile.php?id=642</uri>
			</author>
			<updated>2023-06-15T16:57:42Z</updated>
			<id>http://forum.rcl-radio.ru/viewtopic.php?pid=7984#p7984</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: 4x14LED GPS]]></title>
			<link rel="alternate" href="http://forum.rcl-radio.ru/viewtopic.php?pid=7983#p7983" />
			<content type="html"><![CDATA[<p>Откройте монитор порта, посмотрите что выдает модуль. <br />Сканирование может длится довольно долгое время.</p>]]></content>
			<author>
				<name><![CDATA[liman324]]></name>
				<uri>http://forum.rcl-radio.ru/profile.php?id=2</uri>
			</author>
			<updated>2023-06-15T16:31:33Z</updated>
			<id>http://forum.rcl-radio.ru/viewtopic.php?pid=7983#p7983</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: 4x14LED GPS]]></title>
			<link rel="alternate" href="http://forum.rcl-radio.ru/viewtopic.php?pid=7982#p7982" />
			<content type="html"><![CDATA[<p>Привет. Отличия от neo6 и neo 8&nbsp; ? Поставил модуль 8 идет сканирование и&nbsp; все. Или ставить нео6 ?</p>]]></content>
			<author>
				<name><![CDATA[rn3qkp]]></name>
				<uri>http://forum.rcl-radio.ru/profile.php?id=642</uri>
			</author>
			<updated>2023-06-15T16:29:31Z</updated>
			<id>http://forum.rcl-radio.ru/viewtopic.php?pid=7982#p7982</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: 4x14LED GPS]]></title>
			<link rel="alternate" href="http://forum.rcl-radio.ru/viewtopic.php?pid=7821#p7821" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>#define RX      2
#define TX      3
#define time_offset   21600  // смещение от UTC 1 час = 3600
#define KORR_T  -4.5   // DS18B20 коррекция температуры

#include &lt;Wire.h&gt;
#include &lt;4x14LED.h&gt;        // http://rcl-radio.ru/wp-content/uploads/2021/09/4x14LED.zip
#include &lt;EEPROM.h&gt;
#include &lt;TinyGPS++.h&gt;      // https://github.com/mikalhart/TinyGPSPlus/archive/refs/heads/master.zip
#include &lt;TimeLib.h&gt;        // https://github.com/PaulStoffregen/Time/archive/master.zip
#include &lt;SoftwareSerial.h&gt;  
#include &lt;OneWire.h&gt;        // http://rcl-radio.ru/wp-content/uploads/2018/07/OneWire.zip                       
  TinyGPSPlus gps;
  SoftwareSerial SoftSerial(TX,RX);   
  HT4x14LED led;
  OneWire  ds(5); // Вход датчика 18b20
 unsigned long times;
 byte last_minute, Second, Minute, Hour, Day, Month;
 int Year;
 int timer;
 bool w=1;


void setup() {
   Wire.begin();
   SoftSerial.begin(9600);
   Serial.begin(9600);   
   led.init(1);
   led.brig(5);//0...15
   led.blink(1);
   led.clear();
   analogReadResolution(4);// АЦП 4 БИТ
   pinMode(A0,INPUT_PULLUP); // INPUT AUDIO
   Serial.println(&quot;SERIAL OK&quot;);
}

void loop() {
   led.brig(15-analogRead(A0));
   
 while (SoftSerial.available() &gt; 0){
    if (gps.encode(SoftSerial.read())){
      if (gps.time.isValid()){
        Minute = gps.time.minute();
        Second = gps.time.second();
        Hour   = gps.time.hour();
        Serial.println(&quot;UTC&quot;);
        Serial.print(Hour);Serial.print(&quot;:&quot;);
        Serial.print(Minute);Serial.print(&quot;:&quot;);
        Serial.println(Second);
      }
      if (gps.date.isValid()){
        Day   = gps.date.day();
        Month = gps.date.month();
        Year  = gps.date.year();
        Serial.print(Day);Serial.print(&quot;-&quot;);
        Serial.print(Month);Serial.print(&quot;-&quot;);
        Serial.println(Year);
      }}}
      
      if(last_minute != gps.time.minute()){ w=1;
        last_minute = gps.time.minute();
        setTime(Hour, Minute, Second, Day, Month, Year);
        adjustTime(time_offset);
        Serial.println(&quot;UTC+&quot;);
        Serial.print(hour());Serial.print(&quot;:&quot;);
        Serial.print(minute());Serial.print(&quot;:&quot;);
        Serial.print(second());
        Serial.print(day());Serial.print(&quot;-&quot;);
        Serial.print(month());Serial.print(&quot;-&quot;);
        Serial.println(year());
        Serial.println(week_day());
 }

if (millis() &gt; 5000 &amp;&amp; gps.charsProcessed() &lt; 10){
    Serial.println(&quot;No GPS detected&quot;);
    while(true);}
 
if(Year&gt;=2023){
 
if(Second&gt;=55){
 switch(week_day()){
  case 1:led.print(day()*100, 0,   -1, -1,0x37,0xF6);break;
  case 2:led.print(day()*100, 0,   -1, -1,0x2479,0x1201);break;
  case 3:led.print(day()*100, 0,   -1, -1,0x39,0x471);break;
  case 4:led.print(day()*100, 0,   -1, -1,0xE6,0x1201);break;
  case 5:led.print(day()*100, 0,   -1, -1,0x37,0x1201);break;
  case 6:led.print(day()*100, 0,   -1, -1,0x39,0x2079);break;
  case 0:led.print(day()*100, 0,   -1, -1,0x2479,0x39);break;
  } 
  delay(1000);
}

if(Second&gt;=50 &amp;&amp; Second&lt;55){ 
  if(w==1){led.print(int(dsRead(0)*100), 2,   -1, -1,-1,0x39);}
  w=0;delay(1000);
  }
 
 if(Second&lt;50){
  timer=hour()*100+minute();
   led.print(timer, 0,   -1, -1,-1,-1);
   delay(500);
   led.print(timer, 2,   -1, -1,-1,-1);
   delay(500);
 }
}// 2023

else{
   led.print(timer, 0,   0xed, 0x39,0xf7,0x2136);
   delay(500);
   led.print(timer, 0,   0, 0,0,0);
   delay(500);
  }
 //Serial.println(dsRead(0));

}// end loop

unsigned int f_div(unsigned int x, unsigned int y){
  unsigned int result;
  result = (x - (x % y)) / y;
  return result;
}

byte week_day(){
  byte a = f_div((14 - month()), 12);
  unsigned int y = year() - a;
  byte m = month() + 12 * a - 2;
  unsigned int y4 = f_div(y, 4);
  byte y100 = f_div(y, 100);
  byte y400 = f_div(y, 400);
  byte x = f_div(31 * m, 12);
  byte wd = (day() + y + y4 - y100 + y400 + x) % 7; 
  return wd;
} 

float dsRead(byte x) {
  byte data[2], addr[8][8], kol = 0;
  while (ds.search(addr[kol])) {  // поиск датчиков, определение адреса и кол-ва датчиков
    kol++;
  } 
  ds.reset_search();  // Сброс поиска датчика
  ds.reset();         // Инициализация, выполняется сброс шины
  ds.select(addr[x]); // Обращение к датчику по адресу
  ds.write(0x44, 0);  // Измерение температуры с переносом данных в память
  ds.reset();         // Инициализация, выполняется сброс шины
  ds.select(addr[x]); // Обращение к датчику по адресу
  ds.write(0xBE);     // Обращение памяти
  for (byte i=0; i&lt;9; i++) data[i]=ds.read();
  int raw=(data[1]&lt;&lt;8)|data[0];
  float value = (float)raw *0.0625 + KORR_T; return value; // Расчет температуры и вывод
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[liman324]]></name>
				<uri>http://forum.rcl-radio.ru/profile.php?id=2</uri>
			</author>
			<updated>2023-05-17T05:31:30Z</updated>
			<id>http://forum.rcl-radio.ru/viewtopic.php?pid=7821#p7821</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: 4x14LED GPS]]></title>
			<link rel="alternate" href="http://forum.rcl-radio.ru/viewtopic.php?pid=7820#p7820" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>#define RX      2
#define TX      3
#define time_offset   21600  // смещение от UTC 1 час = 3600
#define KORR_T  -2.5   // DS18B20 коррекция температуры

#include &lt;Wire.h&gt;
#include &lt;4x14LED.h&gt;        // http://rcl-radio.ru/wp-content/uploads/2021/09/4x14LED.zip
#include &lt;EEPROM.h&gt;
#include &lt;TinyGPS++.h&gt;      // https://github.com/mikalhart/TinyGPSPlus/archive/refs/heads/master.zip
#include &lt;TimeLib.h&gt;        // https://github.com/PaulStoffregen/Time/archive/master.zip
#include &lt;SoftwareSerial.h&gt;  
#include &lt;OneWire.h&gt;        // http://rcl-radio.ru/wp-content/uploads/2018/07/OneWire.zip                       
  TinyGPSPlus gps;
  SoftwareSerial SoftSerial(TX,RX);   
  HT4x14LED led;
  OneWire  ds(5); // Вход датчика 18b20
 unsigned long times;
 byte last_minute, Second, Minute, Hour, Day, Month;
 int Year;
 int timer;


void setup() {
   Wire.begin();
   SoftSerial.begin(9600);
   Serial.begin(9600);   
   led.init(1);
   led.brig(5);//0...15
   led.blink(1);
   led.clear();
   analogReadResolution(4);// АЦП 4 БИТ
   pinMode(A0,INPUT_PULLUP); // INPUT AUDIO
   Serial.println(&quot;SERIAL OK&quot;);
}

void loop() {
   led.brig(15-analogRead(A0));
   
 while (SoftSerial.available() &gt; 0){
    if (gps.encode(SoftSerial.read())){
      if (gps.time.isValid()){
        Minute = gps.time.minute();
        Second = gps.time.second();
        Hour   = gps.time.hour();
        Serial.println(&quot;UTC&quot;);
        Serial.print(Hour);Serial.print(&quot;:&quot;);
        Serial.print(Minute);Serial.print(&quot;:&quot;);
        Serial.println(Second);
      }
      if (gps.date.isValid()){
        Day   = gps.date.day();
        Month = gps.date.month();
        Year  = gps.date.year();
        Serial.print(Day);Serial.print(&quot;-&quot;);
        Serial.print(Month);Serial.print(&quot;-&quot;);
        Serial.println(Year);
      }}}
      
      if(last_minute != gps.time.minute()){
        last_minute = gps.time.minute();
        setTime(Hour, Minute, Second, Day, Month, Year);
        adjustTime(time_offset);
        Serial.println(&quot;UTC+&quot;);
        Serial.print(hour());Serial.print(&quot;:&quot;);
        Serial.print(minute());Serial.print(&quot;:&quot;);
        Serial.print(second());
        Serial.print(day());Serial.print(&quot;-&quot;);
        Serial.print(month());Serial.print(&quot;-&quot;);
        Serial.println(year());
        Serial.println(week_day());
 }

if (millis() &gt; 5000 &amp;&amp; gps.charsProcessed() &lt; 10){
    Serial.println(&quot;No GPS detected&quot;);
    while(true);}
 
if(Year&gt;=2023){
 
if(Second&gt;=55){
 switch(week_day()){
  case 1:led.print(day()*100, 0,   -1, -1,0x37,0xF6);break;
  case 2:led.print(day()*100, 0,   -1, -1,0x2479,0x1201);break;
  case 3:led.print(day()*100, 0,   -1, -1,0x39,0x471);break;
  case 4:led.print(day()*100, 0,   -1, -1,0xE6,0x1201);break;
  case 5:led.print(day()*100, 0,   -1, -1,0x37,0x1201);break;
  case 6:led.print(day()*100, 0,   -1, -1,0x39,0x2079);break;
  case 0:led.print(day()*100, 0,   -1, -1,0x2479,0x39);break;
  } 
  delay(1000);
}

if(Second&gt;=50 &amp;&amp; Second&lt;55){
  led.print(int(dsRead(0)*100), 2,   -1, -1,-1,0x39);
  delay(1000);
  }
 
 if(Second&lt;50){
  timer=hour()*100+minute();
   led.print(timer, 0,   -1, -1,-1,-1);
   delay(500);
   led.print(timer, 2,   -1, -1,-1,-1);
   delay(500);
 }
}// 2023

else{
   led.print(timer, 0,   0xed, 0x39,0xf7,0x2136);
   delay(500);
   led.print(timer, 0,   0, 0,0,0);
   delay(500);
  }
 //Serial.println(dsRead(0));

}// end loop

unsigned int f_div(unsigned int x, unsigned int y){
  unsigned int result;
  result = (x - (x % y)) / y;
  return result;
}

byte week_day(){
  byte a = f_div((14 - month()), 12);
  unsigned int y = year() - a;
  byte m = month() + 12 * a - 2;
  unsigned int y4 = f_div(y, 4);
  byte y100 = f_div(y, 100);
  byte y400 = f_div(y, 400);
  byte x = f_div(31 * m, 12);
  byte wd = (day() + y + y4 - y100 + y400 + x) % 7; 
  return wd;
} 

float dsRead(byte x) {
  byte data[2], addr[8][8], kol = 0;
  while (ds.search(addr[kol])) {  // поиск датчиков, определение адреса и кол-ва датчиков
    kol++;
  } 
  ds.reset_search();  // Сброс поиска датчика
  ds.reset();         // Инициализация, выполняется сброс шины
  ds.select(addr[x]); // Обращение к датчику по адресу
  ds.write(0x44, 0);  // Измерение температуры с переносом данных в память
  ds.reset();         // Инициализация, выполняется сброс шины
  ds.select(addr[x]); // Обращение к датчику по адресу
  ds.write(0xBE);     // Обращение памяти
  for (byte i=0; i&lt;9; i++) data[i]=ds.read();
  int raw=(data[1]&lt;&lt;8)|data[0];
  float value = (float)raw / 16.0 + KORR_T; return value; // Расчет температуры и вывод
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[liman324]]></name>
				<uri>http://forum.rcl-radio.ru/profile.php?id=2</uri>
			</author>
			<updated>2023-05-14T18:06:35Z</updated>
			<id>http://forum.rcl-radio.ru/viewtopic.php?pid=7820#p7820</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[4x14LED GPS]]></title>
			<link rel="alternate" href="http://forum.rcl-radio.ru/viewtopic.php?pid=7803#p7803" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>#define RX      2
#define TX      3
#define time_offset   21600  // смещение от UTC 1 час = 3600
#define  KORR_T  2.5

#include &lt;Wire.h&gt;
#include &lt;4x14LED.h&gt;        // http://rcl-radio.ru/wp-content/uploads/2021/09/4x14LED.zip
#include &lt;EEPROM.h&gt;
#include &lt;TinyGPS++.h&gt;      // https://github.com/mikalhart/TinyGPSPlus/archive/refs/heads/master.zip
#include &lt;TimeLib.h&gt;        // https://github.com/PaulStoffregen/Time/archive/master.zip
#include &lt;SoftwareSerial.h&gt;  
#include &lt;OneWire.h&gt;        // http://rcl-radio.ru/wp-content/uploads/2018/07/OneWire.zip                       
  TinyGPSPlus gps;
  SoftwareSerial SoftSerial(TX,RX);   
  HT4x14LED led;
  OneWire  ds(5); // Вход датчика 18b20
 unsigned long times;
 byte last_second, Second, Minute, Hour, Day, Month;
 int Year;
 int timer;


void setup() {
   Wire.begin();
   SoftSerial.begin(9600);
   Serial.begin(9600);   
   led.init(1);
   led.brig(5);//0...15
   led.blink(1);
   led.clear();
   analogReadResolution(4);// АЦП 4 БИТ
   pinMode(A0,INPUT_PULLUP); // INPUT AUDIO
   Serial.println(&quot;SERIAL OK&quot;);
}

void loop() {
   led.brig(15-analogRead(A0));
   
 while (SoftSerial.available() &gt; 0){
    if (gps.encode(SoftSerial.read())){
      if (gps.time.isValid()){
        Minute = gps.time.minute();
        Second = gps.time.second();
        Hour   = gps.time.hour();
        Serial.println(&quot;UTC&quot;);
        Serial.print(Hour);Serial.print(&quot;:&quot;);
        Serial.print(Minute);Serial.print(&quot;:&quot;);
        Serial.println(Second);
      }
      if (gps.date.isValid()){
        Day   = gps.date.day();
        Month = gps.date.month();
        Year  = gps.date.year();
        Serial.print(Day);Serial.print(&quot;-&quot;);
        Serial.print(Month);Serial.print(&quot;-&quot;);
        Serial.println(Year);
      }}}
      
      if(last_second != gps.time.second()){
        last_second = gps.time.second();
        setTime(Hour, Minute, Second, Day, Month, Year);
        adjustTime(time_offset);
        Serial.println(&quot;UTC+&quot;);
        Serial.print(hour());Serial.print(&quot;:&quot;);
        Serial.print(minute());Serial.print(&quot;:&quot;);
        Serial.print(second());
        Serial.print(day());Serial.print(&quot;-&quot;);
        Serial.print(month());Serial.print(&quot;-&quot;);
        Serial.println(year());
        Serial.println(week_day());
 }

if (millis() &gt; 5000 &amp;&amp; gps.charsProcessed() &lt; 10){
    Serial.println(&quot;No GPS detected&quot;);
    while(true);}
 
if(Year&gt;=2023){
 
if(second()&gt;=55){
 switch(week_day()){
  case 1:led.print(day()*100, 0,   -1, -1,0x37,0xF6);break;
  case 2:led.print(day()*100, 0,   -1, -1,0x2479,0x1201);break;
  case 3:led.print(day()*100, 0,   -1, -1,0x39,0x471);break;
  case 4:led.print(day()*100, 0,   -1, -1,0xE6,0x1201);break;
  case 5:led.print(day()*100, 0,   -1, -1,0x37,0x1201);break;
  case 6:led.print(day()*100, 0,   -1, -1,0x39,0x2079);break;
  case 7:led.print(day()*100, 0,   -1, -1,0x2479,0x39);break;
  } 
  delay(1000);
}

if(second()&gt;=50 &amp;&amp; second()&lt;55){
  led.print(int(dsRead(0)*100), 2,   -1, -1,-1,0x39);
  delay(1000);
  }
 
 if(second()&lt;50){
  timer=hour()*100+minute();
   led.print(timer, 0,   -1, -1,-1,-1);
   delay(500);
   led.print(timer, 2,   -1, -1,-1,-1);
   delay(500);
 }
}// 2023

else{
   led.print(timer, 0,   0xed, 0x39,0xf7,0x2136);
   delay(500);
   led.print(timer, 0,   0, 0,0,0);
   delay(500);
  }
 //Serial.println(dsRead(0));

}// end loop

unsigned int f_div(unsigned int x, unsigned int y){
  unsigned int result;
  result = (x - (x % y)) / y;
  return result;
}

byte week_day(){
  byte a = f_div((14 - month()), 12);
  unsigned int y = year() - a;
  byte m = month() + 12 * a - 2;
  unsigned int y4 = f_div(y, 4);
  byte y100 = f_div(y, 100);
  byte y400 = f_div(y, 400);
  byte x = f_div(31 * m, 12);
  byte wd = (day() + y + y4 - y100 + y400 + x) % 7; 
  return wd;
} 

float dsRead(byte x) {
  byte data[2], addr[8][8], kol = 0;
  while (ds.search(addr[kol])) {  // поиск датчиков, определение адреса и кол-ва датчиков
    kol++;
  } 
  ds.reset_search();  // Сброс поиска датчика
  ds.reset();         // Инициализация, выполняется сброс шины
  ds.select(addr[x]); // Обращение к датчику по адресу
  ds.write(0x44, 0);  // Измерение температуры с переносом данных в память
  ds.reset();         // Инициализация, выполняется сброс шины
  ds.select(addr[x]); // Обращение к датчику по адресу
  ds.write(0xBE);     // Обращение памяти
  for (byte i=0; i&lt;9; i++) data[i]=ds.read();
  int raw=(data[1]&lt;&lt;8)|data[0];
  float value = (float)raw / 16.0 - KORR_T; return value; // Расчет температуры и вывод
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[liman324]]></name>
				<uri>http://forum.rcl-radio.ru/profile.php?id=2</uri>
			</author>
			<updated>2023-05-12T09:15:21Z</updated>
			<id>http://forum.rcl-radio.ru/viewtopic.php?pid=7803#p7803</id>
		</entry>
</feed>
