Search found 5 matches

by ldmoretti
Thu Jan 20, 2022 10:00 pm
Forum: Development of MicroPython
Topic: Removing modules from firmware image?
Replies: 1
Views: 8083

Removing modules from firmware image?

Hi: I've got a custom board (STM32 based) and looking at the list from help('modules') I've got a few modules that I don't need. How do I remove them from my board without effecting the other default projects? I see some of them in the ports/stm32/boards/manafest.py file but removing them there woul...
by ldmoretti
Thu Jan 20, 2022 9:41 pm
Forum: Development of MicroPython
Topic: Renaming the pyb module?
Replies: 2
Views: 6919

Re: Renaming the pyb module?

Thanks David:
I found that one and that helped with the import.

My lead wasn't happy that the help(boardname) command still said __name__ = pyb so I found the MP_ROM_QSTR(MP_QSTR_pyb) in modpyb.c pyb_module_globals_table{}

Once I changed those two it seems to work well.

Luciano
by ldmoretti
Thu Jan 20, 2022 7:05 pm
Forum: Development of MicroPython
Topic: Renaming the pyb module?
Replies: 2
Views: 6919

Renaming the pyb module?

We've got a custom board that we want to run Micropython on, but my lead developer wants it to be our board name, not pyb, for the name of the module. He previously just downloaded the code and did a global search-and-replace but that makes it much harder to upgrade releases. I'm making a forked Git...
by ldmoretti
Fri Mar 26, 2021 1:59 am
Forum: General Discussion and Questions
Topic: urequests "need more than 2 values to unpack"
Replies: 7
Views: 4420

Re: urequests "need more than 2 values to unpack"

Daniel:
Have you tried just "http" not "https" in your URL? Might be an issue of the stack not supporting secure transfer.
by ldmoretti
Fri Mar 26, 2021 1:56 am
Forum: General Discussion and Questions
Topic: Representing enum style values w/ pretty printing?
Replies: 1
Views: 1234

Representing enum style values w/ pretty printing?

I've got a board that's sending "magic values" across the wire to my board running MicroPython. I've got these currently represented as constants in a class. I'd like to have a string conversion function that pretty prints the values but I'm having trouble figuring out how to do it. Example: class C...