Search found 7 matches

by rckdev
Mon May 17, 2021 7:48 am
Forum: General Discussion and Questions
Topic: What does "Suitable hardware" mean?
Replies: 2
Views: 3099

What does "Suitable hardware" mean?

Hi,
I'm studying the MicroPython documentation and I found the phrase "On suitable hardware MicroPython offers the ability to write interrupt handlers in Python" in the Writing interrupt handlers section. What is precisely this suitable hardware? Is there a list of micros?
by rckdev
Tue May 11, 2021 12:11 pm
Forum: MicroPython pyboard
Topic: MicroPython mising headers when trying to compile C code into mpy files
Replies: 2
Views: 3723

Re: MicroPython mising headers when trying to compile C code into mpy files

Did you set MPY_DIR in the Makefile? Yes, and I know it's properly set because the compiler is able to reach the py/dynruntime.h header. The problem is the "py/obj.h" file which cannot locate the "assert.h" header. This is the result of a search of "assert.h" inside the Micropython folder. None of ...
by rckdev
Tue May 11, 2021 8:59 am
Forum: MicroPython pyboard
Topic: MicroPython mising headers when trying to compile C code into mpy files
Replies: 2
Views: 3723

MicroPython mising headers when trying to compile C code into mpy files

Hi, I'm following this documentation to compile a C library of mine into .mpy files so that i can use it as an external python module in my code. For testing purpose I've created a "test.c" source file, containing the "test" function. The first line is #include "py/dynruntime.h" as required by the d...
by rckdev
Fri Apr 30, 2021 3:19 pm
Forum: Raspberry Pi microcontroller boards
Topic: Error when importing custom python module
Replies: 9
Views: 7600

Re: Error when importing custom python module

Is it possible that I'm getting this error because of uploading ONLY the main script and not the "sensmod.py" file?
by rckdev
Fri Apr 30, 2021 1:13 pm
Forum: Raspberry Pi microcontroller boards
Topic: Error when importing custom python module
Replies: 9
Views: 7600

Re: Error when importing custom python module

Working with emacs and elisp, nothing should frighten you. Emacs and ELisp do ;) You can surely add a shell command into emacs. Yes, the emacs command is basically an async-shell-ommand which runs the pyboard.py script with the file of the buffer as a parameter with the com port and the baud rate. ...
by rckdev
Fri Apr 30, 2021 11:57 am
Forum: Raspberry Pi microcontroller boards
Topic: Error when importing custom python module
Replies: 9
Views: 7600

Re: Error when importing custom python module

How do you copy your modules into the Pico? And you do use an IDE like Thonny? Actually I'm using Emacs with some ELisp functions i wrote which uses micropython to upload it to the device. The latter may may hide whether files are permanently uploaded to the target or not. For the moment I'm just u...
by rckdev
Fri Apr 30, 2021 10:51 am
Forum: Raspberry Pi microcontroller boards
Topic: Error when importing custom python module
Replies: 9
Views: 7600

Error when importing custom python module

Hi, I am trying to run a simple program which should do certain things depending on the value of an analog input.As long as I leave all the code in a single file, everything works, but if for example I put the "Sensor" class in a "sensmod.py" module, and I import it via "import sensmod" and then use...