-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
...I am trying to create a set of big number font for non-rtc clock..cant figure it out yet #1
Comments
Found a usefull link..that convert pixels to binary or hex ...with slight modifications on the sketch it..worked https://maxpromer.github.io/LCD-Character-Creator/ replace to these init.. #include <LiquidCrystal.h> |
for char test purpose i wanted to just display the number 0 to 8 =16colx02row...each char consist of 4 segment 2col x2row .....but it can only display a byte of data ... meaning: 2 ( 2 row x 2 col) l = 8 byte..maximum 2 large letters..if i added more than 0-7..like 8th it would replace the 1st custom char segmented set to the new 3rd custom 4 segment / a set of letters....if programmed as |
// Collected from Online resource #include <LiquidCrystal.h> // supplied drivers on IDE Library byte zero_a[8] = {B00000,B00000,B00011,B00110,B01110,B01110,B01110,B01110}; // binary code byte one_a[8] = {0x00,0x00,0x01,0x07,0x07,0x01,0x01,0x01}; // hex alternate byte two_a[8] = {0x00,0x00,0x07,0x0C,0x0C,0x00,0x00,0x00}; byte three_a[8] = {0x00,0x00,0x07,0x0E,0x00,0x00,0x00,0x01}; byte four_a[8] = {0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x03}; void setup() { lcd.begin(16, 2); lcd.createChar(0, zero_a); lcd.createChar(4, one_a); lcd.createChar(8, two_a); // i learned the LCD limitation here //lcd.createChar(12,three_a); //lcd.createChar(16,three_a); } void loop() { lcd.setCursor (0,0); lcd.setCursor (2,0); lcd.setCursor (4,0); //lcd.setCursor (6,0); //lcd.setCursor (6,0); delay(2000); |
#include <LiquidCrystal.h> uint8_t custChar[8][8] = { }; void printBigNum(int number, int startCol, int startRow) { lcd.setCursor(startCol, startRow); // First line (top half) of digit lcd.setCursor(startCol,startRow + 1); // cursor to next ROW at same column void printDIVIDER(int number, int startCol, int startRow) { lcd.setCursor(startCol, startRow); // First line (top half) of digit lcd.setCursor(startCol,startRow + 1); // cursor to next ROW at same column void setup() { } void loop() { lcd.setCursor (14,0); delay(1000); delay(150); printDIVIDER(10,6,0); printBigNum(5,7,0); delay(3000); |
...Finally I figured it out...Thank you...check my repo for a newer version3.1 of NON - RTC/NTP/GPS 1602 LCD KEYPAD " ol school sync "12-H AM/PM timekeeping , +1 min /day accuracy + 3 COL x 2 ROW BIG DIGIT |
@SurenBono FYI I was able to create the original font by swapping the custom characters rapidly; however, there is noticeable flickering. |
..closest similar project was http://code.google.com/p/arduino-timerone/ ..but the font is too thin..i was thinking like..see pic

The text was updated successfully, but these errors were encountered: