Search icon
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
MicroPython Cookbook

You're reading from  MicroPython Cookbook

Product type Book
Published in May 2019
Publisher Packt
ISBN-13 9781838649951
Pages 452 pages
Edition 1st Edition
Languages
Author (1):
Marwan Alsabbagh Marwan Alsabbagh
Profile icon Marwan Alsabbagh

Table of Contents (17) Chapters

Preface 1. Getting started with MicroPython 2. Controlling LEDs 3. Creating Sound and Music 4. Interacting with Buttons 5. Reading Sensor Data 6. Button Bash Game 7. Fruity Tunes 8. Let's Move It, Move It 9. Coding on the micro:bit 10. Controlling the ESP8266 11. Interacting with the Filesystem 12. Networking 13. Interacting with the Adafruit FeatherWing OLED 14. Building an Internet of Things (IoT) Weather Machine 15. Coding on the Adafruit HalloWing Microcontroller 16. Other Books You May Enjoy

What this book covers

Chapter 1, Getting Started with MicroPython, introduces the Adafruit Circuit Playground Express microcontroller and teaches the core skills for using MicroPython on this hardware.

Chapter 2, Controlling LEDs, covers methods of controlling NeoPixel LEDs, the color of the lights, and how to create animated light shows by controlling the timing of light changes on the board.

Chapter 3, Creating Sound and Music, discusses methods of how to make sounds and playmusic on the Adafruit Circuit Playground Express. Topics such as making the board beep at a certain sound frequency and playing music files using the WAV file format and the board's built-in speakers will be covered.

Chapter 4, Interacting with Buttons, shows methods of interacting with the buttons and touch pads that come on board with the Adafruit Circuit Playground Express. The basics of detecting when a button is pressed or not, as well as advanced topics, such as fine tuning the touch threshold of the capacitive touch pads, will be discussed.

Chapter 5, Reading Sensor Data, introduces methods of reading sensor data from a number of different types of sensors, such as temperature, light, and motion sensors.

Chapter 6, Button Bash Game, guides us to create a two-player game called Button Bash that you can play directly on the Circuit Playground Express using the push buttons, NeoPixels, and built-in speakers.

Chapter 7, Fruity Tunes, explains how to create a musical instrument with the Adafruit Circuit Playground Express and some bananas. Touchpads will be used to interact with the bananas and play different musical sounds each time you touch a different banana.

Chapter 8, Let's Move It, Move It, introduces the Adafruit CRICKIT hardware add-on that will help control motors and servos through our Python scripts; in particular, their speed, rotational direction, and angle will be controlled through these scripts.

Chapter 9, Coding on the micro:bit, covers methods of interacting with the micro:bit platform. How to control its LED grid display and interact with the buttons that come on board will be discussed.

Chapter 10, Controlling the ESP8266, introduces the Adafruit Feather HUZZAH ESP8266 microcontroller, and discusses its features and strengths compared to other microcontrollers. Topics such as connecting to Wi-Fi networks, using the WebREPL, and transferring files over Wi-Fi will be covered.

Chapter 11, Interacting with the Filesystem, discusses a number of topics related to the operating system (OS), such as listing files, removing files, creating directories, and calculating disk usage.

Chapter 12, Networking, discusses how to perform a number of different network operations, such as DNS lookups, implementing an HTTP client, and HTTP servers.

Chapter 13, Interacting with the Adafruit FeatherWing OLED, introduces the Adafruit FeatherWing OLED hardware add-on, which can be attached to the ESP8266 to add a display to an internet-connected microcontroller, to display display text graphics and interact with the user using the included three hardware push buttons.

Chapter 14, Building an IoT Weather Machine, explains how to create an IoT device that will retrieve weather data and show it to the user at the press of a button from the IoT device itself.

Chapter 15, Coding on the Adafruit HalloWing, introduces the Adafruit HalloWing microcontroller, which comes with a 128x128 full-color Thin-Film Transistor (TFT) display built into it, providing the ability to display rich graphical images on the microcontroller.

lock icon The rest of the chapter is locked
Next Chapter arrow right
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}