Search found 629 matches

by jickster
Mon Mar 18, 2019 2:19 pm
Forum: General Discussion and Questions
Topic: Could not import 'btree' in MicroPython 1.9.4
Replies: 9
Views: 5785

Re: Could not import 'btree' in MicroPython 1.9.4

It’s probably not compiled in; you need to define MICROPY_PY_BTREE


Sent from my iPhone using Tapatalk Pro
by jickster
Sun Mar 17, 2019 4:28 pm
Forum: General Discussion and Questions
Topic: Early Board Init vs. Late Board Init
Replies: 1
Views: 1636

Re: Early Board Init vs. Late Board Init

If there’s a clash in pin assignments why does it matter who runs first?

Either you’ll override someone or someone will override you.


Sent from my iPhone using Tapatalk Pro
by jickster
Tue Mar 12, 2019 1:19 pm
Forum: Programs, Libraries and Tools
Topic: {SOLVED] mpy-cross on the raspberry pi (ValueError: incompatible .mpy file)
Replies: 3
Views: 3013

Re: mpy-cross on the raspberry pi (ValueError: incompatible .mpy file)

maerki wrote:The problem is solved:
My board was micropython 1.9.4, but I compiled mpy-cross 1.10.
Now I compiled mpy-cross of version 1.9.4 and everything works as expected.
Mark this question as SOLVED


Sent from my iPhone using Tapatalk Pro
by jickster
Tue Mar 12, 2019 1:32 am
Forum: Programs, Libraries and Tools
Topic: {SOLVED] mpy-cross on the raspberry pi (ValueError: incompatible .mpy file)
Replies: 3
Views: 3013

Re: mpy-cross on the raspberry pi (ValueError: incompatible .mpy file)

There’s 4 reasons why importing .mpy could fail if (header[0] != 'M' || header[1] != MPY_VERSION || header[2] != MPY_FEATURE_FLAGS || header[3] > mp_small_int_bits()) { mp_raise_ValueError("incompatible .mpy file"); } Basically the version - or compile options - of micropython that you’re running do...
by jickster
Fri Mar 08, 2019 6:10 pm
Forum: Development of MicroPython
Topic: Understanding Inside of Micropython
Replies: 3
Views: 3041

Re: Understanding Inside of Micropython

There is no document about internals.

The documentation for uPy is not even up to date.

You’re gonna have to read the code.


Sent from my iPhone using Tapatalk Pro
by jickster
Thu Mar 07, 2019 6:41 pm
Forum: General Discussion and Questions
Topic: ESP32 VERIFY_PTR error gc_free CPU halted
Replies: 3
Views: 2880

Re: ESP32 VERIFY_PTR error gc_free CPU halted

Post the function wherein abort occurred.


Sent from my iPhone using Tapatalk Pro
by jickster
Tue Mar 05, 2019 3:01 pm
Forum: General Discussion and Questions
Topic: Running two concurrent threads
Replies: 16
Views: 9032

Re: Running two concurrent threads

hdsjulian wrote:true. but this won't keep me from only sampling 1000 inputs per second?
No


Sent from my iPhone using Tapatalk Pro
by jickster
Mon Mar 04, 2019 7:48 pm
Forum: General Discussion and Questions
Topic: Is there another way than multi-threading to achieve this?
Replies: 2
Views: 1935

Re: Is there another way than multi-threading to achieve this?

I am just experimenting, wanted to build a clone of Tetris and have music play at the same time as an exercise. I see that multithreading is not yes fully supported, so I was wondering if anyone had a suggestion of how to achieve this. The obvious way is to change the music, by replacing the time.s...
by jickster
Mon Mar 04, 2019 12:23 am
Forum: General Discussion and Questions
Topic: Running two concurrent threads
Replies: 16
Views: 9032

Re: Running two concurrent threads

right. but even if i do it that way i can only sample 1000 times per second, right? No. One thing you have to understand is documentation is terribly incomplete. The documentation says you can only do interrupts down to 1ms but the uPy source code shows you can do it much faster. ports/esp32/machin...
by jickster
Sun Mar 03, 2019 11:13 pm
Forum: General Discussion and Questions
Topic: Dynamically add method to instance
Replies: 7
Views: 4591

Re: Dynamically add method to instance

ttmetro wrote:I don't think that binds it to the instance. Hence no reference to "self".

I used a global as a workaround. Not pretty, but works.
Have you actually tried it?



Sent from my iPhone using Tapatalk Pro