Skip to content

Latest commit

 

History

History

05

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Dice

A 7-segment display is an array of seven individual LEDs that are arranged in such a way that the numbers from 0 to 9 can be rendered. E.g., considering the pinout diagram below, the digit "1" can be rendered by turning on segments "b" and "c" and all other segments off. Each LED should have its own resistor to avoid burnout. Connecting each of the seven LEDs to a different pin of the Arduino allows to render different numbers. Sketch DiceSimple demonstrates a simple electronic dice. Pushing the button will cycle very quickly through the numbers 1 to 6. Releasing the button will stop the cycling. Though technically deterministic, the limits of human perception and reaction time make a behavior that is, for all intents and purposes, random. Sketch Dice is a more elaborate version that uses some animations for visual effects.