<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[forum.rcl-radio.ru &mdash; Побитовые операции]]></title>
		<link>http://forum.rcl-radio.ru/viewtopic.php?id=178</link>
		<atom:link href="http://forum.rcl-radio.ru/extern.php?action=feed&amp;tid=178&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «Побитовые операции».]]></description>
		<lastBuildDate>Mon, 13 Jul 2020 06:37:08 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Побитовые операции]]></title>
			<link>http://forum.rcl-radio.ru/viewtopic.php?pid=1861#p1861</link>
			<description><![CDATA[<div class="codebox"><pre><code>byte a,b;

void setup(){
  Serial.begin(9600);
/////////////////////////////////////////////////////
/// Побитовое И (&amp;) 
  a = 0b00111001;
  b = 0b11001100;
//    0b00001000

  Serial.println(a &amp; b,BIN); // 0b00001000

/// Побитовое ИЛИ (|)
   a = 0b00111001;
   b = 0b11001100;
//     0b11111101

  Serial.println(a | b,BIN); // 0b11111101

/// Побитовое XOR (^)
   a = 0b00111001;
   b = 0b11001100;
//     0b11110101

  Serial.println(a ^ b,BIN); // 0b11110101

/// Побитовое НЕ (~)
   int c = 0b000111100111001;
//         0b111000011000110

  Serial.println( ~c,BIN); // 0b111000011000110 

/// Побитовый свдиг влево (&lt;&lt;)
     c = 0b000111100111001;
  //     0b111100111001000;

  Serial.println(c &lt;&lt; 3,BIN); // 0b111100111001000

/// Побитовый свдиг вправо (&gt;&gt;)
     c = 0b000111100111001;
  //     0b000000111100111;

  Serial.println(c &gt;&gt; 3,BIN); // 0b000000111100111  

} // setup


void loop(){

  }  </code></pre></div>]]></description>
			<author><![CDATA[null@example.com (liman324)]]></author>
			<pubDate>Mon, 13 Jul 2020 06:37:08 +0000</pubDate>
			<guid>http://forum.rcl-radio.ru/viewtopic.php?pid=1861#p1861</guid>
		</item>
	</channel>
</rss>
