Importing Libraries | Raspberry Pi Pico Workshop: Chapter 2.8
🔗 *The full course* : _https://core-electronics.com.au/courses/raspberry-pi-pico-workshop/_ In this video, we take a look at *libraries* and how to use them. We take a look at *standard libraries* in *MicroPython*, how to import *external libraries* in *Thonny*, and we go through an example of finding and using an external *servo library* to drive a servo. 🔧🔨🧰 Hardware featured in this guide: *Pico:* _https://core-electronics.com.au/catalog/product/view/sku/CE07564_ *LED Pack:* _https://core-electronics.com.au/catalog/product/view/sku/CE08576_ *Breadboard:* _https://core-electronics.com.au/catalog/product/view/sku/CE07065_ *Jumper Wires:* _https://core-electronics.com.au/catalog/product/view/sku/CE08574_ *Button Pack:* _https://core-electronics.com.au/catalog/product/view/sku/CE08583_ *Potentiometer:* _https://core-electronics.com.au/catalog/product/view/sku/CE09096_ 💡❓ If you have any questions about this content or want to share a project you're working on head over to our *maker forum:* _http://coreelec.io/forum_ 0:00 What are Libraries? 0:45 Standard Libraries in MicroPython 1:27 External Libraries 2:50 Installing an External Library in Thonny 4:00 Looking for Documentation 5:20 Plugging in the Servo 6:05 Adapting the Documentation Code 7:04 Importing a Library from a Python File 7:51 Import and From Keywords 9:27 3 Key Takeaways 🌏🦘 *Core Electronics* is located in the heart of Newcastle, Australia. We're powered by makers, for makers. Drop by if you are looking for: • *Raspberry Pi* _https://core-electronics.com.au/raspberry-pi.html_ • *Arduino* _https://core-electronics.com.au/arduino.html_ • *Sparkfun* _https://core-electronics.com.au/brands/sparkfun-australia_ • *Adafruit* _https://core-electronics.com.au/brands/adafruit-australia_ • *Pololu* _https://core-electronics.com.au/brands/pololu-australia_ • *DFRobot* _https://core-electronics.com.au/brands/dfrobot-australia_ The following trademarks are owned by *Core Electronics Pty Ltd:* "Core Electronics" and the Core Electronics logo "Makerverse" and the Makerverse logo "PiicoDev" and the PiicoDev logo "GlowBit" and the GlowBit logo
Download
0 formatsNo download links available.