Raspberry Pi Pico W LESSON 71: Allow Thread to Complete Task Before Termination

Поділитися
Вставка

КОМЕНТАРІ • 17

  • @larryplatzek9017
    @larryplatzek9017 4 місяці тому +2

    This is a good lesson and easily understood and thus gives all another tool to use!

  • @justmc62
    @justmc62 9 днів тому

    Thanks Paul .. Love the direction we are going in .

  • @craigflorin1071
    @craigflorin1071 3 місяці тому

    Good lesson. I failed the homework, but I did figure out where in the program I needed to insert some type of code. With this failure, I am motivated to started looking at the library codes to lead about pass and baton before I get it spoon fed to me. Thank you. I am learning, I am retaining knowledge and I am more motivated with each lesson.

  • @shawnlowe1392
    @shawnlowe1392 4 місяці тому +1

    Great video Paul! I could not tackle this lessons homework, as I had homework for my university class to do, but those are very subtle methods to cleanly terminate the program. The while loop is so simple....I didn't even think it was possible lol. Thanks

    • @shawnlowe1392
      @shawnlowe1392 4 місяці тому

      also where can i find documentation on the lock attribute of _thread?

  • @nigelworwood8530
    @nigelworwood8530 4 місяці тому

    Now I understand where my program was crashing. And ... with a bit of time will have both cores operating and stopping cleanly. Thanks

  • @edSabio572
    @edSabio572 4 місяці тому

    Thanks Paul! I just knew you had another way of releasing the thread which I had not seen before. I was trying delays and now I know why it is unpredictable and not practical/efficient... : (
    In any case, taking this class is valuable and I'm looking forward to next week.

  • @pralaymajumdar1206
    @pralaymajumdar1206 3 місяці тому

    Extraordinary.. ❤

  • @princekumar146
    @princekumar146 4 місяці тому

    Please come up with a tutorial series on F28379D delfino launchpad by texas instruments.

  • @pralaymajumdar1206
    @pralaymajumdar1206 4 місяці тому

    ❤.. From India.

  • @leeg.1402
    @leeg.1402 4 місяці тому

    Thanks for another great lesson. Question: What if you wanted the (Servo) thread to stop immediately and terminate the thread on the kybd interrupt (I'm thinking along the lines of an "Emergency Stop" button)?

    • @paulmcwhorter
      @paulmcwhorter  4 місяці тому +2

      You need to get the running flag inside the for loop, and then if running goes to FALSE or 0, then break out of the for loop.

  • @taurus548
    @taurus548 4 місяці тому

    Powerful😀

  • @larryb6759
    @larryb6759 4 місяці тому

    Paul, I have had my programing Pico W for a few days working fine . Then we had a storm and lost power and when I reconnected power. I had to reset the PICO W. It is still running in Thonny, not set as main.py without any battery backup other than the computer. Is there some way to stop the cores with a power loss?

  • @patrickfox-roberts7528
    @patrickfox-roberts7528 4 місяці тому

    👍👍