I am workig on my final year project at university, and i'm building an autonomous robot.
I am using a PIC 18F4455, an I2C H-Bridge Motor Driver, and an LCD obviously along with other components and bits and bobs.
I'm using a professional version of Flowcode and i'm having a few issues which i'm not sure about.
First of all: My I2C device has an address of 0xB0 and I need to write to registers within it to power the motors- for example to power motor 1 I need to write to address '0' and I want to write a value of 140 to it- how do I go about doing this? Can you guys provide me with some example of I2C 'write to' code please?
Second of all: My LCD will not work, and I really dont know why- I'm using an LCD with a built in KS0066U. I need to connect RS R/W E and the Data Lines.... Flowcode specifies RS and E- but what do I connect R/W to? I've been using a version 2 development board, and I can make the built in LCD work on there either; I think flowcode might be allergic to me

Any ideas to help me out please guys?
Many Thanks,
Andy