Skip to content
Simple and fast serial library for chips with single hardware serial
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples corrected sample Jan 19, 2016
BetterStream.cpp corrected some sizes of variables Jan 19, 2016
BetterStream.h turn off SKIP_FLOAT Feb 23, 2016
MyStream.cpp return value of _write() Jan 29, 2016
MyStream.h return value of _write() Jan 29, 2016
README.md corrected some sizes of variables Jan 19, 2016
SingleSerial.cpp added static members May 5, 2017
SingleSerial.h added static members May 5, 2017
WProgram.h static versions of available() and read() Mar 23, 2016
ftoa_engine.S first release Dec 30, 2015
ftoa_engine.h first release Dec 30, 2015
keywords.txt first release Dec 30, 2015
macros.inc first release Dec 30, 2015
ntz.h
ultoa_invert.S first release Dec 30, 2015
vprintf.cpp
wiring.h static versions of available() and read() Mar 23, 2016
xtoa_fast.h first release Dec 30, 2015

README.md

SingleSerial

Simple and fast serial library for chips with single hardware serial

speed as FastSerial with tiny size

sizes of sketch DigitalReadSerial from Arduino samples

uses HardwareSerial FastSerial SingleSerial flash 2636 3848 2300 ram static 202 109 203 ram full 253

ram full means: with SingleSerial & HardwareSerial RX & TX buffers allocated statically, where FastSerial uses dynamic memory allocation via malloc()

FastSerial uses 16 bytes TX and 128 RX so full memory usage is 253 bytes HardwareSerial by default uses 64 bytes TX and 64 RX static buffers SingleSerial by default uses 16 bytes TX and 128 RX static buffers

see the above table again :)

restrictions:

  • only one port
  • buffers 256 bytes max
  • no non-blocking write
  • buffer sizes must be power of 2
You can’t perform that action at this time.