<?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=Serial_Library</id>
	<title>Serial Library - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://calebneedscollege.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Serial_Library"/>
	<link rel="alternate" type="text/html" href="http://calebneedscollege.com/wiki/index.php?title=Serial_Library&amp;action=history"/>
	<updated>2026-05-15T13:40:00Z</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=Serial_Library&amp;diff=66&amp;oldid=prev</id>
		<title>Legg: Created page with &quot;==Functions==  ===read()=== Serial.read() returns an unsigned byte by assignment. ===write()=== Serial.write() returns a size_t of the number of bytes written. ====write(byte...&quot;</title>
		<link rel="alternate" type="text/html" href="http://calebneedscollege.com/wiki/index.php?title=Serial_Library&amp;diff=66&amp;oldid=prev"/>
		<updated>2020-11-17T22:43:01Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;==Functions==  ===read()=== Serial.read() returns an unsigned byte by assignment. ===write()=== Serial.write() returns a size_t of the number of bytes written. ====write(byte...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Functions==&lt;br /&gt;
&lt;br /&gt;
===read()===&lt;br /&gt;
Serial.read() returns an unsigned byte by assignment.&lt;br /&gt;
===write()===&lt;br /&gt;
Serial.write() returns a size_t of the number of bytes written.&lt;br /&gt;
====write(byte val)====&lt;br /&gt;
This writes a binary 8-bit val.&lt;br /&gt;
====write(byte array[])====&lt;br /&gt;
This writes the contents of the array as 8-bit binary until the NULL terminator is found (C String)&lt;br /&gt;
====write(byte array[], size_t len)====&lt;br /&gt;
This writes len-number binary bytes from array&lt;br /&gt;
===print()===&lt;br /&gt;
Serial.print() creates ASCII/human readable text, from any datatype, depending on type.  This is not guaranteed to display binary.  Defaults to DEC unless specified explicitly (BIN, OCT, DEC, HEX).&lt;br /&gt;
====print(byte)====&lt;br /&gt;
This transforms the byte into a string of decimal digits and then writes them over serial.&lt;br /&gt;
====print(short|int|long|float)====&lt;br /&gt;
This transforms these respective data types into a string of human readable numbers that are then sent over serial.&lt;br /&gt;
====print(byte, HEX)====&lt;br /&gt;
This transforms the byte into either a one or two character string of 0-9, A-F and writes these to the serial.&lt;br /&gt;
====print(int array[])====&lt;br /&gt;
This prints strings of decimal values, without whitespace, to the serial &lt;br /&gt;
====print(char array[])====&lt;br /&gt;
This prints a string as symbols without checking that they are printable (can be binary too)&lt;br /&gt;
===println()===&lt;br /&gt;
Passes identical parameters to print() and then prints a CR/NL to the serial.&lt;/div&gt;</summary>
		<author><name>Legg</name></author>
		
	</entry>
</feed>