The following are some questions related to this project along with some suggested code challenges. The idea is to provoke thought, test your understanding, and get you coding!

While the sketches provided in this guide work, there is room for improvement and additional features. Have fun playing with the provided code to see what you can do with it.

Questions

  • Should the values for repeats, tone, and duration be refactored?
  • indicateYes() and indicateNo() are down to only one line, should they be refactored?

Code Challenges

  • Try changing the color in the #define to prove that is works.
  • Add a third indication that happens when both buttons are pressed at the same time.
  • Use the slide switch to set different modes for the indications.

This guide was first published on Jan 23, 2017. It was last updated on Jan 23, 2017.

This page (Questions and Code Challenges) was last updated on Jan 22, 2017.

Text editor powered by tinymce.