Search found 1374 matches

by deshipu
Wed Sep 16, 2020 11:09 pm
Forum: Drivers for External Components
Topic: IS31fl3731 Charlie-Plexed LED Matrix
Replies: 8
Views: 2268

Re: IS31fl3731 Charlie-Plexed LED Matrix

I'm not migrating. Bitbucket decided to permanently delete all Mercurial repositories a while ago.
by deshipu
Fri Sep 11, 2020 1:03 pm
Forum: Hardware Projects
Topic: Which sensor can capture blowing action?
Replies: 11
Views: 379

Re: Which sensor can capture blowing action?

I think I remember a project of a blowable electronic candle that used the LED itself as the sensor, measuring the changes in its resistance due to temperature changes. If you want to be more accurate and sensitive, for example for electronic woodwind instruments, there are pressure sensors that can...
by deshipu
Thu Sep 10, 2020 8:35 am
Forum: Development of MicroPython
Topic: Native C module: accessing objects. [SOLVED]
Replies: 27
Views: 762

Re: Native C module: accessing objects

pythoncoder wrote:
Tue Sep 08, 2020 8:15 am
I was hoping to avoid having users build the firmware: this is a significant barrier for many people.
But framebuf is a loadable module now?
by deshipu
Mon Sep 07, 2020 6:43 pm
Forum: Development of MicroPython
Topic: Native C module: accessing objects. [SOLVED]
Replies: 27
Views: 762

Re: Native C module: accessing objects

pythoncoder wrote:
Mon Sep 07, 2020 8:07 am
I suspect this is all above my pay grade ;)
How about you just take the existing framebuf module, rename it and build on top of it?
by deshipu
Sun Sep 06, 2020 10:30 pm
Forum: Development of MicroPython
Topic: Native C module: accessing objects. [SOLVED]
Replies: 27
Views: 762

Re: Native C module: accessing objects

You are right, at this point it's probably easiest to just copy the relevant functions over.
by deshipu
Sun Sep 06, 2020 2:44 pm
Forum: Development of MicroPython
Topic: Native C module: accessing objects. [SOLVED]
Replies: 27
Views: 762

Re: Native C module: accessing objects

You can do that, but you get a performance penalty, and I imagine that for a function like set_pixel that really matters. In this particular case there is another possible solution: since framebuf is itself a native module, you can simply link against it — this will create a copy of that function in...
by deshipu
Sat Sep 05, 2020 9:47 am
Forum: Development of MicroPython
Topic: Native C module: accessing objects. [SOLVED]
Replies: 27
Views: 762

Re: Native C module: accessing objects

I'm afraid you can't do that. The only MicroPython C functions you can call from the inside of native modules are the ones that are explicitly listed in the mp_fun_table.
by deshipu
Tue Aug 11, 2020 1:46 pm
Forum: Development of MicroPython
Topic: machine constants
Replies: 5
Views: 323

Re: machine constants

Sadly, nothing in MicroPython is device-independent.