Rolling the Digital Dice 🎲
Deborah wants to create a digital game dice using her Arduino board.
She connected 7 red LEDs to digital pins 2, 3, 4, 5, 6, 7, and 8 of her Arduino:
She started writing the code to display the different numbers on her dice, but got a little lost. Can you help her by completing the code?
The code should count the numbers starting from 1 and up to 6 by lighting the LEDs according to the standard dice pip pattern:
The code currently shows the number "1" by
Have questions? Feedback? Please share with us below: