请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
大家好、我正在尝试使用 Arduino 来控制 LightCrafter 4500。 我尝试简单的任务来翻转图像、但它不起作用。
我连接到 I2c1、没有上拉电阻器
以下是我的代码:
#include
#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()
{
}
感谢你的帮助。
Paul