<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[forum.rcl-radio.ru &mdash; Подключение LCD1602 по I2C к Ардуино]]></title>
	<link rel="self" href="http://forum.rcl-radio.ru/extern.php?action=feed&amp;tid=63&amp;type=atom" />
	<updated>2021-01-26T14:45:24Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.rcl-radio.ru/viewtopic.php?id=63</id>
		<entry>
			<title type="html"><![CDATA[Re: Подключение LCD1602 по I2C к Ардуино]]></title>
			<link rel="alternate" href="http://forum.rcl-radio.ru/viewtopic.php?pid=2962#p2962" />
			<content type="html"><![CDATA[<p>Можете ли вы подключить LCD к PB10 и PB11 и сообщить мне результаты сканирования?</p>]]></content>
			<author>
				<name><![CDATA[galina]]></name>
				<uri>http://forum.rcl-radio.ru/profile.php?id=1049</uri>
			</author>
			<updated>2021-01-26T14:45:24Z</updated>
			<id>http://forum.rcl-radio.ru/viewtopic.php?pid=2962#p2962</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Подключение LCD1602 по I2C к Ардуино]]></title>
			<link rel="alternate" href="http://forum.rcl-radio.ru/viewtopic.php?pid=2961#p2961" />
			<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>2021-01-26T01:41:51Z</updated>
			<id>http://forum.rcl-radio.ru/viewtopic.php?pid=2961#p2961</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Подключение LCD1602 по I2C к Ардуино]]></title>
			<link rel="alternate" href="http://forum.rcl-radio.ru/viewtopic.php?pid=2960#p2960" />
			<content type="html"><![CDATA[<p>Здравствуйте. <br />А Вы пробовали использовать I2C2 = PB10, PB11 ?</p>]]></content>
			<author>
				<name><![CDATA[galina]]></name>
				<uri>http://forum.rcl-radio.ru/profile.php?id=1049</uri>
			</author>
			<updated>2021-01-25T23:33:59Z</updated>
			<id>http://forum.rcl-radio.ru/viewtopic.php?pid=2960#p2960</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Подключение LCD1602 по I2C к Ардуино]]></title>
			<link rel="alternate" href="http://forum.rcl-radio.ru/viewtopic.php?pid=2879#p2879" />
			<content type="html"><![CDATA[<p>Спасибо</p>]]></content>
			<author>
				<name><![CDATA[galina]]></name>
				<uri>http://forum.rcl-radio.ru/profile.php?id=1049</uri>
			</author>
			<updated>2021-01-11T21:22:51Z</updated>
			<id>http://forum.rcl-radio.ru/viewtopic.php?pid=2879#p2879</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Подключение LCD1602 по I2C к Ардуино]]></title>
			<link rel="alternate" href="http://forum.rcl-radio.ru/viewtopic.php?pid=2878#p2878" />
			<content type="html"><![CDATA[<p>К сожалению у меня не получилось запустить экран на этих пинах:</p><div class="codebox"><pre><code>#include &lt;SoftWire.h&gt;
#include &lt;Wire.h&gt;
#include &lt;LiquidCrystal_I2C_STM32.h&gt; 
SoftWire SWire(PB8, PB9, SOFT_FAST);


 LiquidCrystal_I2C_STM32 lcd(0x27, 16, 2);



void setup(){
  SWire.begin();
  lcd.begin();                               
  lcd.backlight();// Включаем подсветку дисплея
  lcd.print(&quot;  rcl-radio.ru  &quot;);
  lcd.setCursor(0, 1);
  lcd.print(&quot;    LCD 1602    &quot;);
  delay(5000);
  lcd.noBacklight();// Выключаем подсветку дисплея
  delay(5000);
  lcd.backlight();// Включаем подсветку дисплея
}
void loop(){}</code></pre></div><p>Сканер адреса правильно определяет адрес на этих пинах</p><p><span class="postimg"><img src="http://forum.rcl-radio.ru/uploads/images/2021/01/175a688e0e95575113ba0cb0d74b9bd8.png" alt="http://forum.rcl-radio.ru/uploads/images/2021/01/175a688e0e95575113ba0cb0d74b9bd8.png" /></span> </p><div class="codebox"><pre><code>// --------------------------------------
// i2c_scanner
//
//

#include &lt;SoftWire.h&gt;

SoftWire SWire(PB8, PB9, SOFT_FAST);


void setup() {
  Serial.begin(9600);
  SWire.begin();
  Serial.println(&quot;\nSoftware I2C.. Scanner&quot;);
}


void loop() {
  byte error, address;
  int nDevices;

  Serial.println(&quot;Scanning...&quot;);

  nDevices = 0;
  for(address = 1; address &lt; 127; address++) {
    // The i2c_scanner uses the return value of
    // the Write.endTransmisstion to see if
    // a device did acknowledge to the address.

    SWire.beginTransmission(address);
    error = SWire.endTransmission();
    
    if (error == 0) {
      Serial.print(&quot;I2C device found at address 0x&quot;);
      if (address &lt; 16) 
        Serial.print(&quot;0&quot;);
      Serial.println(address, HEX);

      nDevices++;
    }
    else if (error == 4) {
      Serial.print(&quot;Unknown error at address 0x&quot;);
      if (address &lt; 16) 
        Serial.print(&quot;0&quot;);
      Serial.println(address, HEX);
    }    
  }
  if (nDevices == 0)
    Serial.println(&quot;No I2C devices found&quot;);
  else
    Serial.println(&quot;done&quot;);

  delay(5000);           // wait 5 seconds for next scan
}

Но дальше продвинутся не удалось</code></pre></div>]]></content>
			<author>
				<name><![CDATA[liman324]]></name>
				<uri>http://forum.rcl-radio.ru/profile.php?id=2</uri>
			</author>
			<updated>2021-01-11T15:22:44Z</updated>
			<id>http://forum.rcl-radio.ru/viewtopic.php?pid=2878#p2878</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Подключение LCD1602 по I2C к Ардуино]]></title>
			<link rel="alternate" href="http://forum.rcl-radio.ru/viewtopic.php?pid=2877#p2877" />
			<content type="html"><![CDATA[<p>Это пины stm32f103, нормально&nbsp; используют PB6 и PB7 но с PB8 и PB9 есть проблемма.</p>]]></content>
			<author>
				<name><![CDATA[galina]]></name>
				<uri>http://forum.rcl-radio.ru/profile.php?id=1049</uri>
			</author>
			<updated>2021-01-11T12:09:37Z</updated>
			<id>http://forum.rcl-radio.ru/viewtopic.php?pid=2877#p2877</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Подключение LCD1602 по I2C к Ардуино]]></title>
			<link rel="alternate" href="http://forum.rcl-radio.ru/viewtopic.php?pid=2876#p2876" />
			<content type="html"><![CDATA[<p>PB8 и PB9 ? - что за пины такие?</p>]]></content>
			<author>
				<name><![CDATA[liman324]]></name>
				<uri>http://forum.rcl-radio.ru/profile.php?id=2</uri>
			</author>
			<updated>2021-01-11T11:53:41Z</updated>
			<id>http://forum.rcl-radio.ru/viewtopic.php?pid=2876#p2876</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Подключение LCD1602 по I2C к Ардуино]]></title>
			<link rel="alternate" href="http://forum.rcl-radio.ru/viewtopic.php?pid=2875#p2875" />
			<content type="html"><![CDATA[<p>А как подключить его используя PB8 и PB9 ?<br />STM32F1003</p>]]></content>
			<author>
				<name><![CDATA[galina]]></name>
				<uri>http://forum.rcl-radio.ru/profile.php?id=1049</uri>
			</author>
			<updated>2021-01-11T11:46:25Z</updated>
			<id>http://forum.rcl-radio.ru/viewtopic.php?pid=2875#p2875</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Подключение LCD1602 по I2C к Ардуино]]></title>
			<link rel="alternate" href="http://forum.rcl-radio.ru/viewtopic.php?pid=92#p92" />
			<content type="html"><![CDATA[<p><span class="attention-yellow"></span> </p><br /><div class="codebox"><pre><code>#include &lt;Wire.h&gt; 
#include &lt;LiquidCrystal_I2C.h&gt;
LiquidCrystal_I2C lcd(0x27,16,2);  // Устанавливаем дисплей
void setup()
{
  lcd.init();                     
  lcd.backlight();// Включаем подсветку дисплея
  lcd.print(&quot;  rcl-radio.ru  &quot;);
  lcd.setCursor(0, 1);
  lcd.print(&quot;    LCD 1602    &quot;);
  delay(5000);
  lcd.noBacklight();// Выключаем подсветку дисплея
  delay(5000);
  lcd.backlight();// Включаем подсветку дисплея
}
void loop(){}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[liman324]]></name>
				<uri>http://forum.rcl-radio.ru/profile.php?id=2</uri>
			</author>
			<updated>2019-09-16T04:44:19Z</updated>
			<id>http://forum.rcl-radio.ru/viewtopic.php?pid=92#p92</id>
		</entry>
</feed>
