diff --git a/.gitignore b/.gitignore index f8b73e7..d5024ff 100644 --- a/.gitignore +++ b/.gitignore @@ -15,8 +15,6 @@ dist/ downloads/ eggs/ .eggs/ -lib/ -lib64/ parts/ sdist/ var/ @@ -138,3 +136,8 @@ dmypy.json # Cython debug symbols cython_debug/ +boot_out.txt +.metadata_never_index +/System Volume Information +.fseventsd +.Trashes diff --git a/boot.py b/boot.py new file mode 100644 index 0000000..dbf2b1e --- /dev/null +++ b/boot.py @@ -0,0 +1,16 @@ +from board import * +import digitalio +import storage + +noStorageStatus = False +noStoragePin = digitalio.DigitalInOut(GP15) +noStoragePin.switch_to_input(pull=digitalio.Pull.UP) +noStorageStatus = not noStoragePin.value + +if(noStorageStatus == True): + # don't show USB drive to host PC + storage.disable_usb_drive() + print("Disabling USB drive") +else: + # normal boot + print("USB drive enabled") diff --git a/code.py b/code.py new file mode 100644 index 0000000..f301245 --- /dev/null +++ b/code.py @@ -0,0 +1 @@ +print("Hello World!") diff --git a/lib/adafruit_hid/__init__.mpy b/lib/adafruit_hid/__init__.mpy new file mode 100644 index 0000000..29daa94 Binary files /dev/null and b/lib/adafruit_hid/__init__.mpy differ diff --git a/lib/adafruit_hid/consumer_control.mpy b/lib/adafruit_hid/consumer_control.mpy new file mode 100644 index 0000000..ff510dc Binary files /dev/null and b/lib/adafruit_hid/consumer_control.mpy differ diff --git a/lib/adafruit_hid/consumer_control_code.mpy b/lib/adafruit_hid/consumer_control_code.mpy new file mode 100644 index 0000000..b6fc457 Binary files /dev/null and b/lib/adafruit_hid/consumer_control_code.mpy differ diff --git a/lib/adafruit_hid/gamepad.mpy b/lib/adafruit_hid/gamepad.mpy new file mode 100644 index 0000000..54f4a25 Binary files /dev/null and b/lib/adafruit_hid/gamepad.mpy differ diff --git a/lib/adafruit_hid/keyboard.mpy b/lib/adafruit_hid/keyboard.mpy new file mode 100644 index 0000000..6fe3ace Binary files /dev/null and b/lib/adafruit_hid/keyboard.mpy differ diff --git a/lib/adafruit_hid/keyboard_layout_us.mpy b/lib/adafruit_hid/keyboard_layout_us.mpy new file mode 100644 index 0000000..89f0856 Binary files /dev/null and b/lib/adafruit_hid/keyboard_layout_us.mpy differ diff --git a/lib/adafruit_hid/keycode.mpy b/lib/adafruit_hid/keycode.mpy new file mode 100644 index 0000000..106bba1 Binary files /dev/null and b/lib/adafruit_hid/keycode.mpy differ diff --git a/lib/adafruit_hid/mouse.mpy b/lib/adafruit_hid/mouse.mpy new file mode 100644 index 0000000..6289bd4 Binary files /dev/null and b/lib/adafruit_hid/mouse.mpy differ