Coder Social home page Coder Social logo

displayled_custom's Introduction

Manage Custom 7 segment Display using leds

Using this library for Arduino, you will be able to manage a 7-segment display created using LEDs or WS2812 LED strips. If you have built a 7-segment display for example with LED strips, you can define a series of strings that contain the sequence of LEDs for each segment and then use the functions of this library to easily view the digits on the display or the individual segments that compose it

HOW TO USE:

// Assign object library
BTDisplay disp;

// .init(a,b,c)
// a = number of digit (eg. 8=one digit, 888=three digit
// b = signal pin of microcontroller
// c = total number of leds in one digit
disp.init(2, D3, 22); // (TotDisplays, Pin, TotLedPerDisplay)

// Init segment display schema
// each segment need sequence led number separated by comma
disp._a = "3,4,5";
disp._b = "0,1,2";
disp._c = "12,13,14";
disp._d = "16,17,18";
disp._e = "19,20,21";
disp._f = "6,7,8";
disp._g = "9,10,11";
disp._dp = "15";

disp.digit_Brightness = 50; // leds brightness (0:255)
disp.digit_Color = 3000; // leds color in HSV format https://it.wikipedia.org/wiki/Hue_Saturation_Brightness
disp.digit_Active = 1; // Active digit. Next actions will be done only on active digit (0:x)

FUNCTIONS:

disp.digit_ALL_off(); // light off all digits

disp.ShowSeg(disp._a,1); // show/hide specific segment
// 1st param: segment
// 2nd param: 0 = led off
// 1 = led on

// .digit("x") (0:9 null)
// Show specific number of digit_Active
disp.digit("9");

pls watch this video: https://youtu.be/Mb3xCe2Co3A to see how this Stream Deck has been created.

displayled_custom's People

Contributors

boomytech avatar

Stargazers

 avatar  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.