Giter VIP home page Giter VIP logo

Comments (1)

AlexAlexFr avatar AlexAlexFr commented on August 18, 2024

added main.c file. Using is really easy, your just need Initialize the component in the beginning and then use DisplayDigit function for 1 particular digit or DisplayAll for display of 4 digits.
Tricky point is about getting 7segm code. Use function 7SgmDigit to convert from numerical value to 7 segment code to display. You push the numerical value, for example in Hex and you get back the 7 segm Code.

For Example you want to display 0E on screen and you use the variable char a=0x0E. So you need to obtain 0 and E 7 segm codes. Use the mask to obtain each digit: a&0x0F for E and (a>>4)&0x0F for 0. and then pass this values throuh 7SgmDigit function to obtain the codes for display.

from tm1637-driver.

Related Issues (1)

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.