How to send data through I2C to microcontroller?

Hello all,
I'm new in uno, and I trying to send some numbers from 0 to 5000 through I2C to PIC18F452, what's the code for this or how can I save one by one column of number to var?

thanks for help.

Why you want to communicate with another microcontroler? The application of the PIC would be done by you too?

thanks for reply, because I need to use smart GLCD Containing pic18f87k22 in side !! but I don't have a code in uno to use this screen !

thanks.

The wire library provides I2C communications. You have to consult the GLCD documentation to determine the appropriate command syntax.

wleed75:
thanks for reply, because I need to use smart GLCD Containing pic18f87k22 in side !! but I don't have a code in uno to use this screen !

thanks.

But you must to know the "protocol" in order of communicate with the GLCD. OK, is I2C, but what kind of data you must send in order of show a picture (or whatever) in the display?
If you know that you can use Wire library like aarg say.

luisilva:
But you must to know the "protocol" in order of communicate with the GLCD. OK, is I2C, but what kind of data you must send in order of show a picture (or whatever) in the display?
If you know that you can use Wire library like aarg say.

many thanks , I just need to send numper from 0 to 180.99 !!

wleed75:
many thanks , I just need to send numper from 0 to 180.99 !!

In what format?

aarg:
In what format?

thanks for reply,
just some numbers from 0 to 17999

You don't understand me. I'm asking you if you have researched the GLCD command set. If you can't find out, you have no hope of using it with the Arduino. Usually, interfacing an LCD is not beginner level programming, so the interface is provided by a library.

Often, someone else has already written a library, so you can google to find it. Not all hardware is supported by the Arduino platform.

aarg:
You don't understand me. I'm asking you if you have researched the GLCD command set. If you can't find out, you have no hope of using it with the Arduino. Usually, interfacing an LCD is not beginner level programming, so the interface is provided by a library.

Often, someone else has already written a library, so you can google to find it. Not all hardware is supported by the Arduino platform.

sorry for my english, I want using I2C to send some numbers from arduino to PIC18F452 I can use this pic very well with more of GLCD but I can't use Accelerometer sensor RedBot with pic ! only with Arduino so I need to send numbers from arduino to pic for GLCD

thank you for Assistance

You can set up the I2C in either master or slave mode using the wire library to manage the I2C comms. So you would make the PIC a master and the Arduino a slave, or vice versa.

thank you, I will try it !