Giter Club home page Giter Club logo

sevseg's Introduction

This library allows an Arduino to easily display numbers and characters on a 4 digit 7-segment display without a separate 7-segment display controller. It works for any digital pin arrangement, common anode and common cathode displays. It also has character support including letters A-F and many symbols.

Hardware Setup

4 digit 7 segment displays use 12 digital pins. You may need more pins if your display has colons or apostrophes.

There are 4 digit pins and 8 segment pins. Digit pins are connected to the cathodes for common cathode displays, or anodes for common anode displays. 8 pins control the individual segments (seven segments plus the decimal point).

Connect the four digit pins with four limiting resistors in series to any digital or analog pins. Connect the eight segment pins to any digital or analog pins (no limiting resistors needed). See the SevSeg example for more connection information.

Repository Contents

  • /examples - Arduino example sketches
  • /src - Source files for Arduino library

Documentation

License Information

Original Library by Dean Reading ([email protected]: http://arduino.cc/playground/Main/SevenSegmentLibrary), 2012

Improvements by Nathan Seidle, 2012

All code is open source so please feel free to do anything you want with it; you buy me a beer if you use this and we meet someday (Beerware license).

sevseg's People

Contributors

nseidle avatar ocornu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sevseg's Issues

Feature request: Hold while turning for faster increment/decrement

Hello,
Sometimes it's necessary to use a rotary encoder to enter fairly large numbers. Although acceleration helps, when the numbers get past 1000, it still takes forever. I've seen a feature (on the Nord Modular) where the values can be incremented or decremented faster if the rotary encoder's switch is pressed while turning the encoder. This would be a nice new feature to have.

Here's a hack of ClickEncoder.php, just to illustrate my request:

if (val < 0) {
  r -= 1 + accel;
  if(button == Held) r -= 100;
}
else if (val > 0) {
  r += 1 + accel;
  if(button == Held) r += 100;
}

Thanks for the great library,
Bret

shift register

This library is awesome, I have used it in the past but its hard to reserve 12 pins in an Arduino project for a display when you have a limit of 20, if possible could you add the ability to use a single shift register for the segment pins? I have been having trouble finding something to do this.

Thank you

Support for odd configurations

Hello

I'm working on a project using four large 7-segment displays, these displays requires 22V, and I use 4 MOSFET's on the plus side, an a 8 bit darlignton array at the ground side of the displays.

This setup requires that both the display pin, and the segment pin both need to be high.

Is it possible to add one new mode to the library, one that sets both display pin and segment pin to high when they are active?

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.