20x4 large digit clock

Big Numbers for clock 20x4 lcd

I am fiddling with the code below from another user. I displays 0 to 9 on a 20x4 on 2 lines. Wondering how to modify this so it display 4 numbers( using all the screen) I wish to make a 4 digit clock that uses the full 20x4 screen.

#include <Wire.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27, 20,4); // .kbv constructor for I2C

byte custchar[8][8] = {
{
B11111,
B11111,
B11111,
B00000,
B00000,
B00000,
B00000,
B00000
}, {
B00000,
B00000,
B00000,
B00000,
B00000,
B11111,
B11111,
B11111
}, {
B11111,
B11111,
B11111,
B00000,
B00000,
B11111,
B11111,
B11111
}, {
B00000,
B00000,
B00000,
B00000,
B00000,
B01110,
B01110,
B01110
}, {
B00000,
B00000,
B00000,
B01110,
B01110,
B01110,
B00000,
B00000
}, {
B00000,
B00000,
B00000,
B00000,
B00000,
B00000,
B00000,
B00000
}, {
B00000,
B00000,
B00000,
B00000,
B00000,
B00000,
B00000,
B00000
}, {
B00000,
B00000,
B00000,
B00000,
B00000,
B00000,
B00000,
B00000
}
};

byte bignums[10][2][3] = {
{
{255, 0, 255},
{255, 1, 255}
}, {
{0, 255, 254},
{1, 255, 1}
}, {
{2, 2, 255},
{255, 1, 1}
}, {
{0, 2, 255},
{1, 1, 255}
}, {
{255, 1, 255},
{254, 254, 255}
}, {
{255, 2, 2},
{1, 1, 255}
}, {
{255, 2, 2},
{255, 1, 255}
}, {
{0, 0, 255},
{254, 255, 254}
}, {
{255, 2, 255},
{255, 1, 255}
}, {
{255, 2, 255},
{254, 254, 255}
}
};

void loadchars() {
for (int i = 0; i < 8; i++)
lcd.createChar(i, custchar*);*

_/* _

  • lcd.command(64);*
  • for (int i = 0; i < 8; i++)*
  • for (int j = 0; j < 8; j++)*
  • lcd.write(custchar[j]);*
    */
  • lcd.home();*
    }
    void printbigchar(byte digit, byte col, byte row, byte symbol = 0) {
  • if (digit > 9) return;*
  • for (int i = 0; i < 2; i++) {*
  • lcd.setCursor(col, row + i);*
  • for (int j = 0; j < 3; j++) {*
    _ lcd.write(bignums[digit][j]); //.kbv add the_
    * }*
    * lcd.write(254);*
    * }*
    * if (symbol == 1) {*
    * lcd.setCursor(col + 3, row + 1);*
    * lcd.write(3);*
    * } else if (symbol == 2) {*
    * lcd.setCursor(col + 3, row);*
    * lcd.write(4);*
    * lcd.setCursor(col + 3, row + 1);*
    * lcd.write(4);*
    * }*
    * lcd.setCursor(col + 4, row);*
    }
    void setup() {
    * lcd.begin(); //.kbv add the begin()*
    * pinMode(13, OUTPUT);*
    * loadchars();*
    * digitalWrite(13, 1);*
    * printbigchar(0, 0, 0);*
    * printbigchar(1, 4, 0);*
    * printbigchar(2, 8, 0);*
    * printbigchar(3, 12, 0);*
    * printbigchar(4, 16, 0, 1);*
    * printbigchar(5, 0, 2);*
    * printbigchar(6, 4, 2);*
    * printbigchar(7, 8, 2);*
    * printbigchar(8, 12, 2);*
    * printbigchar(9, 16, 2, 2);*
    }
    void loop() {}
    Big Fonts for 20 x 4 LCD

Hey!

Sixteen posts to date and you have been prowling around here for no less than 18 months! So first things first.

You need to go and read the forum instructions so that you can go back and modify each of your original posts (not re-post them) - using the “More → Modify” option below the right hand corner of each post with code - to mark up your code as such using the “</>” icon in the posting window. Just highlight each section of code (or output if you later need to post that) from the IDE and click the icon.

In fact, the IDE itself has a “copy for forum” link to put these markings on a highlighted block for you so you then just paste it here in a posting window. But even before doing that, don’t forget to use the “Auto-Format” (Ctrl-T) option first to make it easy to read. While you were lucky so far, If you do not post it as “code” it can as you now see, be subtly garbled and is always more difficult to read due to the font.

It is inappropriate to attach it as a “.ino” file unless it is clearly too long to include in the post proper. People can usually see the mistakes directly and do not want to have to actually load it in their own IDE. And even that would also assume they are using a PC and have the IDE running on that PC.

Also tidy up your blank space. Do use blank lines, but only single blanks between complete functional blocks.

So do you want to make the digits 2 times larger than the large font from the posted code? If you search for "big numbers lcd arduino" several pages with code and libraries come up.

Doesn't seem to have anything

Doesn't seem to have anything

What doesn't have what? Do you mean that none of the many hits for a search for "big numbers lcd arduino" has anything helpful?

Then what do you want? The code that in your OP makes big numbers. What is wrong with that?