obsidianx / 3ds_monty Goto Github PK
View Code? Open in Web Editor NEWPort of MicroPython to the 3DS
License: MIT License
Port of MicroPython to the 3DS
License: MIT License
I was doing fine with getting this to compile until I ran into a problem with apt.c. It kept telling me that lots of the enums that were being what I assume is exposed to python were not there. At first I thought I had fixed the problem by simply including a reference to apt.h from the 3ds includes but then I realized that a lot of the stuff still wasn't defined there such as Apt_AppStatus which I feel is a very important part of the code but honestly isn't there. Could anyone explain to me where those enums might be located or if I don't fully understand the functionality of what is going on in apt.c and apt.h.
I'm having an issue running a program with the interpreter using the netloader. I've been trying to run a program, but whenever I try to run it from a .zip file, it returns:
Traceback (most recent call last):
File "zip:/test1.py", line 1
SyntaxError: invalid syntax
Here is the code:
from citrus import *
gfx.init_default()
console.init(gfx.SCREEN_TOP)
print("Hello, world!")
while apt.main_loop():
hid.scan_input()
if hid.keys_down() and hid.KEY_START:
break
gfx.flush_buffers()
gfx.swap_buffers()
gsp.wait_for_vblank()
I have the boot file included in the zip, and have double-checked that it points to the right file.
I should note that the program runs fine when only the .py file is sent. It's only when it's packaged in a .zip does the interpreter act up.
Could this be an issue with encoding? I checked both my Python script and the one used in the examples, but the format used by different editors mess up the interpreter? Or am I simply using the .zip files incorrectly?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.