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

  • Why do you think it was necessary to call the setAccelRange() function in setup()? (hint: 1G = 9.8 m/s2)
  • Can you think of a way to cheat the dice? (hint: think about that seed)

Code Challenges

  • Come up with your own NeoPixel patterns for the dice face numbers.
  • Change the dice color.
  • Change the double tap to a single tap.
  • Can you turn the 6-sided die into a 10 sided die?

This guide was first published on Dec 16, 2016. It was last updated on Dec 16, 2016.

This page (Questions and Code Challenges) was last updated on Dec 08, 2016.

Text editor powered by tinymce.