Search found 606 matches

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: 163

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: 218

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: 2
Views: 104

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: 565

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: 130

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: 565

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: 272

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
by jickster
Sun Mar 03, 2019 8:16 pm
Forum: ESP32 boards
Topic: SPI as slave.
Replies: 1
Views: 143

Re: SPI as slave.

Hello, Sorry, but I am new to upy. Is there an option to run SPI as slave on the ESP32? Or just use a the readinto basted on an interrupt? I have 2 ESP32, and would like to use SPI for them to talk together, as the HW SPI is super fast. I already have the master sending data, but do not know how to...
by jickster
Sun Mar 03, 2019 1:16 am
Forum: General Discussion and Questions
Topic: Dynamically add method to instance
Replies: 7
Views: 272

Dynamically add method to instance

Obj.thing = function

?


Sent from my iPhone using Tapatalk Pro
by jickster
Sat Mar 02, 2019 9:44 pm
Forum: General Discussion and Questions
Topic: Running two concurrent threads
Replies: 16
Views: 565

Re: Running two concurrent threads

If you only had enough time to fully finish executing the “compute the beat” code or “flash leds”, I think you would put priority on “compute the beat” because at least you could record that a beat happened.

Is my assumption correct?


Sent from my iPhone using Tapatalk Pro