-
-
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.
- Loading branch information
1 parent
bf27f1c
commit c209dd9
Showing
9 changed files
with
186 additions
and
26 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 |
---|---|---|
@@ -0,0 +1,78 @@ | ||
// | ||
// FILE: ansiTestPrint.ino | ||
// AUTHOR: Rob Tillaart | ||
// PURPOSE: demo | ||
// URL: https://github.com/RobTillaart/ANSI | ||
|
||
|
||
#include "ansi.h" | ||
|
||
ANSI ansi(&Serial); | ||
|
||
char lorem[] = "Lorem ipsum dolor sit amet, \ | ||
consectetuer adipiscing elit. Aenean commodo ligula eget dolor. \ | ||
Aenean massa. Cum sociis natoque penatibus et magnis dis parturient \ | ||
montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, \ | ||
pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. \ | ||
Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. \ | ||
In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo. \ | ||
Nullam dictum felis eu pede mollis pretium. Integer tincidunt. \ | ||
Cras dapibus. Vivamus elementum semper nisi. \ | ||
Aenean vulputate eleifend tellus. Aenean leo ligula, porttitor eu, \ | ||
consequat vitae, eleifend ac, enim. Aliquam lorem ante, dapibus in, \ | ||
viverra quis, feugiat a, tellus. Phasellus viverra nulla ut metus \ | ||
varius laoreet. Quisque rutrum. Aenean imperdiet. Etiam ultricies \ | ||
nisi vel augue. Curabitur ullamcorper ultricies nisi. Nam eget dui."; | ||
|
||
|
||
|
||
void setup() | ||
{ | ||
Serial.begin(115200); | ||
ansi.println(__FILE__); | ||
ansi.print("ANSI_LIB_VERSION: "); | ||
ansi.println(ANSI_LIB_VERSION); | ||
ansi.println(); | ||
|
||
ansi.println("\nTest invisible"); | ||
ansi.invisible(); | ||
ansi.println("INVISIBLE?"); | ||
ansi.normal(); | ||
ansi.println("VISIBLE?"); | ||
delay(1000); | ||
|
||
ansi.println("\nTest printMode"); | ||
ansi.clearScreen(); | ||
ansi.startPrintMode(); | ||
ansi.println(lorem); | ||
ansi.stopPrintMode(); | ||
delay(1000); | ||
|
||
ansi.println("\nTest printScreen"); | ||
ansi.clearScreen(); | ||
ansi.println("Hello World"); | ||
ansi.printScreen(); | ||
ansi.println("done"); | ||
delay(1000); | ||
|
||
ansi.println("\nTest printLine"); | ||
ansi.clearScreen(); | ||
ansi.println("Hello 1"); | ||
ansi.println("Hello 2"); | ||
ansi.printLine(); | ||
ansi.println("Hello 3"); | ||
ansi.println("Hello 4"); | ||
ansi.println("done"); | ||
delay(1000); | ||
|
||
|
||
ansi.println("\ndone..."); | ||
} | ||
|
||
|
||
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
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
|
||
# Support Matrix | ||
|
||
- To be updated when time permits. | ||
- name might change | ||
|
||
|
||
| function | TeraTerm | puTTY | miniCom | | ||
|:--------------|:--------:|:-----:|:---------:| | ||
| normal | Y | Y | | | ||
| bold | Y | Y | | | ||
| low | Y | Y | | | ||
| underline | Y | Y | | | ||
| blink | Y | Y | | | ||
| blinkFast | - | - | | | ||
| reverse | Y | Y | | | ||
| clearScreen | Y | Y | | | ||
| clearLine | Y | Y | | | ||
| home | Y | Y | | | ||
| gotoXY | Y | Y | | | ||
| cursorUp | Y | Y | | | ||
| cursorDown | Y | Y | | | ||
| cursorForward | Y | Y | | | ||
| cursorBack | Y | Y | | | ||
| | | | | | ||
| | | | | | ||
| | | | | | ||
|
||
Feel free to add a PR to update the table above. |