This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi, I am trying to control a LightCrafter 4500 with an Arduino. I try the simple task to flip the image and it does not work.
I am connected to I2c1, with no pull-up resistors
Here is my code:
#include <Wire.h>
#define LC4500_I2C_ADDRESS 0x1A
void setup()
{
Wire.begin();
Wire.setClock(100000);
Serial.begin(9600);
Serial.println("\nLightCrafter First Command");
Wire.beginTransmission(LC4500_I2C_ADDRESS);
Wire.write(0x08);
Wire.write(0x01);
Wire.endTransmission();
}
void loop()
{
}
Thanks for your help.
Paul
Hi Paul,
To properly write a value to the register you have to set the MSB of the register address as 1. For example, you are trying to write to the register having address 0x08, so you should call the function as Wire.write(0x88) instead of Wire.write(0x08).
Hope this resolves your issue.
Regards,
Hirak.