This file contains hidden or 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
| #!/usr/bin/env python3 | |
| # | |
| # Pretty-Printer for USB-PD data exposed in /sys/class/typec/ | |
| # | |
| # Based on https://www.kernel.org/doc/Documentation/ABI/testing/sysfs-class-typec | |
| # | |
| # (C) Georg Lukas <[email protected]> | |
| # | |
| from pathlib import Path |
This file contains hidden or 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
| import os | |
| import pickle | |
| import time | |
| width = "150" | |
| height = "50" | |
| os.system("mode con cols="+width+"lines="+height) | |
| ######ADD CODE FOR SPECIAL EFFECTS | |
| ## | |
| ##os.system('COLOR F0') |
This file contains hidden or 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
| import os | |
| import pickle | |
| import time | |
| width = "150" | |
| height = "50" | |
| os.system("mode con cols="+width+"lines="+height) | |
| ######ADD CODE FOR SPECIAL EFFECTS | |
| ## | |
| ##os.system('COLOR F0') |