avatarAudrey Stimson

Free AI web copilot to create summaries, insights and extended knowledge, download it at here

3033

Abstract

<div id="f6c3" class="link-block">
      <a href="https://code.visualstudio.com/download">
        <div>
          <div>
            <h2>Download Visual Studio Code - Mac, Linux, Windows</h2>
            <div><h3>Visual Studio Code is free and available on your favorite platform - Linux, macOS, and Windows. Download Visual Studio…</h3></div>
            <div><p>code.visualstudio.com</p></div>
          </div>
          <div>
            <div style="background-image: url(https://miro.readmedium.com/v2/resize:fit:320/0*mqoSwSyVTD0GaKF5)"></div>
          </div>
        </div>
      </a>
    </div><p id="8811"><b>Step 2: Flash your Pi Pico or Pico W with the latest MicroPython firmware</b></p><p id="4f4e">Head to the official download page of MicroPython’s UF2 file:</p><div id="4994" class="link-block">
      <a href="https://micropython.org/download/RPI_PICO/">
        <div>
          <div>
            <h2>MicroPython - Python for microcontrollers</h2>
            <div><h3>MicroPython is a lean and efficient implementation of the Python 3 programming language that includes a small subset of…</h3></div>
            <div><p>micropython.org</p></div>
          </div>
          <div>
            <div style="background-image: url(https://miro.readmedium.com/v2/resize:fit:320/)"></div>
          </div>
        </div>
      </a>
    </div><p id="a896">Then download the latest version you see on the page.</p><p id="b851">The specific instructions on how to use this file to flash MicroPython on your Pi Pico or Pico W are found on the official Raspberry Pi page:</p><div id="7797" class="link-block">
      <a href="https://www.raspberrypi.com/documentation/microcontrollers/micropython.html">
        <div>
          <div>
            <h2>Raspberry Pi Documentation - MicroPython</h2>
            <div><h3>The official documentation for Raspberry Pi computers and microcontrollers</h3></div>
            <div><p>www.raspberrypi.com</p></div>
          </div>
          <div>
            <div style="background-image: url(https://miro.readmedium.com/v2/resize:fit:320/0*4ekTw6kncOzJUnkj)"></div>
          </div>
        </div>
      </a>
    </div><p id="7add"><b>Step 3: Install the MicroPico extension in VS Code</b></p><p id="6adf">Now open VS Code and switch to the ‘Extensions’ tab like so:</p><figure id="74be"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*Vd06nbtJTaW_rHWMuXAHFQ.png"><figcaption></figcaption></figure><p id="374d">Now type “Micropico” in the search field. You should then see the following extension:</p><figure id="eb95"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*RQvJfKROFaqn-T0yOqDrpA.png"><figcaption></figcaption></figure><p id="a65a">Go ahead and install this extension.</p><p id="d5bd"><b>Step 4: Start a project by configuring your directory</b></p><p id="1cd7">Set up your desired folde

Options

r/workspace for your project, and open it in VS Code. Once it is opened, open up the Command Palette in VS Code like so:</p><p id="c759">For Windows:</p><p id="d9a2"><b><i>Ctrl + Shift + P</i></b></p><p id="bdb1">For Mac:</p><p id="8440"><b><i>Cmd + Shift + P</i></b></p><p id="22ef">By doing so, we would see an option as “Configure project” in a drop-down list like so:</p><figure id="6853"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*hEsmbSGjO4W6qXAaV_iBkg.png"><figcaption></figcaption></figure><p id="9df1">Click on “Configure project”</p><p id="d2d9"><b>Step 6: Test by uploading example project</b></p><p id="e691">Let’s make sure we have set everything up correctly by running a test project. We will blink the onboard LED on the Pi Pico / Pico W.</p><p id="3e22">Make a new file and name it “main.py”. We will write code onto this file and upload it.</p><p id="c653">If you have the Pi Pico, copy and paste the following code:</p><div id="dbb5"><pre><span class="hljs-keyword">from</span> machine <span class="hljs-keyword">import</span> Pin <span class="hljs-keyword">import</span> utime

led_onboard = Pin(<span class="hljs-number">25</span>, Pin.OUT)

<span class="hljs-keyword">while</span> <span class="hljs-literal">True</span>:

led_onboard.toggle() utime.sleep(<span class="hljs-number">1</span>)</pre></div><p id="59f5">If you instead have the Pico W, copy and paste the following code:</p><div id="e3cc"><pre><span class="hljs-keyword">from</span> machine <span class="hljs-keyword">import</span> Pin <span class="hljs-keyword">import</span> utime

led_onboard = Pin(<span class="hljs-string">"LED"</span>, Pin.OUT)

<span class="hljs-keyword">while</span> <span class="hljs-literal">True</span>:

led_onboard.toggle() utime.sleep(<span class="hljs-number">1</span>)</pre></div><p id="7cd5">Now open up the command palette again (Ctrl/Cmd + Shift + P) and select “Upload project to Pico”. Then click the “Run” button on the bottom of VS Code like so:</p><figure id="197a"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*PWqElxT-TlDM4tGSQhQ4Iw.png"><figcaption></figcaption></figure><p id="3376">And that’s it! You will now see the onboard LED blink with a 1 second interval on your Raspberry Pi Pico or Pico W.</p><p id="d57a">Once you hit “Run”, a terminal in VS Code will pop up and act as a space to print outputs or take inputs, just like how you see one in Thonny IDE.</p><p id="9066">Additionally, you have the option to view the pinouts of the Pi Pico with the “Show Pico Pin Map” command. After clicking on it and selecting either “Pico (H)” or “Pico W (H)”, you would see the following (Pico (H)):</p><figure id="513c"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*WYfHtQSKpO8IaKpArBtPuA.png"><figcaption></figcaption></figure><p id="85f3">If you follow all these steps correctly, there should not be any errors or problems. In case you face issues, please comment down below and I will help you out as soon as I can.</p></article></body>

