Add files via upload

This commit is contained in:
W3SLAV 2025-04-26 11:37:18 -05:00 committed by GitHub
commit ee367ca65e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
8 changed files with 155 additions and 0 deletions

88
LICENSE Normal file
View File

@ -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)

2
README.md Normal file
View File

@ -0,0 +1,2 @@
# automicropython_nds
# automicropython_nds

BIN
icon.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

0
nuggetizer.py Normal file
View File

42
osprey.py Normal file
View File

@ -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")

BIN
sfx/Boom.wav Normal file

Binary file not shown.

BIN
sfx/FlatOutLies.mod Normal file

Binary file not shown.

23
test.py Normal file
View File

@ -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!')