Search found 628 matches

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

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

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

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

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

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

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

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

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

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

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...