How to Use Asyncio in MicroPython (Raspberry Pi Pico) | Digi-Key Electronics

  Рет қаралды 46,159

DigiKey

DigiKey

Күн бұрын

Пікірлер: 28
@heel57
@heel57 8 ай бұрын
i like the stile of "no gossip" at the start.
@oliverjepp3113
@oliverjepp3113 2 ай бұрын
we need to give this man as community sourecd nobel pride for all his videos. The Millennial Coding Bill Nye with a Bow Tie
@Yes-Man
@Yes-Man 2 жыл бұрын
Holy ... you're the first person I found who actually knows what he's doing. I found so many blogs and tutorials out there just ignoring all the issues around multithreading while going about and writing "maker" code. Thanks for the clear instructions, although I already figured that stuff out by trial and error.
@skf957
@skf957 3 жыл бұрын
It amazes me that you always manage to present what are pretty complicated subjects in an entertaining and accessible way. Please don't stop what you are doing.
@zhouyu9971
@zhouyu9971 2 жыл бұрын
If any university runs this topic and hires this guy as a lecturer I’m pretty sure it’s gonna succeed! Not mention many other KZbinr, he’s actually teaching way better than many professional teachers
@OmidAtaollahi
@OmidAtaollahi 9 ай бұрын
asyncio is a great feature & you teach it very well❤
@johndeluca230
@johndeluca230 Жыл бұрын
This is exactly what I was looking for as I'm pushing Pico's potential. Thanks!
@penttiitkonen9765
@penttiitkonen9765 3 жыл бұрын
Great Shawn! Good thing to publish an MicroPython example how to run two things at the same time. The example could be called a asynchronous hello world.
@Factory400
@Factory400 3 жыл бұрын
Great presentation of the topic! I wish this video happened a year ago when I first started learning about uasyncio. :-)
@cprogrck
@cprogrck 3 жыл бұрын
I highly recommend that folks implement PIOs on RP2040 before trying to do async stuff.
@billmoran3812
@billmoran3812 3 жыл бұрын
This is the answer to a question that has been bugging me for months. It’s going to take a few iterations until it all sinks in, but at least I have a place to start. It seems unfortunate that there are two cores in the 2040 but we can only access one right now. I’m hoping Micropython can catch up to utilize both cores efficiently.
@samneggs1
@samneggs1 3 жыл бұрын
I've been able to get the second core working in MicroPython with some success. kzbin.info/www/bejne/bqnNnH6PlKl3jKs As I mention in the description of the linked video continuous memory allocation will crash the second core, both cores actually. My main test is to temporarily add print(gc.mem_free()) which has to be stable. This means float point and many functions can't be used or need to be cached. For example I want to put a two digit number on a screen. The text() function I'm using requires a string. str() allocates memory so instead of this: text(str(number)) I had to do this: s=['0','1','2','3','4','5','6','7','8','9'] # this is outside the main loop s1=s[number//10] s2=s[number%10] text(s1) text(s2)
@HopWorksET
@HopWorksET 2 жыл бұрын
Another terrific video!! Very articulate, very easy to follow and understand. And you just happen to be covering the more complicated subjects I want to work with! Bravo! Thanks for your contribution and please continue, especially with the Pico!!!
@lindsayf9230
@lindsayf9230 3 жыл бұрын
Clear, detailed and practical! Thanks!
@michaeldobeck7261
@michaeldobeck7261 3 жыл бұрын
Excellent!
@georgii2012
@georgii2012 2 жыл бұрын
Спасибо! Очень Помогло!
@sonnybalut
@sonnybalut 3 жыл бұрын
Thank you for the tutorial.
@SoggyCashew
@SoggyCashew 3 жыл бұрын
In your example how would you stop the continuous loop of the LED using a button?
@alanb76
@alanb76 Жыл бұрын
Good video!
@BlueDolphinBlues
@BlueDolphinBlues 6 ай бұрын
I'm trying to figure out where to get the cancel() method I need to cancel an async task then start a new one in it's place.
@sudheerkumar5966
@sudheerkumar5966 3 жыл бұрын
Very good
@sammlabra519
@sammlabra519 Жыл бұрын
How can I press the button so it activates/deactivates led ? each action being a different task? Thanks. 🙂
@marinehm
@marinehm Жыл бұрын
I get an error: 'Pin' object has no attribute 'toggle'
@deekaneable
@deekaneable Жыл бұрын
pull a tucker carlson and ditch the bow
@naasikhendricks1501
@naasikhendricks1501 2 жыл бұрын
I am trying to find details on .mpy and viper to speed up micropython. Using windows and thonny. Kiss.
@AndersJackson
@AndersJackson 2 жыл бұрын
Just to say, Erlang is way easier to do this. And it uses way less memory for each tasks.
@kippie80
@kippie80 2 жыл бұрын
Ahh! what happened to you guys? A whole genetation of people that pronounce 'button' as butun.
They Chose Kindness Over Abuse in Their Team #shorts
00:20
I migliori trucchetti di Fabiosa
Рет қаралды 12 МЛН
За кого болели?😂
00:18
МЯТНАЯ ФАНТА
Рет қаралды 2,9 МЛН
Raspberry Pi  Pico PIO  - 8 Little Processors You Can Program
31:55
Gary Explains
Рет қаралды 93 М.
Writing fast and efficient MicroPython
31:42
PyCon AU
Рет қаралды 69 М.
Beginners Guide to I2C on the Raspberry Pi Pico (BNO055 IMU Example)
16:57
Learn Embedded Systems
Рет қаралды 77 М.
Every Tool is a Hammer [Maker Update] | Maker.io
7:56
DigiKey
Рет қаралды 1,7 М.