GithubHelp home page GithubHelp logo

hamsadev / sevenseg Goto Github PK

View Code? Open in Web Editor NEW
5.0 1.0 0.0 2.59 MB

A library for setting up 7 segments as a multiplexer for all types of microcontrollers.

License: GNU General Public License v3.0

C 100.00%
7seg 7segment avr seven-segment seven-segments-display stm32

sevenseg's Introduction

sevenSeg

A library for setting up 7 segments as a multiplexer for all types of microcontrollers. This library is under development and currently works only on AVR microcontrollers.

  • putInt
  • putString
  • putFloat
  • Common Anode and Common Cathode support
  • multi instance support
  • auto refresh support

Demo

Tests

  • AVR (atmega16)
  • stm32F1
  • stm32F3
  • stm32F4
  • stm32F7

How to use

  • First, add the library to your project
  • include the seven_seg.h file
  • include "seven_seg_port.h" file

According to the number of seven segments and their number of digits, sevenSegRefreshIsr function should be called continuously. If the time interval is too short, the interrupt rate may exceed the task time and you will have a virtual loop and the performance will not be correct. And if the time interval is too long, you may encounter seven segment flashing. This function is responsible for keeping seven segments alive.

TODO: update readme

sevenseg's People

Contributors

hamsadev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

sevenseg's Issues

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.