How to program a custom LCD character with an Arduino

preview_player
Показать описание
How to create a custom LCD character using the createChar() function with an Arduino.
You can help support this channel by using the Amazon affiliate link above for any of you future Amazon purchases. I will receive a small commission from Amazon at no additional cost to you which will enable me to produce continuing content for this channel.
Thank you for your support.
Рекомендации по теме
Комментарии
Автор

To get your pacman effect you wanted, you would first write your text to be eaten. Then loop i from 0 to 15. on each step set the cursor to i-1 (except 0) and print a space (to clear the previous pacman) Then if i%2==0 (check for even) to get if your mouth should be open or closed. and write that pacman character. And then delay. This will advance your pacman across the screen, overwriting existing characters as he goes.

Diamonddrake
Автор

A more efficient way of switching between open mouth and closed mouth would be like this:
Boolean mouth=0;
stuff
stuff
stuff
void loop(){
stuff
stuff
mouth=!mouth;
stuff
}
because the Boolean gets switched between 0 and 1, it will automatically switch between open and closed mouths...

aravindk
Автор

Nice tutorial!
I am going to try it this weekend, thanks!

stonez
Автор

Hey, Im working on a project were I would be turning my LCD into a mouth that moves in time with a .WAV file... any advice on how to create a full mouth animation? i found your tutoral helpful explining the 0, 15 etc. but i didnt understand how you defined the first block ? 0b? 1b(block 2) 2b(block3) etc ?

nikiheaney
Автор

I made a neat animation on my LCD, and I didn't know how to make a backspace, and I didn't know work with setcursor, so I did

lcd.clear();
//delay if needed
lcd.print("text");

Which did pretty much the same thing but took up a lot of lines of code.

Aubble
Автор

Hi Tom, I'm working my way through your videos and wondered if you ever got pacman to scroll by, eating the letters.  I'd be happy to write it for you, it might be a nice intro for your videos. Just reply with the code you have so far.  Really enjoying the videos, thanks for making them!

dparson
Автор

i can't get my char to show up i created my char in the set up and
lcd.setCursor(13, 0);
lcd.write(customChar, (0)); in the loop and it dosn't show up
plz help

taranagnew
Автор

So how do i get a custom char to appear once Or even better : appear without using void loop?
I mean is there a simple way to just "lcd.print" the custom char?

FullFledged
Автор

hello, i have a problem doing a new character, when I create the character and try to print it on the display a error message apears.

"call of overloaded 'write(int)' is ambiguous"

any1 can help me with this problem?

sergiogusarov
Автор

that could be anything but a packman !!

fouzaialaa
Автор


This is a better tutorial for people, showing exactly how everything is done for beginners (see Glen Matthews post towards the end)

cheseffhf