NEW GUIDE: Circuit Playground Beep Beep
In the original Star Trek series, there are a couple of episodes that feature a severely disabled Captain Pike (former captain of the Enterprise) who is immobilized and can not speak. He can only communicate via a little light on the front of his wheel chair. It blinks (and beeps) once for “yes”, and twice for “no”.
We can create a similar yes/no functionality using our Circuit Playground. We can use the buttons to select “yes” or “no”. The speaker can provide the characteristic monotonic “beep”, and the NeoPixels can act like the light. In fact, the resulting program is pretty simple. However, it serves as a good way to introduce a fairly advanced coding topic – refactoring.
We will start with a fully functional program and then incrementally go through it and show how it can be “improved” by applying various refactoring techniques.
Ready to get started?
Good, let’s go.
See the full tutorial here!
Join 7,000+ makers on Adafruit’s Discord channels and be part of the community! http://adafru.it/discord
CircuitPython in 2018 – Python on Microcontrollers is here!
Have an amazing project to share? Join the SHOW-AND-TELL every Wednesday night at 7:30pm ET on Google+ Hangouts.
Join us every Wednesday night at 8pm ET for Ask an Engineer!
Follow Adafruit on Instagram for top secret new products, behinds the scenes and more https://www.instagram.com/adafruit/
Maker Business — The many, many manufacturing processes listed on Wikipedia
Wearables — A bevel illusion
Electronics — Blown transistor?
Biohacking — We are Wired to Exercise at a Moderate Pace
Python for Microcontrollers — Make It Move with Crickit!
Get the only spam-free daily newsletter about wearables, running a "maker business", electronic tips and more! Subscribe at AdafruitDaily.com
No comments yet.
Sorry, the comment form is closed at this time.