Search found 18 matches
- Wed Nov 10, 2021 3:29 am
- Forum: General Discussion and Questions
- Topic: crime and punishment: uasyncio, non-blocking spi, and network errors
- Replies: 0
- Views: 874
crime and punishment: uasyncio, non-blocking spi, and network errors
I'm noticing a perplexing issue and I am hoping someone who is pretty familiar with the ESP32 could offer an insight that gets me going in the right direction. Using uasyncio I run an addressable LED output at ~30Hz as well as some basic network operations (fetch http data) which run when a connecti...
- Sat Nov 06, 2021 3:55 pm
- Forum: General Discussion and Questions
- Topic: [SOLVED] uasyncio thread safe flag re-entry issue
- Replies: 2
- Views: 1231
Re: [SOLVED] uasyncio thread safe flag re-entry issue
Aha! This is obvious now that you mention it. Thanks a ton!
Also glad to see your tutorial - I've heard it mentioned a lot but never seem to have found the source.
Also glad to see your tutorial - I've heard it mentioned a lot but never seem to have found the source.
- Fri Nov 05, 2021 7:19 pm
- Forum: General Discussion and Questions
- Topic: [SOLVED] uasyncio thread safe flag re-entry issue
- Replies: 2
- Views: 1231
[SOLVED] uasyncio thread safe flag re-entry issue
I've noticed unexpected behavior (at least to me that is) with which I could really use help from the experts. (note: not an overflow but I don't know how else to succinctly describe whatever is happening here...) My goal is to use a uasyncio.ThreadSafeFlag object to limit the rate at which an outpu...
- Fri Jul 16, 2021 7:38 pm
- Forum: Programs, Libraries and Tools
- Topic: uasyncio - determining if a function is a coroutine
- Replies: 12
- Views: 5613
uasyncio - determining if a function is a coroutine
I'm trying to adapt the pyasncinit decorator for use in MicroPython. Part of the implementation involves checking whether a function is a coroutine. This is done in CPython with the inspect module. Checking out the micropython-lib implementation of inspect shows that there is no "inspect.iscoroutine...
- Thu Feb 04, 2021 5:38 am
- Forum: Programs, Libraries and Tools
- Topic: rshell cp command not working on Raspberry Pi Pico with MicroPython installed
- Replies: 37
- Views: 21998
Re: rshell cp command not working on Raspberry Pi Pico with MicroPython installed
hey everyone, Dave pointed me this way after discussing a related issue. using the 'pico' branch worked wonders for me but i also found the -a/--ascii option to be crucial. cheers!
- Tue Jan 05, 2021 3:42 am
- Forum: Development of MicroPython
- Topic: frozen modules - execution vs. import
- Replies: 3
- Views: 2321
Re: frozen modules - execution vs. import
aha! excellent - that was exactly what I was looking for. previously I had not considered the "builtin" functions as "okay" to call from my application. this opens up a world of possibilities. thank you stijn
- Sun Jan 03, 2021 8:29 pm
- Forum: Development of MicroPython
- Topic: frozen modules - execution vs. import
- Replies: 3
- Views: 2321
frozen modules - execution vs. import
Hi everyone. I am trying to trigger execution of certain frozen python code (module members etc) from underlying C code. Thanks to some other posts on the forum (links at bottom) I've been able to: - execute the built-in print() function with my own arguments - execute the built in os.listdir() modu...
- Mon Mar 25, 2019 12:29 am
- Forum: Development of MicroPython
- Topic: Using Pointer to State in NLR Assembly
- Replies: 9
- Views: 6866
Re: Using Pointer to State in NLR Assembly
@pfalcon thanks, the first couple of bullet points there actually helped clarify why the default implementation should remain untouched. Those are some pretty strict guidelines for what is noticeable -- but it figures that you've got to be selective when advancing such a popular project :D In the me...
- Fri Mar 22, 2019 3:40 am
- Forum: General Discussion and Questions
- Topic: Is it possible to run micropython scripts loaded from hTTP?
- Replies: 4
- Views: 2967
Re: Is it possible to run micropython scripts loaded from hTTP?
Hi andrews, This sort of thing is certainly possible - particularly if you already know how you will retrieve the file via HTTP. There is an example of how to embed MicroPython in a C project here: https://github.com/micropython/micropython/tree/master/examples/embedding In addition to the 'mp_lexer...
- Wed Mar 20, 2019 7:00 pm
- Forum: General Discussion and Questions
- Topic: Developing PCB layout
- Replies: 6
- Views: 5696
Re: Developing PCB layout
dhylands is right about the strategy for adapting existing designs - think about why the components exist in the schematic. In your example with the 200 ohm resistor you'd have to look at the context of its use and think about what would change with the different value. Therefore it would be good to...