@ -5,8 +5,6 @@ Use one include file to replace the Serial.print from Arduino library.
**Table of Contents**
[What is the problem with Arduino Serial.print ? ](#what-is-the-problem-with-arduino-serialprint- )
[Example comparison between Didel TerSer and Arduino Serial ](#example-comparison-between-didel-terser-and-arduino-serial )
[Using tabular data ](#using-tabular-data )
[How to switch from Arduino Serial ](#howto-switch-from-arduino-serial )
[Installation ](#terser-installation )
[TerSer Limitations ](#terser-limitations )
@ -29,35 +27,6 @@ The TerSer.h offer the choice of 4 print format for numbers. Signed variables ha
| -------------- | -------------- | -------------- | -------------- | -------------- |
| ![moz0 ](docs/images/tab_moz0.png?raw=true "Example moz=0" ) | ![moz1 ](docs/images/tab_moz1.png?raw=true "Example moz=1" ) | ![moz2 ](docs/images/tab_moz2.png?raw=true "Example moz=2" ) | ![moz3 ](docs/images/tab_moz3.png?raw=true "Example moz=3" ) | ![Aserial ](docs/images/tab_arduino_serial.png?raw=true "Example Arduino Serial.print" ) |
### Example comparison between Didel TerSer and Arduino Serial
| TerSer | Output TerSer | Output Serial | Arduino Serial |
| ------------- | ------------- | ------------- | ------------- |
| Car('Z'); | Z | Z | Serial.print('Z'); |
| Text("Test"); | Test | Test | Serial.print("Test"); |
| Bin16(v16); | 0000010001100000 | 10001100000 | Serial.print(v16,BIN); |
| Hex16(v16); | 08c0 | 8c0 | Serial.print(v16,HEX); |
| Dec16(v16); | 1120 | 1120 | Serial.print(v16); |
| Dec16(v16b); | 0020 or 20 | 20 | Serial.print(v16b); |
| Dec16(v16s); | + 20 or +0020 | 20 | Serial.print(v16s); |
| Dec16(-v16s); | 20 or -0020 | -20 | Serial.print(-v16s); |
*uint16_t v16=1120; uint16_t v16b=20; int16_t v16s=20;*
### Using tabular data
Filling the non significative digits with zero or space is a general options, named ShowZ(); and HideZ();
The Tab(nn); function, allows to align data of different types.
e.g. Table next had to be written:
Text ("Mode HideZ();") SetTab(15);
Text ("Mode ShowZ();");NL();
HideZ();Dec8s(3); SetTab(15);
ShowZ();Dec8s(3); NL();
. . .
![Table1 ](docs/images/tabTable.png?raw=true "Example Table 1" )
### How to switch from Arduino Serial
If you are looking for a drop-in replacement for Arduino Serial with a smaller memory footprint follow the procedure outlined below to quickly switch your project to Didel TerSer: