You're genious, very clever ideas. 13:15 i'm not understand at this moment using "wrap". What happened if you remove "wrap" command from end of sketch? And where is "wrap_target"? Thank you.
@LifewithDavid1
Жыл бұрын
I wouldn't have needed "wrap" in this case. PIO programs will automatically wrap at the end of the program by default. Wrap target is at the start of the program by default.
@bitogre
Жыл бұрын
You did not have to set and wait on IRQ in the PIO program. You could have instead had your interrupt be based on FIFO not empty and the interrupt automatically triggered when velocity is added to the FIFO. No need to have a PIO instruction to set the IRQ. Just means you need to make sure that you read from the FIFO until empty before returning from the interrupt.
@LifewithDavid1
Жыл бұрын
That should work also (I think). I'm digging into PIO interrupts more and the MicroPython SDK is not as robust in handling them as the C.C++ SDK. I did have an ulterior motive for using a separate interrupt for future expansion. Thanks for the comment; I'll add that to my toolkit. Remember what Maslow said: "When all you have is a hammer, everything looks like a nail".
@flywittzbeats4008
Жыл бұрын
you're just so casual about being this brilliant hahaha. Thank you so so much for these video. I am a complete beginner and would love to hear more about your background in engineering sometime! Thanks again, David!
@LifewithDavid1
Жыл бұрын
Thanks for watching! I have a few videos that talks a little about how I got interested in this: kzitem.info/news/bejne/0654vGePgn6SlII kzitem.info/news/bejne/o5mnuKp-pKBeeHY kzitem.info/news/bejne/kYlvp5OZbIachaQ kzitem.info/news/bejne/xJ6ou4adq52VZ2k
@KeithDennison
Жыл бұрын
I have really enjoyed watching the PIO series. Thank you for putting the time and effort into making these videos. Have a Merry Christmas.
@LifewithDavid1
Жыл бұрын
Glad you like them! Merry Christmas and thanks for watching!
@Guustaaf
Жыл бұрын
Good stuff David! Merry Christmas.
@LifewithDavid1
Жыл бұрын
Thanks, you too!
@wktodd
Жыл бұрын
Excellent presentation David. You are the 'goto' source for pico PIO Merry Christmas.
@LifewithDavid1
Жыл бұрын
I really enjoy making these videos. Thanks for watching!
@Marc_Wolfe
Жыл бұрын
Well, here's more engine management related logic. Reason I watched this one, I knew what it'd take in code to implement MIDI velocity. I was wondering about tieing together PIOs like that. I need to look more into waits, breaks, and jumps. Also curious about more info related to PIO input and output shift registers; can't mistime a read or I'd end up with a multiple of the value I'm going for, really bad.
@LifewithDavid1
Жыл бұрын
My next video is all about interrupts. (It will actually be two videos.) It took a while to research; but hopefully it will be helpful. I'm hoping it's out in the next week or so.
@Guustaaf
Жыл бұрын
How would you use a PIO (and a chip) to read an x number of rotary encoders?
@LifewithDavid1
Жыл бұрын
That's a good question. I'll have to look into that. Thanks for the idea; and thanks for watching!
@Guustaaf
Жыл бұрын
I am honored to have set the brilliant gears in motion :)
@grigoro2120
Жыл бұрын
eisai poli meraklis re david
@LifewithDavid1
Жыл бұрын
Ευχαριστώ!
@romiolover6852
Жыл бұрын
nice
@LifewithDavid1
Жыл бұрын
Thanks Hope it's useful!
@jyvben1520
Жыл бұрын
pio still way over my head, but the combo with micropython shows the power of the pico, great work. if the midi is sent over usb to a pc playing the notes then using several picos could work. a mini orchestra could all use the same usb , drum / piano / triangle ...
@LifewithDavid1
Жыл бұрын
Thanks for watching. In fact, one Pico could act as a mini orchestra. It does by acting as a MIDI sequencer sending MIDI information to various channels on a timed basis. In fact, the closing Christmas music comes from a MIDI file played on the Tyros. In that case, the Tyros acted as the MIDI sequencer; but I would like to get the Pico to do the same thing in the future.
@vojtechmarsal8576
Жыл бұрын
Thank you so much David you saved me quite bit of time i would have to spend reading all the docs. It is rather rare to stumble upon someone this knowledgeable and capable of producing content at this quality.
Пікірлер: 25