diff --git a/CARDPUTER CircuitPython/keyboard_test.py b/CARDPUTER CircuitPython/keyboard_test.py new file mode 100644 index 0000000..39d8cf4 --- /dev/null +++ b/CARDPUTER CircuitPython/keyboard_test.py @@ -0,0 +1,15 @@ +from keyboard import Keyboard + +# Initialize keyboard object +keyb=Keyboard() + +# Must be running on a loop +while True: + print(keyb.scan(), end="") + # This will print all keys and special, without special programming (backspace will print as BACKSP) + # end="" prevents the print statement from starting a new line every time, it isn't necessary + # It just makes it look more like a text editor and takes up less space + + # The keyboard library is a work in progress and ALL keys/combinations aren't mapped yet. + # The most important ones are though, so it's useable in it's current state. + # Use this program or the text editor to find unknown codes and add them to the library diff --git a/CARDPUTER CircuitPython/test.py b/CARDPUTER CircuitPython/test.py deleted file mode 100644 index 251ce8a..0000000 --- a/CARDPUTER CircuitPython/test.py +++ /dev/null @@ -1,5 +0,0 @@ -from keyboard import Keyboard - -keyb=Keyboard() -while True: - print(keyb.scan(), end="")