Hi everyone,
I have a JHD204A 20x4 LCD and an Arduino, and I want to print the word "HELLO" in large characters on the mix of first and second row of the display. I'm having trouble figuring out how to display it properly. I know how to use the basic LCD functions, but I would like to show "HELLO" in a way that fits well in the mix of first and second row.
Could anyone provide an example of how to do this or guide me in the right direction?
Thanks in advance for your help!
docdoc
April 1, 2025, 9:33am
2
The display can't show "large characters", as you can see it makes use of "programmable characters" to create some shapes to let numbers be shown up.
But the number of custom character is hardcoded to just 8, so if you pla to show strings it's hard to define a whole character set with only 8 "semi-graphics" chars, especially using just two lines of the display.
If you just need a fixed uppercase "HELLO" string, it's feaseable but IMHO pointless.
I have no experience of using it but this library can be installed from the IDE Library Manager
The Arduino programming language Reference, organized into Functions, Variable and Constant, and Structure keywords.
I am using this code there is an Error
#include <LiquidCrystal.h>
#include <BigFont01.h>
// Define LCD pins (RS, EN, D4, D5, D6, D7)
LiquidCrystal lcd(7, 8, 9, 10, 11, 12);
BigFont01 bigFont(&lcd);
void setup() {
lcd.begin(20, 4); // Initialize 20x4 LCD
lcd.clear();
// Print "HELLO" in big font starting from column 2, row 2
bigFont.printLarge(2, 1, "HELLO");
}
void loop() {
// No need to do anything here
}
Please post the full error copied from the IDE using the button provided and post it here in code tags
Which Arduino board are you using ?
Don't you think it would be helpful if you posted the error message instead of making everyone guess?
this is the error
FQBN: arduino:avr:uno
Using board 'uno' from platform in folder: C:\Users\RND Engineer\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6
Using core 'arduino' from platform in folder: C:\Users\RND Engineer\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6
Detecting libraries used...
C:\Users\RND Engineer\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -IC:\Users\RND Engineer\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\RND Engineer\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\standard C:\Users\RND Engineer\AppData\Local\Temp\arduino\sketches\3C0095644376843DC566E3C678124F8E\sketch\sketch_apr1b.ino.cpp -o nul
Alternatives for LiquidCrystal.h: [LiquidCrystal@1.0.7 LiquidCrystal@1.0.7]
ResolveLibrary(LiquidCrystal.h)
-> candidates: [LiquidCrystal@1.0.7 LiquidCrystal@1.0.7]
C:\Users\RND Engineer\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -IC:\Users\RND Engineer\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\RND Engineer\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\standard -Ic:\Users\RND Engineer\Documents\Arduino\libraries\LiquidCrystal\src C:\Users\RND Engineer\AppData\Local\Temp\arduino\sketches\3C0095644376843DC566E3C678124F8E\sketch\sketch_apr1b.ino.cpp -o nul
Alternatives for BigFont01.h: [BigFont01@1.0.3]
ResolveLibrary(BigFont01.h)
-> candidates: [BigFont01@1.0.3]
C:\Users\RND Engineer\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -IC:\Users\RND Engineer\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\RND Engineer\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\standard -Ic:\Users\RND Engineer\Documents\Arduino\libraries\LiquidCrystal\src -Ic:\Users\RND Engineer\Documents\Arduino\libraries\BigFont01 C:\Users\RND Engineer\AppData\Local\Temp\arduino\sketches\3C0095644376843DC566E3C678124F8E\sketch\sketch_apr1b.ino.cpp -o nul
Using cached library dependencies for file: c:\Users\RND Engineer\Documents\Arduino\libraries\LiquidCrystal\src\LiquidCrystal.cpp
C:\Users\RND Engineer\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -IC:\Users\RND Engineer\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\RND Engineer\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\standard -Ic:\Users\RND Engineer\Documents\Arduino\libraries\LiquidCrystal\src -Ic:\Users\RND Engineer\Documents\Arduino\libraries\BigFont01 c:\Users\RND Engineer\Documents\Arduino\libraries\BigFont01\BigFont01.cpp -o nul
Generating function prototypes...
C:\Users\RND Engineer\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -IC:\Users\RND Engineer\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\RND Engineer\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\standard -Ic:\Users\RND Engineer\Documents\Arduino\libraries\LiquidCrystal\src -Ic:\Users\RND Engineer\Documents\Arduino\libraries\BigFont01 C:\Users\RND Engineer\AppData\Local\Temp\arduino\sketches\3C0095644376843DC566E3C678124F8E\sketch\sketch_apr1b.ino.cpp -o C:\Users\RND Engineer\AppData\Local\Temp\2609166346\sketch_merged.cpp
C:\Users\RND Engineer\AppData\Local\Arduino15\packages\builtin\tools\ctags\5.8-arduino11/ctags -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives C:\Users\RND Engineer\AppData\Local\Temp\2609166346\sketch_merged.cpp
Compiling sketch...
"C:\Users\RND Engineer\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\Users\RND Engineer\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino" "-IC:\Users\RND Engineer\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\standard" "-Ic:\Users\RND Engineer\Documents\Arduino\libraries\LiquidCrystal\src" "-Ic:\Users\RND Engineer\Documents\Arduino\libraries\BigFont01" "C:\Users\RND Engineer\AppData\Local\Temp\arduino\sketches\3C0095644376843DC566E3C678124F8E\sketch\sketch_apr1b.ino.cpp" -o "C:\Users\RND Engineer\AppData\Local\Temp\arduino\sketches\3C0095644376843DC566E3C678124F8E\sketch\sketch_apr1b.ino.cpp.o"
C:\Users\RND Engineer\AppData\Local\Temp.arduinoIDE-unsaved202531-10324-k2dru9.843rs\sketch_apr1b\sketch_apr1b.ino: In function 'void setup()':
C:\Users\RND Engineer\AppData\Local\Temp.arduinoIDE-unsaved202531-10324-k2dru9.843rs\sketch_apr1b\sketch_apr1b.ino:13:13: error: 'class BigFont01' has no member named 'printLarge'
bigFont.printLarge(2, 1, "HELLO");
^~~~~~~~~~
Multiple libraries were found for "LiquidCrystal.h"
Used: C:\Users\RND Engineer\Documents\Arduino\libraries\LiquidCrystal
Not used: C:\Users\RND Engineer\AppData\Local\Arduino15\libraries\LiquidCrystal
Using library LiquidCrystal at version 1.0.7 in folder: C:\Users\RND Engineer\Documents\Arduino\libraries\LiquidCrystal
Using library BigFont01 at version 1.0.3 in folder: C:\Users\RND Engineer\Documents\Arduino\libraries\BigFont01
exit status 1
Compilation error: 'class BigFont01' has no member named 'printLarge'
vishwjeet1231:
his is the error
Did you miss the request to use code tags when you posted it ?
here is the error `
FQBN: arduino:avr:uno
Using board 'uno' from platform in folder: C:\Users\RND Engineer\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6
Using core 'arduino' from platform in folder: C:\Users\RND Engineer\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6
Detecting libraries used...
C:\Users\RND Engineer\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -IC:\Users\RND Engineer\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\RND Engineer\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\standard C:\Users\RND Engineer\AppData\Local\Temp\arduino\sketches\3C0095644376843DC566E3C678124F8E\sketch\sketch_apr1b.ino.cpp -o nul
Alternatives for LiquidCrystal.h: [LiquidCrystal@1.0.7 LiquidCrystal@1.0.7]
ResolveLibrary(LiquidCrystal.h)
-> candidates: [LiquidCrystal@1.0.7 LiquidCrystal@1.0.7]
C:\Users\RND Engineer\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -IC:\Users\RND Engineer\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\RND Engineer\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\standard -Ic:\Users\RND Engineer\Documents\Arduino\libraries\LiquidCrystal\src C:\Users\RND Engineer\AppData\Local\Temp\arduino\sketches\3C0095644376843DC566E3C678124F8E\sketch\sketch_apr1b.ino.cpp -o nul
Alternatives for BigFont01.h: [BigFont01@1.0.3]
ResolveLibrary(BigFont01.h)
-> candidates: [BigFont01@1.0.3]
C:\Users\RND Engineer\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -IC:\Users\RND Engineer\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\RND Engineer\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\standard -Ic:\Users\RND Engineer\Documents\Arduino\libraries\LiquidCrystal\src -Ic:\Users\RND Engineer\Documents\Arduino\libraries\BigFont01 C:\Users\RND Engineer\AppData\Local\Temp\arduino\sketches\3C0095644376843DC566E3C678124F8E\sketch\sketch_apr1b.ino.cpp -o nul
Using cached library dependencies for file: c:\Users\RND Engineer\Documents\Arduino\libraries\LiquidCrystal\src\LiquidCrystal.cpp
C:\Users\RND Engineer\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -IC:\Users\RND Engineer\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\RND Engineer\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\standard -Ic:\Users\RND Engineer\Documents\Arduino\libraries\LiquidCrystal\src -Ic:\Users\RND Engineer\Documents\Arduino\libraries\BigFont01 c:\Users\RND Engineer\Documents\Arduino\libraries\BigFont01\BigFont01.cpp -o nul
Generating function prototypes...
C:\Users\RND Engineer\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -IC:\Users\RND Engineer\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\RND Engineer\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\standard -Ic:\Users\RND Engineer\Documents\Arduino\libraries\LiquidCrystal\src -Ic:\Users\RND Engineer\Documents\Arduino\libraries\BigFont01 C:\Users\RND Engineer\AppData\Local\Temp\arduino\sketches\3C0095644376843DC566E3C678124F8E\sketch\sketch_apr1b.ino.cpp -o C:\Users\RND Engineer\AppData\Local\Temp\2609166346\sketch_merged.cpp
C:\Users\RND Engineer\AppData\Local\Arduino15\packages\builtin\tools\ctags\5.8-arduino11/ctags -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives C:\Users\RND Engineer\AppData\Local\Temp\2609166346\sketch_merged.cpp
Compiling sketch...
"C:\Users\RND Engineer\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\Users\RND Engineer\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino" "-IC:\Users\RND Engineer\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\standard" "-Ic:\Users\RND Engineer\Documents\Arduino\libraries\LiquidCrystal\src" "-Ic:\Users\RND Engineer\Documents\Arduino\libraries\BigFont01" "C:\Users\RND Engineer\AppData\Local\Temp\arduino\sketches\3C0095644376843DC566E3C678124F8E\sketch\sketch_apr1b.ino.cpp" -o "C:\Users\RND Engineer\AppData\Local\Temp\arduino\sketches\3C0095644376843DC566E3C678124F8E\sketch\sketch_apr1b.ino.cpp.o"
C:\Users\RND Engineer\AppData\Local\Temp.arduinoIDE-unsaved202531-10324-k2dru9.843rs\sketch_apr1b\sketch_apr1b.ino: In function 'void setup()':
C:\Users\RND Engineer\AppData\Local\Temp.arduinoIDE-unsaved202531-10324-k2dru9.843rs\sketch_apr1b\sketch_apr1b.ino:13:13: error: 'class BigFont01' has no member named 'printLarge'
bigFont.printLarge(2, 1, "HELLO");
^~~~~~~~~~
Multiple libraries were found for "LiquidCrystal.h"
Used: C:\Users\RND Engineer\Documents\Arduino\libraries\LiquidCrystal
Not used: C:\Users\RND Engineer\AppData\Local\Arduino15\libraries\LiquidCrystal
Using library LiquidCrystal at version 1.0.7 in folder: C:\Users\RND Engineer\Documents\Arduino\libraries\LiquidCrystal
Using library BigFont01 at version 1.0.3 in folder: C:\Users\RND Engineer\Documents\Arduino\libraries\BigFont01
exit status 1
Compilation error: 'class BigFont01' has no member named 'printLarge'`
Compilation error: 'class BigFont01' has no member named 'printLarge'`
The library does have that function but it expects a single character as the third parameter
From one of the library examples
big.writechar(0,5,'A');
Declare your message as an array of chars then iterate through the array using bigPrint() to print each of them
The error message is quite clear. You're trying to call a library function that doesn't exist.
I think the answer was provided back in Post #12 .
I am using code tags but by default they are not supported
How can i call please help
Have you looked at the examples that came with the library ?
xfpd
April 1, 2025, 1:15pm
17
vishwjeet1231:
they are not supported
Why would you make this up? You can do this two ways, put three "backticks" (```) before and after the code/errors or this...
vishwjeet1231:
they are not supported
Even easier
Start by tidying up your code by using Tools/Auto Format in the IDE to make it easier to read. Then use Edit/Copy for Forum and paste what was copied in a new reply. Code tags will have been added to the code to make it easy to read in the forum thus making it easier to provide help.
Yes, But the are very big I want to medium size