Search found 240 matches

by mattyt
Tue Sep 17, 2019 2:17 pm
Forum: General Discussion and Questions
Topic: Debugger for Micropython
Replies: 11
Views: 2840

Re: Debugger for Micropython

For reference, @stijn is referring to PR 5026.
by mattyt
Sat Sep 07, 2019 2:32 pm
Forum: ESP32 boards
Topic: How to Convert .py to .mpy for ESP32
Replies: 4
Views: 125

Re: How to Convert .py to .mpy for ESP32

mpy-cross is also pip-installable (thanks AndrewL!):

https://pypi.org/project/mpy-cross/
by mattyt
Thu Sep 05, 2019 10:56 pm
Forum: Development of MicroPython
Topic: compiling C modules into loadable shared objects
Replies: 32
Views: 853

Re: compiling C modules into loadable shared objects

I am wondering if it is possible to build into the .mpy file something that identifies whether it has port/arch pacific code. Then if an mpy file is called from an in correct port it can through an error. I believe that's possible - and I agree it should be done - but it shouldn't get to that point...
by mattyt
Wed Sep 04, 2019 11:32 pm
Forum: Development of MicroPython
Topic: compiling C modules into loadable shared objects
Replies: 32
Views: 853

Re: compiling C modules into loadable shared objects

Yes - this feature is being actively worked on. Damien actually gave a demo of this last week at the Melbourne MicroPython Meetup (an updated version of the video linked earlier in this thread). I don't think the video is online yet though. It's much nicer to use now than those earlier demos. I was...
by mattyt
Tue Sep 03, 2019 12:44 am
Forum: Development of MicroPython
Topic: compiling C modules into loadable shared objects
Replies: 32
Views: 853

Re: compiling C modules into loadable shared objects

Yes - this feature is being actively worked on. Damien actually gave a demo of this last week at the Melbourne MicroPython Meetup (an updated version of the video linked earlier in this thread). I don't think the video is online yet though. It's much nicer to use now than those earlier demos. I was...
by mattyt
Sun Sep 01, 2019 9:23 am
Forum: Development of MicroPython
Topic: C module programming reference
Replies: 19
Views: 748

Re: C module programming reference

There is the MicroPython external C modules documentation...that's about as minimal as you can get. :)

And yes, v923z, this looks great! Thanks for your efforts, it's one of the lesser-known aspects of MicroPython development.
by mattyt
Sat Aug 24, 2019 1:58 pm
Forum: Drivers for External Components
Topic: Displays with driver subclassed from framebuf
Replies: 30
Views: 2640

Re: Displays with driver subclassed from framebuf

The purist in me has always found the derivation from framebuf a bit...awkward.

Wouldn't it be better if the driver contained a framebuf? It's less tightly coupled and describes the relationship more correctly. Doesn't it? What are the benefits of inheritance here?
by mattyt
Tue Aug 13, 2019 1:50 pm
Forum: General Discussion and Questions
Topic: PyCon AU 2019
Replies: 1
Views: 164

PyCon AU 2019

THE Australian event for all things Python, PyCon AU 2019 was a huge success with many diverse and high-quality talks that covered the gamut of Python topics. MicroPython was very well represented with six talks covering our favourite embedded language. All of the 80+ talks were recorded and publis...
by mattyt
Fri Aug 09, 2019 4:34 am
Forum: Other Boards
Topic: Teensy 4.0
Replies: 5
Views: 689

Re: Teensy 4.0

While those are pretty neat boards the Cortex-M7 architecture is very different and targets low-power operations. The M7 ought to be remarkable for its high performance for low power consumption...
by mattyt
Thu Aug 08, 2019 7:47 am
Forum: MicroPython pyboard
Topic: more detail tutorial for external C modules?
Replies: 6
Views: 242

Re: more detail tutorial for external C modules?

We actually (sort-of) did both. The 'standard' way to do it is to build the MP firmware and include the (unchanged) QR C code, adding a wrapper to expose an interface to MicroPython that maps to the C functionality. This way the MicroPython firmware, deployed to the device, contains a QR module. It ...