naguissa / usevensegmentlib Goto Github PK
View Code? Open in Web Editor NEWArduino, ESP8266 and STM32 7-segment multiplexed displays library - uSevenSegmentLib
License: GNU Lesser General Public License v3.0
Arduino, ESP8266 and STM32 7-segment multiplexed displays library - uSevenSegmentLib
License: GNU Lesser General Public License v3.0
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);
}
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);
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.