Skip to content

pixelEDI/attiny_pocketdice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

General info

Code

  • first we declare all the LED pins, some variables for a "blink without delay" and an array for all the LEDs.
  • the letsGetStarted function shows us at the beginning that all the LEDs are working properly. In this case we work with delays.
  • in the function diceToLed we combine the correct LEDs with the value of the dice so that we get the usual appearance.
  • the function rollTheDice shows us a small frequency of flickering through the dice values until the rolled value is displayed
  • for a true random value we work with randomSeed, which is connected to an unused pin.
  • in the loop we debounce the button and roll the dice with blink without delay.

Hardware

  • The hardware for this project is very simple. It runs on an ATtiny24.
  • We added 100 Ω resistors for the 3mm LEDs and a 10k Ω resistor for the push button.

Verdrahtung

3D Case

Get the Case: Thingiverse

You like it? Then I would be very happy if you treat me to a coffee on ko-fi.com/pixeledi

About

ATtiny project for an electronic pocket dice

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages