Git Product home page Git Product logo

naguissa / usevensegmentlib Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 1.0 152 KB

Arduino, ESP8266 and STM32 7-segment multiplexed displays library - uSevenSegmentLib

Home Page: https://www.foroelectro.net/electronica-digital-microcontroladores-f8/usevensegmentlib-libreria-arduino-para-controlar-d-t193.html

License: GNU Lesser General Public License v3.0

C++ 100.00%
arduino arduino-library multiplexed-displays multiplexed multiplexed-outputs seven-segment seven-segments-display 7-segment 7-segment-display naguissa

usevensegmentlib's People

Contributors

naguissa avatar per1234 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

usevensegmentlib's Issues

ESP32 does not work

This does not work with ESP-WROOM-32. It interrupts before writing the segments. I am using a 4 digit 7 segment display with 4 periods.

#include "Arduino.h"
#include "uSevenSegmentLib.h"

int pins[8] = {32, 14, 12, 26, 25, 33, 13, 27};
int muxes[4] = {4, 0, 2, 15};

uSevenSegmentLib sevenSegments(4, pins, muxes);

int i = 0;

void setup() {
sevenSegments.set(i);
sevenSegments.attachInterrupt();
}

void loop() {
delay(1000);
i = (i + 1) % 10;
sevenSegments.set(i);
}

Library not working even in example

Hello,
i'm running IDE 1.8.10 on a leonardo board, i'm using 3 displays without decimal dot connected, i've installed library usevensegment 1.0.0 and utimerlib 1.4.0 from the library manager.
Edited the sketch to not use the dot(i also changed it later to no avail) and it only shows broken characters and garbage on the displays.
Using your own 7 segment verification sketch modified to turn on all displays it shows all of the segments correctly.

i've even tried a most basic sketch to show "888" and it doesn't even work, it shows nothing, after some seconds an 8 appears on the last display, then it turns off. I've even included utimerlib by hand on the sketch to no avail.
Changing the sketch to "123" now displays all broken data

#include` "Arduino.h"
#include "uSevenSegmentLib.h"
#include "uTimerLib.h"

int pins[7] = {0, 1, 2, 3, 4, 5, 6};
int muxes[3] = {7, 8, 9};
unsigned int freq=60;

uSevenSegmentLib sevenSegments(3, pins, muxes);
bool led_status = true;

int i = 0;

void setup() {
sevenSegments.set(0);
sevenSegments.attachInterrupt();
}

void loop() {
sevenSegments.set(123);
}

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.