3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

Reading Switches with ATtiny2313

Step 9Conclusion

Conclusion
So that's it! Now you know how to use switches to control execution of your program by reading them in and selecting an action based on the switch setting. You also know how to create a beep tone and have learned some debug strategy as well.

If you'd like to test your understanding, try modifying the last program to beep at a high pitch if even, beep a low note if odd, and blink the LED continuously if there is no change in the switches.You might want to look back at the section on debugging for help.
« Previous StepDownload PDFView All StepsNext Step »

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
41
Followers
8
Author:doctek