ozhantr / digitleddisplay Goto Github PK
View Code? Open in Web Editor NEWMAX7219/MAX7221 Digital Tube 7-Segment LED Display Arduino Library
License: Other
MAX7219/MAX7221 Digital Tube 7-Segment LED Display Arduino Library
License: Other
Please update. I am add pot code
function printDigitPot
Thanks!
DigitLedDisplay.cpp.txt
DigitLedDisplay.h.txt
I tried numerous times to load zip files into Arduino library. It never loads. ???? Any ideas?
Hi,
when using an esp8266 you get an "avr/pgmspace.h: No such file or directory".
Could you replace
#include <avr\pgmspace.h>
with
#if (defined(__AVR__))
#include <avr\pgmspace.h>
#else
#include <pgmspace.h>
#endif
like mentioned here: https://github.com/SodaqMoja/Sodaq_DS3231/issues/5
?
Thanks.
Please help, in the example file not mentioned. :/
any idea ?
I got some 8 digit display modules from AliExpress where the sequence of the digits isn't 76543210 but 01234567.
It would be very nice and handy to have an easy possibility to set the right sequence on init.
Note the SevSeg library (https://github.com/DeanIsMe/SevSeg/blob/master/SevSeg.cpp) uses the following display codes, which could be easily converted to the bit ordering for the MAX7219/21 and appended to the table:
// digitCodeMap indicate which segments must be illuminated to display
// each number.
static const uint8_t digitCodeMap[] = {
// GFEDCBA Segments 7-segment map:
B00111111, // 0 "0" AAA
B00000110, // 1 "1" F B
B01011011, // 2 "2" F B
B01001111, // 3 "3" GGG
B01100110, // 4 "4" E C
B01101101, // 5 "5" E C
B01111101, // 6 "6" DDD
B00000111, // 7 "7"
B01111111, // 8 "8"
B01101111, // 9 "9"
B01110111, // 65 'A'
B01111100, // 66 'b'
B00111001, // 67 'C'
B01011110, // 68 'd'
B01111001, // 69 'E'
B01110001, // 70 'F'
B00111101, // 71 'G'
B01110110, // 72 'H'
B00110000, // 73 'I'
B00001110, // 74 'J'
B01110110, // 75 'K' Same as 'H'
B00111000, // 76 'L'
B00000000, // 77 'M' NO DISPLAY
B01010100, // 78 'n'
B00111111, // 79 'O'
B01110011, // 80 'P'
B01100111, // 81 'q'
B01010000, // 82 'r'
B01101101, // 83 'S'
B01111000, // 84 't'
B00111110, // 85 'U'
B00111110, // 86 'V' Same as 'U'
B00000000, // 87 'W' NO DISPLAY
B01110110, // 88 'X' Same as 'H'
B01101110, // 89 'y'
B01011011, // 90 'Z' Same as '2'
B00000000, // 32 ' ' BLANK
B01000000, // 45 '-' DASH
B10000000, // 46 '.' PERIOD
B01100011, // 42 '*' DEGREE ..
B00001000, // 95 '_' UNDERSCORE
};
// Constant pointers to constant data
const uint8_t * const numeralCodes = digitCodeMap;
const uint8_t * const alphaCodes = digitCodeMap + 10;
I actually think those NO DISPLAY ones could a hack, such as for 'M':
and for 'W":
And to avoid ambiguity for 'K' and 'H' and 'X', can use for 'K':
and for 'X':
I got those images from https://en.wikipedia.org/wiki/Seven-segment_display_character_representations
Then can implement a printHexadecimal, printChar, printChars, and/or printString.
And could also utilize the '.' bit to produce decimal output of numbers.
Hello,
I try your library to use the max7219 8x7 segment dipslay on a esp32 dev bord.
I always have a compiler error thad there is no pgmspace.h file while there are 5 on my computer.
Probably the esp32 wroom 32D is not provided. Can i adapt this myself ?
Thank you in advance
error.txt
The example code has a typo:
/* Arduino Pin to Display Pin
7 to DIN,
6 to CS,
5 to CLK */
DigitLedDisplay ld = DigitLedDisplay(7, 5, 6);
should be:
DigitLedDisplay ld = DigitLedDisplay(7, 6, 5);
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.