Update 'README.md'

master
srcadm 6 years ago
parent e7b064cbf3
commit 9a2285b53b

@ -66,43 +66,5 @@ Dec8s(any signed expr);, same of course Dec16u(); and Dec16s();
Code size has been obtained by calling one function at a time, compiler under the usual -0s mode. Size is the difference with the empty file size. TerSer.h can of course be used with setup() and loop(). It add the ~300 bytes Arduino initializations.
Execution time has been measured with a Nop replacing the SendCar function. The time depends on the baud rate, ~1 ms per character displayed at 9600 bits/s.
#### TerSer.ino Terminal 174b 0v
Adds 174b for total size:
```c
#include "TerSer.h"
int main() {
SetupTerSer();
while(1) {
// Text("Test"); // 20b
// Bin8(v8); // 16b 3us
// Bin16(v16); // 42b 6,8us
// Hex8(v8); // 52b 4us
// Hex16(v16); // 82b 11.5us
// Dec8(vs8); //116b 13us
// Dec16(vs16); //200b 52us 14v
// max 14 variables
} // end while(1)
} // end main()
```
#### PrintArduino empty 1426b 184v
Adds 1426b for program size:
```cpp
void setup() {
Serial.begin(9600);
}
void loop() {
// Serial.print("Text"); // 22 190v
// Serial.println("text"); // 40 192v
// Serial.print(123,HEX); // 60 184v
// Serial.print(12335,HEX);// 120 184v
// Serial.print(-123); // 266 184v
// Serial.print(-12345); // 266 184v
// Serial.println(12345); // 286 188v
for(;;);
}
```

Loading…
Cancel
Save