print string to lcd without lcd library with 4 bit bus?

I'm trying to write a function that prints a string to the lcd screen but without using the lcd library, and I'm not sure how to do it. I thought about using a character array, but I'm not sure how to send the 8 bit characters over a 4 bit bus.

Any help is greatly appreciated it.
Thanks!

Why don't you take look and see how the library does it?
Or look at the data sheet of an LCD.

You send the two halves of the 8-bit character as two 4-bit nibbles.

Read the data sheet and the many hundreds of tutorials on the net.

@AWOL I tried searching for the actual library code, but I was unsuccessful.

@majenko I understand that but how do you split the 8 bit character in the array into two 4 bit parts?

High nibble:

n = b>>4;

Low nibble:

n = b & 0x0F;

I tried searching for the actual library code, but I was unsuccessful.

Then download the IDE - all the source is in the distribution.

I tried searching for the actual library code, but I was unsuccessful.

If you are able to use the library, you have the source code on your computer. Where depends on your operating system and which library you are talking about.