Search found 88 matches: casio

Searched query: casio

by Zezombye
Tue Aug 07, 2018 2:33 pm
Forum: Development of MicroPython
Topic: How do I make a port of MicroPython for Casio calculators?
Replies: 66
Views: 59526

Re: How do I make a port of MicroPython for Casio calculators?

... however when I do anything involving floats (even typing "1.1" into the shell) the system crashes with a null pointer exception. As the SDK for Casio only supports C89, I had to implement some functions: nan(), nearbyint(), copysign(), feholdexcept() and fesetenv(). The problem could come from ...
by jickster
Sun Aug 05, 2018 7:44 pm
Forum: Development of MicroPython
Topic: How do I make a port of MicroPython for Casio calculators?
Replies: 66
Views: 59526

Re: How do I make a port of MicroPython for Casio calculators?

Zezombye wrote:
Sun Aug 05, 2018 9:34 am
Edit: nevermind, I had to define MICROPY_PY_BUILTINS_INPUT in mpconfig.h.
You could define it there but you should do it in mpconfigport.h
by Zezombye
Sun Aug 05, 2018 9:34 am
Forum: Development of MicroPython
Topic: How do I make a port of MicroPython for Casio calculators?
Replies: 66
Views: 59526

Re: How do I make a port of MicroPython for Casio calculators?

Thanks; I set MICROPY_PY_SYS to 1, and now I can "import sys" without a "module not found" error, however I still have the same "name not defined" for the input() function. Is there anything more I have to do? I also defined MICROPY_PY_IO. Edit: nevermind, I had to define MICROPY_PY_BUILTINS_INPUT i...
by jickster
Wed Aug 01, 2018 2:56 pm
Forum: Development of MicroPython
Topic: How do I make a port of MicroPython for Casio calculators?
Replies: 66
Views: 59526

Re: How do I make a port of MicroPython for Casio calculators?

And as for initializing MicroPython, I will initialize it each time I need to run a program (the startup time is almost instantaneous so it makes little difference). I'm not surprised it's instantaneous: initialization merely zeros out the heap you pass in and sets up the state variable. The state ...
by jickster
Wed Aug 01, 2018 2:45 pm
Forum: Development of MicroPython
Topic: How do I make a port of MicroPython for Casio calculators?
Replies: 66
Views: 59526

Re: How do I make a port of MicroPython for Casio calculators?

As for import, how do I add modules such as math or urandom (or sys)? In micropython code, search for "MP_QSTR_sys". You'll see several entries, each of which is surrounded by #if MICROPY_PY_SYS #endif If you have your IDE indexing set up correctly, the code will appear as not included in compilati...
by Zezombye
Wed Aug 01, 2018 9:20 am
Forum: Development of MicroPython
Topic: How do I make a port of MicroPython for Casio calculators?
Replies: 66
Views: 59526

Re: How do I make a port of MicroPython for Casio calculators?

What does that mean? Basically you can make (graphical) apps in C, there's an SDK available. Will micropython be only code running or does Casio have some sort of OS on-top of which you'll be running your executable? Yes: Casio has an OS, and I'm running my executable on top. Anyway, in the ...
by jickster
Tue Jul 31, 2018 8:48 pm
Forum: Development of MicroPython
Topic: How do I make a port of MicroPython for Casio calculators?
Replies: 66
Views: 59526

Re: How do I make a port of MicroPython for Casio calculators?

... clarify your overall architecture. Your questions imply a certain architecture but it's unclear: Will micropython be only code running or does Casio have some sort of OS on-top of which you'll be running your executable? Add some more details about the sw architecture of your environment.
by Zezombye
Mon Jul 30, 2018 8:45 pm
Forum: Development of MicroPython
Topic: How do I make a port of MicroPython for Casio calculators?
Replies: 66
Views: 59526

How do I make a port of MicroPython for Casio calculators?

Hi everyone, I'd like to make a port of MicroPython for Casio calculators. Like TI calculators, they have their own filesystem, and ways to program an editor in C. I managed to compile MPy for SH3 (architecture of Casio calculators), using the minimal ...