Raspberry Pi Pico W LESSON 70: Example of Cleanly Exiting Dual Core Program in MicroPython

Поділитися
Вставка
  • Опубліковано 5 жов 2024
  • You guys can help me out over at Patreon, and that will help me keep my gear updated, and help me keep this quality content coming:
    / paulmcwhorter
    In this class we will be using the Sunfounder Raspberry Pi Pico W Keppler Kit. It will make things a lot easier if we are working on identical hardware. the link below is to amazon, and is for the identical hardware I will be using in this entire class.
    amzn.to/3ubMRs1
    In this video, I will show you how to use both cores on the Raspberry Pi Pico W with threading. I show how threading can be used to use both Pi Pico Cores. I will demonstrate this with a an example where a red LED blinks while the servo moves counter-clockwise, and a green LED blinks while the servo moves clockwise. I will then show how to cleanly exit the program where the thread cleanly terminates before the main program stops. This gets away from many of the problems people are having with dual cores and threading. For the example in this lesson we demonstrate controlling a servo with a pushbutton toggle switch.
    [Disclosure of Material Connection: I am a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to amazon.com. ]
    #raspberrypipicow
    #micropython
    #dualcore
  • Наука та технологія

КОМЕНТАРІ • 13

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

    I folded up as well on this one, Paul. I am looking forward once again, to see your solution. Great content!

  • @nigelworwood8530
    @nigelworwood8530 6 місяців тому +3

    Looking forward to this. I made a mistake of saving a programme as main.py
    I wanted alter a section of code but every time I "plugged it in" the "second" core ran and I couldn't get in to change values I wanted. I am a beginner ... Did I need to tell you that?

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

    Very goid ecolanation of the code❤.

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

    I've posted a video for this lesson (and also one for lesson 69) but I can't include a link in this comment because you-know-who will delete it.😿
    You'll have to find it yourself if you're interested.

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

    👍👍👍

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

    I folded like a cheap Walmart lawnchair...No excuses.

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

    Homework submitted ua-cam.com/video/s3o9VV-WGzA/v-deo.html
    Thanks Paul for all you do.

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

    great lesson as always, here is my Homework for lesson 70 :- ua-cam.com/video/QfXFxrH0gc0/v-deo.html

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

    I folded up like a cheap lawnchair.

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

      I got pretty far but the latching logic was giving me fits. Thanks for the explaination