commit ee367ca65e63c2b30b3afab2dca0954be2b544b4 Author: W3SLAV <49104904+W3SLAV@users.noreply.github.com> Date: Sat Apr 26 11:37:18 2025 -0500 Add files via upload diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..469ae19 --- /dev/null +++ b/LICENSE @@ -0,0 +1,88 @@ +The MIT License (MIT) + +Copyright (c) 2013-2024 Damien P. George + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + +-------------------------------------------------------------------------------- + +Unless specified otherwise (see below), the above license and copyright applies +to all files in this repository. + +Individual files may include additional copyright holders. + +The various ports of MicroPython may include third-party software that is +licensed under different terms. These licenses are summarised in the tree +below, please refer to these files and directories for further license and +copyright information. Note that (L)GPL-licensed code listed below is only +used during the build process and is not part of the compiled source code. + +/ (MIT) + /drivers + /cc3100 (BSD-3-clause) + /lib + /asf4 (Apache-2.0) + /axtls (BSD-3-clause) + /config + /scripts + /config (GPL-2.0-or-later) + /Rules.mak (GPL-2.0) + /berkeley-db-1xx (BSD-4-clause) + /btstack (See btstack/LICENSE) + /cmsis (BSD-3-clause) + /crypto-algorithms (NONE) + /libhydrogen (ISC) + /libmetal (BSD-3-clause) + /littlefs (BSD-3-clause) + /lwip (BSD-3-clause) + /mynewt-nimble (Apache-2.0) + /nrfx (BSD-3-clause) + /nxp_driver (BSD-3-Clause) + /oofatfs (BSD-1-clause) + /open-amp (BSD-3-clause) + /pico-sdk (BSD-3-clause) + /re15 (BSD-3-clause) + /stm32lib (BSD-3-clause) + /tinytest (BSD-3-clause) + /tinyusb (MIT) + /uzlib (Zlib) + /wiznet5k (MIT) + /logo (uses OFL-1.1) + /ports + /cc3200 + /hal (BSD-3-clause) + /simplelink (BSD-3-clause) + /FreeRTOS (GPL-2.0 with FreeRTOS exception) + /esp32 + /ppp_set_auth.* (Apache-2.0) + /rp2 + /mutex_extra.c (BSD-3-clause) + /stm32 + /usbd*.c (MCD-ST Liberty SW License Agreement V2) + /stm32_it.* (MIT + BSD-3-clause) + /system_stm32*.c (MIT + BSD-3-clause) + /boards + /startup_stm32*.s (BSD-3-clause) + /*/stm32*.h (BSD-3-clause) + /usbdev (MCD-ST Liberty SW License Agreement V2) + /usbhost (MCD-ST Liberty SW License Agreement V2) + /zephyr + /src (Apache-2.0) + /tools + /dfu.py (LGPL-3.0-only) diff --git a/README.md b/README.md new file mode 100644 index 0000000..4a0f6d6 --- /dev/null +++ b/README.md @@ -0,0 +1,2 @@ +# automicropython_nds +# automicropython_nds diff --git a/icon.bmp b/icon.bmp new file mode 100644 index 0000000..f89e25f Binary files /dev/null and b/icon.bmp differ diff --git a/nuggetizer.py b/nuggetizer.py new file mode 100644 index 0000000..e69de29 diff --git a/osprey.py b/osprey.py new file mode 100644 index 0000000..1c98e80 --- /dev/null +++ b/osprey.py @@ -0,0 +1,42 @@ +# O S P R E Y +import os +import sys +import shutil + +codefile = "nds/code.c" +file_contents = "" + +print("OSPREY v0.2a") + +buildfile = input("file path: ") + + +if ('DEVKITARM' in os.environ == False): + print("DevkitArm is not installed") + sys.exit() + +devkitpro = os.environ['DEVKITPRO'] +if (os.path.isdir(devkitpro+'calico') == False): + print("WARNING: THIS PROJECT IS ONLY COMPATIBLE WITH LIBNDS >= v2.0\n") + +if os.path.exists(codefile): + os.remove(codefile) + +#with open(buildfile, 'r') as file: +# file_contents = file.read() +with open(buildfile, 'r') as file: + for line in file: + #print(line.strip()) + file_contents+=('"'+line.replace("\n", "")+"\\"+"n"+'"\n') + + +f = open(codefile, "x") +f.write('static const char *osprey_file =\n'+file_contents+';') +f.close() + + +os.system("cd nds && make") + + + +shutil.copyfile("nds/build/firmware.nds", "osprey.nds") diff --git a/sfx/Boom.wav b/sfx/Boom.wav new file mode 100644 index 0000000..1d8665b Binary files /dev/null and b/sfx/Boom.wav differ diff --git a/sfx/FlatOutLies.mod b/sfx/FlatOutLies.mod new file mode 100644 index 0000000..7b06f97 Binary files /dev/null and b/sfx/FlatOutLies.mod differ diff --git a/test.py b/test.py new file mode 100644 index 0000000..9c4bd68 --- /dev/null +++ b/test.py @@ -0,0 +1,23 @@ +import nds +# import os + + + +KEY_RIGHT = (1 << 4) # Keypad RIGHT button. +KEY_LEFT = (1 << 5) # Keypad LEFT button. +KEY_UP = (1 << 6) # Keypad UP button. +KEY_DOWN = (1 << 7) # Keypad DOWN button. +KEY_R = (1 << 8) # Right shoulder button. +KEY_L = (1 << 9) # Left shoulder button. +KEY_X = (1 << 10) # Keypad X button. +while 2>1:\n + nds.swiWaitForVBlank()\n + nds.scanKeys()\n + keys = nds.keysDown()\n + if (keys == KEY_UP):\n + print('up!')\n + if (keys == KEY_DOWN):\n + print('down!') + + +