-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update library.json, performance print(), license (#8)
- Loading branch information
1 parent
b8abe24
commit dfbd775
Showing
15 changed files
with
160 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -97,4 +97,5 @@ void loop() | |
{ | ||
} | ||
|
||
|
||
// -- END OF FILE -- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,7 @@ ANSI ansi(&Serial); | |
String user = ""; | ||
String password = ""; | ||
|
||
|
||
void setup() | ||
{ | ||
Serial.begin(115200); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,4 +36,6 @@ void loop() | |
{ | ||
} | ||
|
||
|
||
// -- END OF FILE -- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,8 +51,11 @@ void setup() | |
delay(1000); | ||
} | ||
|
||
|
||
void loop() | ||
{ | ||
} | ||
|
||
|
||
// -- END OF FILE -- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
// | ||
// FILE: ansi_performance.ino | ||
// AUTHOR: Rob Tillaart | ||
// VERSION: 0.1.0 | ||
// PURPOSE: start of performance print statement. | ||
// DATE: 2021-12-13 | ||
// URL: https://github.com/RobTillaart/ANSI | ||
// (c) : MIT | ||
// | ||
|
||
|
||
#include "ansi.h" | ||
|
||
ANSI ansi(&Serial); | ||
|
||
int t; | ||
double d; | ||
|
||
uint32_t start, stop; | ||
|
||
void setup() | ||
{ | ||
Serial.begin(115200); | ||
Serial.println(__FILE__); | ||
Serial.println(ANSI_LIB_VERSION); | ||
Serial.println(); | ||
delay(100); | ||
|
||
start = micros(); | ||
ansi.println("PERFORMANCE TEST ANSI TERMINAL PRINT"); | ||
stop = micros(); | ||
Serial.print("ANSITERM:\t"); | ||
Serial.println(stop - start); | ||
delay(100); | ||
|
||
start = micros(); | ||
Serial.println("PERFORMANCE TEST ANSI TERMINAL PRINT"); | ||
stop = micros(); | ||
Serial.print("SERIAL:\t\t"); | ||
Serial.println(stop - start); | ||
Serial.println(); | ||
delay(100); | ||
|
||
start = micros(); | ||
ansi.clearScreen(); | ||
stop = micros(); | ||
Serial.print("ANSITERM:\t"); | ||
Serial.println(stop - start); | ||
delay(100); | ||
|
||
start = micros(); | ||
Serial.print("\033[2J\033[H"); | ||
stop = micros(); | ||
Serial.print("SERIAL:\t\t"); | ||
Serial.println(stop - start); | ||
delay(100); | ||
|
||
} | ||
|
||
void loop() | ||
{ | ||
} | ||
|
||
// -- END OF FILE -- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
ansi_performance.ino | ||
0.1.4 | ||
|
||
PERFORMANCE TEST ANSI TERMINAL PRINT | ||
ANSITERM: 376 | ||
PERFORMANCE TEST ANSI TERMINAL PRINT | ||
SERIAL: 300 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
ansi_performance.ino | ||
0.1.5 | ||
|
||
PERFORMANCE TEST ANSI TERMINAL PRINT | ||
ANSITERM: 352 | ||
PERFORMANCE TEST ANSI TERMINAL PRINT | ||
SERIAL: 300 | ||
|
||
(cleaned output of clearScreen(); test) | ||
ANSITERM: 72 | ||
SERIAL: 56 |
Oops, something went wrong.