Code Monkey home page Code Monkey logo

digitleddisplay's People

Contributors

alvarowolfx avatar bcien avatar max5555 avatar ozhantr avatar swharden avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

digitleddisplay's Issues

avr/pgmspace.h: No such file or directory on ESP8266

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.

Feature: Reverse display order

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.

Feature Request to add printHexadecimal and printString and printDigitWithDecimal

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':

image

and for 'W":

image

And to avoid ambiguity for 'K' and 'H' and 'X', can use for 'K':

image

and for 'X':

image

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.

Compile for ESP32 not ok

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

Example code mistake

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);

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.