codebeat-nl / xtm1638 Goto Github PK
View Code? Open in Web Editor NEWFastest library to control TM1638 chip (for example: "LED AND KEY") based modules
License: GNU General Public License v3.0
Fastest library to control TM1638 chip (for example: "LED AND KEY") based modules
License: GNU General Public License v3.0
hi,
i am new on GitHub. I downloaded the zip file but i can not find a xtm1638.h file in the zip file.
maybe I do something wrong?
wbr
Günter
Hi,
thanks for creating this cool library - it is the fastest one i found so far 👍
One idea to make it even faster would be to turn on higher compiler optimisations for the core functions, see https://gcc.gnu.org/onlinedocs/gcc/Function-Specific-Option-Pragmas.html
I did some experiments, by adding the following to xtm1638.cpp
at the top of the file, just after comments and includes are done (i.e. , directly after #include "xtm1638.h"
)
#pragma GCC push_options
#pragma GCC optimize ("O2")
//#pragma GCC optimize ("O3")
at end of the file
#pragma GCC pop_options
"example04" on my MEGA2560 - default options, Port manipulation mode, cached segments enabled
The compiler (rightfully) complains about re-definition of these macros in the header file. The second definition overrides the first one. Unfortunately the two definitions use different value, so i'm wondering if the functions setNumber() and setSignedNumber() really do what they should.
Line 330 in e6da698
Line 388 in e6da698
Line 329 in e6da698
Line 389 in e6da698
While using setChars I've notice that "." is displayed as three horizontal bars. For example setChars("32.1") displays 32(3 horizontal bars)1 instead of 32.1
It would be nice if the dot was displayed as a dot on the same segment digit 2 in my example.
Such a fix would make displaying decimal number very easy, or do you already have a way to do this?
P.S. this is a great library and very impressive as far as speed is concerned. And the examples are A++.
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.