aboutsummaryrefslogtreecommitdiff
path: root/code.py
diff options
context:
space:
mode:
authorRaghuram Subramani <raghus2247@gmail.com>2022-06-25 21:19:30 +0530
committerRaghuram Subramani <raghus2247@gmail.com>2022-06-25 21:19:30 +0530
commit158df569bc1efa4fea1272e6c8f232efed194aa7 (patch)
tree3bddbffc549102ef3fabae8bdaf0e1e13360cf7e /code.py
parenta7c25f19d9700c008e6d6b5b4f95ea6103bda8ab (diff)
progress
Diffstat (limited to 'code.py')
-rw-r--r--code.py20
1 files changed, 0 insertions, 20 deletions
diff --git a/code.py b/code.py
deleted file mode 100644
index 7847789..0000000
--- a/code.py
+++ /dev/null
@@ -1,20 +0,0 @@
-def main(): # Made by compromyse: https://compromyse.tk/
- import usb_hid
- from adafruit_hid.keyboard import Keyboard
- from adafruit_hid.keyboard_layout_us import KeyboardLayoutUS as KeyboardLayout
- import time
- import board
- import digitalio
- led = digitalio.DigitalInOut(board.LED)
- led.direction = digitalio.Direction.OUTPUT
- kbd = Keyboard(usb_hid.devices)
- layout = KeyboardLayout(kbd)
- time.sleep(1)
- led.value = True
- kbd.press(227)
- kbd.release_all()
- time.sleep(1)
- layout.write('subl')
- kbd.press(40)
- kbd.release_all()
- led.value = False \ No newline at end of file