Giter Club home page Giter Club logo

attiny_pocketdice's Introduction

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

attiny_pocketdice's People

Contributors

pixeledi avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.