How A City Restored My Love for America

Thank you Los Angeles!

Photo by author.

The young girl in the pink puff jacket was sitting on a small four-wheeled plastic car low to the ground. Her bright white teeth were expressing something big, an enthusiasm only matched by her shuffling feet kicking her body into motion.

She spun and spun in circles around her parents sitting on the curb of Martin Luther King Boulevard in Los Angeles.

Her tight cornrows on her head were like small exclamation marks guiding her enthusiasm to be part of a bicycle festival on this sunny day.

I was deep in the heart of South Los Angeles with my husband and thousands of other bicycle enthusiasts.

It was Ciclavia, the bimonthly festival of community, and human-powered mobility, in arguably the most car-centric city in America, Los Angeles.

Screenshot of Ciclavia Map — South Los Angeles

Each Ciclavia is in another part of LA.

It started a few years back and has grown to become more than a bike fest. It is a coming together for a greater good; family, community, and the city.

I had plenty of other things to do this December Sunday, Christmas shopping, house cleaning, and laundry after my almost three-week-long trip across the country for a documentary I was working on about democracy in America.

But there was something about stepping back into Los Angeles that I needed, it was like a magnet with a force I couldn’t resist. Something inside me said, go. This city of angels had beckoned me to come back and be a part of the America I love.

America today looked black, brown, peanut butter, carmel, vanilla, and butterscotch. It smelled like patchouli, lavender, rose and honeysuckle. It tasted of kimchi, pico de gallo, smokey barbecue sauce, and papusas.

It felt cozy and soft like the December baby blue sky of southern California. It sounded like syncopated electronic beats, smooth R&B, and ranchero brass. It came in various shapes and sizes of all the people who came to this country to make it their home.

As we rode down the streets on our small Brompton folding bikes, the cult-like English commuting rides, we passed all kinds of bicyclists.

There were people on lowriders. Their chromed-out Schwinns with the high handlebars looked like a cross between a tricked-out Harley and a bouncing 1960 Chev Impala. The crew on their rides wore blue LA Dodger jerseys and black Raiders regalia, and purple and gold LA Lakers hoodies.

Alongside them was a large man on an electric RAD bike pulling a trailer with a boombox the size of a small refrigerator playing old Tupak Shakur tunes. The words, “California” bounced off the craftsman houses around Leimert Park and right back into the heart of all the riders near him, like a unified celebration of the word and this place.

This is what I came for, my city, my world, my America.

Yes, Los Angeles is a tough place, like all American cities. LA is where hard work clashes with the inequities of American society which often results in despair, crime, and most of all homelessness. LA has had really bad times but for me, it is a microcosm of the country itself. It tries, it keeps going, and most of all it feels welcoming.

When I recently ventured out into this country to find out how people perceived the state of democracy, I was anxious.

I love this country and it pains me to see it splitting. I wanted to blame something, someone. But who? Was it even good to point fingers? Wasn’t that what the problem was? I was tired of the “othering”. I wanted to reach out and be with them, all of America.

There was the good, the curious, and even the ugly.

What I did see was good people trying. I may not agree with everyone but everyone was trying. In their way, they were trying to make sense of it, just like I was.

2 photos by author.

I saw young people in Ohio working to get other young people to supercharge their civic engagement by busing people to the polls for elections in early November.

Photo by author.

I saw ironworkers in Kentucky learning their trade and proud to build American bridges and skyscrapers excited about every weld and rivet in every piece of steel they touched or climbed. The cowboys of the sky couldn’t contain their excitement as they smiled through the interviews. They embodied the best of made-in-America.

Photo by author.

I met small business owners and cowboys in Wyoming struggling to hold together a Republican party that believes in law and justice and a two-party system.

I felt the cowboy’s pain as he talked about long horse rides into the mountains and his dreams of the future where he could still sing his patriotic songs and feel proud to be an American.

And I saw people in Tennessee who felt the only way forward in this country was to blindly follow a single man as if he was a messiah that will lift them up out the hills and hollows.

I listened to their songs about love, and God, and family and didn’t understand how they were not like me?

I also saw hate in the woods on a lonely gravel road somewhere in the hills of Tennessee. It was hanging next to an American flag but separate, as if to say, Yes America, but there is something else, a darker force.

It was the flag of hate and separation, the Confederate battle flag with the words, “In God We Trust,”.

Photos by author.

It stings my soul to remember that image. The 6-mile bicycle route in Los Angeles today does everything to connect people and places. Hate was not on the streets today. It's like a distant nightmare playing out somewhere else, on headlines, and social media feeds.

While riding through Los Angeles today I saw so much.

On one block I see a woman handing out pulled pork sandwiches she was making on a grill the size of a European city car, she smiled as she shared her feast.

Just a few miles down there was a group of old Asian men in lawn chairs smiling and nodding.

On the last mile, there was a barber who had his doors wide open and was playing “cumbia” music and waving at the family who had decorated their bikes in gold, silver, red and green Christmas tinsel. Love was in the air today in Los Angeles.

My day at the Ciclavia was a cleansing. It washed away all the offensive symbols I saw in other places. I needed it. I needed to see the freshly painted black and white Dr King mural waving back at me. I needed to see the faces of diversity that make Los Angeles and America so special. I needed to be with my Americans who believe in togetherness and community.

Thank you Los Angeles. I needed you today.

Audrey Stimson is a writer living in a green house with her husband and a dog. When she is not writing essays and short stories she works as a television news producer. She is currently working on a forthcoming book about a bicycle trip across the United States. More about Audrey on her website .

America
Culture
Diversity
Politics
Travel
Recommended from ReadMedium