<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-cn">
		<id>http://wiki.ywrobot.net/index.php?action=history&amp;feed=atom&amp;title=Print.h</id>
		<title>Print.h - 版本历史</title>
		<link rel="self" type="application/atom+xml" href="http://wiki.ywrobot.net/index.php?action=history&amp;feed=atom&amp;title=Print.h"/>
		<link rel="alternate" type="text/html" href="http://wiki.ywrobot.net/index.php?title=Print.h&amp;action=history"/>
		<updated>2026-05-14T11:01:47Z</updated>
		<subtitle>本wiki的该页面的版本历史</subtitle>
		<generator>MediaWiki 1.26.2</generator>

	<entry>
		<id>http://wiki.ywrobot.net/index.php?title=Print.h&amp;diff=78&amp;oldid=prev</id>
		<title>YWrobot WM：创建页面，内容为“&lt;pre style=&quot;color:blue&quot;&gt; /*   Print.h - Base class that provides print() and println()   Copyright (c) 2008 David A. Mellis.  All right reserved.    This library is...”</title>
		<link rel="alternate" type="text/html" href="http://wiki.ywrobot.net/index.php?title=Print.h&amp;diff=78&amp;oldid=prev"/>
				<updated>2016-04-25T02:11:19Z</updated>
		
		<summary type="html">&lt;p&gt;创建页面，内容为“&amp;lt;pre style=&amp;quot;color:blue&amp;quot;&amp;gt; /*   Print.h - Base class that provides print() and println()   Copyright (c) 2008 David A. Mellis.  All right reserved.    This library is...”&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;pre style=&amp;quot;color:blue&amp;quot;&amp;gt;&lt;br /&gt;
/*&lt;br /&gt;
  Print.h - Base class that provides print() and println()&lt;br /&gt;
  Copyright (c) 2008 David A. Mellis.  All right reserved.&lt;br /&gt;
&lt;br /&gt;
  This library is free software; you can redistribute it and/or&lt;br /&gt;
  modify it under the terms of the GNU Lesser General Public&lt;br /&gt;
  License as published by the Free Software Foundation; either&lt;br /&gt;
  version 2.1 of the License, or (at your option) any later version.&lt;br /&gt;
&lt;br /&gt;
  This library is distributed in the hope that it will be useful,&lt;br /&gt;
  but WITHOUT ANY WARRANTY; without even the implied warranty of&lt;br /&gt;
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU&lt;br /&gt;
  Lesser General Public License for more details.&lt;br /&gt;
&lt;br /&gt;
  You should have received a copy of the GNU Lesser General Public&lt;br /&gt;
  License along with this library; if not, write to the Free Software&lt;br /&gt;
  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA&lt;br /&gt;
*/&lt;br /&gt;
&lt;br /&gt;
#ifndef Print_h&lt;br /&gt;
#define Print_h&lt;br /&gt;
&lt;br /&gt;
#include &amp;lt;inttypes.h&amp;gt;&lt;br /&gt;
#include &amp;lt;stdio.h&amp;gt; // for size_t&lt;br /&gt;
&lt;br /&gt;
#include &amp;quot;WString.h&amp;quot;&lt;br /&gt;
#include &amp;quot;Printable.h&amp;quot;&lt;br /&gt;
&lt;br /&gt;
#define DEC 10&lt;br /&gt;
#define HEX 16&lt;br /&gt;
#define OCT 8&lt;br /&gt;
#define BIN 2&lt;br /&gt;
&lt;br /&gt;
class Print&lt;br /&gt;
{&lt;br /&gt;
  private:&lt;br /&gt;
    int write_error;&lt;br /&gt;
    size_t printNumber(unsigned long, uint8_t);&lt;br /&gt;
    size_t printFloat(double, uint8_t);&lt;br /&gt;
  protected:&lt;br /&gt;
    void setWriteError(int err = 1) { write_error = err; }&lt;br /&gt;
  public:&lt;br /&gt;
    Print() : write_error(0) {}&lt;br /&gt;
  &lt;br /&gt;
    int getWriteError() { return write_error; }&lt;br /&gt;
    void clearWriteError() { setWriteError(0); }&lt;br /&gt;
  &lt;br /&gt;
    virtual size_t write(uint8_t) = 0;&lt;br /&gt;
    size_t write(const char *str) {&lt;br /&gt;
      if (str == NULL) return 0;&lt;br /&gt;
      return write((const uint8_t *)str, strlen(str));&lt;br /&gt;
    }&lt;br /&gt;
    virtual size_t write(const uint8_t *buffer, size_t size);&lt;br /&gt;
    &lt;br /&gt;
    size_t print(const __FlashStringHelper *);&lt;br /&gt;
    size_t print(const String &amp;amp;);&lt;br /&gt;
    size_t print(const char[]);&lt;br /&gt;
    size_t print(char);&lt;br /&gt;
    size_t print(unsigned char, int = DEC);&lt;br /&gt;
    size_t print(int, int = DEC);&lt;br /&gt;
    size_t print(unsigned int, int = DEC);&lt;br /&gt;
    size_t print(long, int = DEC);&lt;br /&gt;
    size_t print(unsigned long, int = DEC);&lt;br /&gt;
    size_t print(double, int = 2);&lt;br /&gt;
    size_t print(const Printable&amp;amp;);&lt;br /&gt;
&lt;br /&gt;
    size_t println(const __FlashStringHelper *);&lt;br /&gt;
    size_t println(const String &amp;amp;s);&lt;br /&gt;
    size_t println(const char[]);&lt;br /&gt;
    size_t println(char);&lt;br /&gt;
    size_t println(unsigned char, int = DEC);&lt;br /&gt;
    size_t println(int, int = DEC);&lt;br /&gt;
    size_t println(unsigned int, int = DEC);&lt;br /&gt;
    size_t println(long, int = DEC);&lt;br /&gt;
    size_t println(unsigned long, int = DEC);&lt;br /&gt;
    size_t println(double, int = 2);&lt;br /&gt;
    size_t println(const Printable&amp;amp;);&lt;br /&gt;
    size_t println(void);&lt;br /&gt;
};&lt;br /&gt;
&lt;br /&gt;
#endif&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>YWrobot WM</name></author>	</entry>

	</feed>