<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://calebneedscollege.com/wiki/index.php?action=history&amp;feed=atom&amp;title=RS485_Master_Example</id>
	<title>RS485 Master Example - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://calebneedscollege.com/wiki/index.php?action=history&amp;feed=atom&amp;title=RS485_Master_Example"/>
	<link rel="alternate" type="text/html" href="http://calebneedscollege.com/wiki/index.php?title=RS485_Master_Example&amp;action=history"/>
	<updated>2026-05-15T14:24:08Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.33.1</generator>
	<entry>
		<id>http://calebneedscollege.com/wiki/index.php?title=RS485_Master_Example&amp;diff=58&amp;oldid=prev</id>
		<title>Falgsc-al: Created page with &quot;&lt;syntaxhighlight lang=&quot;C++&quot;&gt; //#include &lt;SoftwareSerial.h&gt; //const int SSERIAL_RX_PIN = 10;  //Soft Serial Receive pin //const int SSERIAL_TX_PIN = 11;  //Soft Serial Transmit...&quot;</title>
		<link rel="alternate" type="text/html" href="http://calebneedscollege.com/wiki/index.php?title=RS485_Master_Example&amp;diff=58&amp;oldid=prev"/>
		<updated>2020-11-16T17:44:58Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;syntaxhighlight lang=&amp;quot;C++&amp;quot;&amp;gt; //#include &amp;lt;SoftwareSerial.h&amp;gt; //const int SSERIAL_RX_PIN = 10;  //Soft Serial Receive pin //const int SSERIAL_TX_PIN = 11;  //Soft Serial Transmit...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;syntaxhighlight lang=&amp;quot;C++&amp;quot;&amp;gt;&lt;br /&gt;
//#include &amp;lt;SoftwareSerial.h&amp;gt;&lt;br /&gt;
//const int SSERIAL_RX_PIN = 10;  //Soft Serial Receive pin&lt;br /&gt;
//const int SSERIAL_TX_PIN = 11;  //Soft Serial Transmit pin&lt;br /&gt;
&lt;br /&gt;
// Create Soft Serial Port object and define pins to use&lt;br /&gt;
//SoftwareSerial RS485Serial(SSERIAL_RX_PIN, SSERIAL_TX_PIN); // RX, TX&lt;br /&gt;
&lt;br /&gt;
int byteReceived;&lt;br /&gt;
//===============================================================================&lt;br /&gt;
//  Initialization&lt;br /&gt;
//===============================================================================&lt;br /&gt;
void setup()&lt;br /&gt;
{&lt;br /&gt;
  Serial.begin(115200);           // Start the built-in serial port&lt;br /&gt;
  Serial.println(&amp;quot;Master Device&amp;quot;);&lt;br /&gt;
  Serial.println(&amp;quot;Type in upper window, press ENTER&amp;quot;);&lt;br /&gt;
   &lt;br /&gt;
  Serial1.begin(115200);   // Start the RS485 soft serial port &lt;br /&gt;
}&lt;br /&gt;
//===============================================================================&lt;br /&gt;
//  Main&lt;br /&gt;
//===============================================================================&lt;br /&gt;
void loop() &lt;br /&gt;
{&lt;br /&gt;
  if (Serial.available())         // A char(byte) has been entered in the Serial Monitor&lt;br /&gt;
  {&lt;br /&gt;
    byteReceived = Serial.read();                   // Read the byte&lt;br /&gt;
    Serial1.write(byteReceived);                 // Send byte to Remote Arduino &lt;br /&gt;
  }&lt;br /&gt;
  &lt;br /&gt;
  if (Serial1.available())            //Data from the Slave is available&lt;br /&gt;
   {&lt;br /&gt;
    byteReceived = Serial1.read();    // Read received byte&lt;br /&gt;
 //coomented for diagnostics&lt;br /&gt;
 //Serial.write(byteReceived);           // Show on Serial Monitor&lt;br /&gt;
 Serial.print(micros());&lt;br /&gt;
 Serial.print(' ');&lt;br /&gt;
 Serial.println(byteReceived,HEX);&lt;br /&gt;
   }  &lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Falgsc-al</name></author>
		
	</entry>
</feed>