本帖最后由 ljbhander 于 2015-10-27 17:21 编辑
按顺序初始化试试:
write_byte(0x0207, 0x01);
usleep(5000);
write_byte(0x0208, 0x01);
usleep(5000);
write_byte(0x0133, 0x01);
usleep(5000);
write_byte(0x0096, 0x00);
usleep(5000);
write_byte(0x0097, 0xFD);
usleep(5000);
write_byte(0x00e3, 0x00);
usleep(5000);
write_byte(0x00e4, 0x04);
usleep(5000);
write_byte(0x00e5, 0x02);
usleep(5000);
write_byte(0x00e6, 0x01);
usleep(5000);
write_byte(0x00e7, 0x03);
usleep(5000);
write_byte(0x00f5, 0x02);
usleep(5000);
write_byte(0x00D9, 0x05);
usleep(5000);
write_byte(0x00DB, 0xCE);
usleep(5000);
write_byte(0x00DC, 0x03);
usleep(5000);
write_byte(0x00DD, 0xF8);
usleep(5000);
write_byte(0x009f, 0x00);
usleep(5000);
write_byte(0x00a3, 0x3c);
usleep(5000);
write_byte(0x00b7, 0x00);
usleep(5000);
write_byte(0x00bb, 0x3c);
usleep(5000);
write_byte(0x00b2, 0x09);
usleep(5000);
write_byte(0x00ca, 0x09);
usleep(5000);
write_byte(0x0198, 0x01);
usleep(5000);
write_byte(0x01b0, 0x17);
usleep(5000);
write_byte(0x01ad, 0x00);
usleep(5000);
write_byte(0x00FF, 0x05);
usleep(5000);
write_byte(0x0100, 0x05);
usleep(5000);
write_byte(0x0199, 0x05);
usleep(5000);
write_byte(0x0109, 0x07);
usleep(5000);
write_byte(0x010a, 0x30);
usleep(5000);
write_byte(0x003f, 0x46);
usleep(5000);
write_byte(0x01a6, 0x1b);
usleep(5000);
write_byte(0x01ac, 0x3e);
usleep(5000);
write_byte(0x01a7, 0x1f);
usleep(5000);
write_byte(0x0103, 0x01);
usleep(5000);
write_byte(0x0030, 0x00);
usleep(5000);
write_byte(0x001b, 0x0A);
usleep(5000);
write_byte(0x003e, 0x0A);
usleep(5000);
write_byte(0x0131, 0x04);
usleep(5000);
write_byte(0x0011, 0x10);
usleep(5000);
write_byte(0x0014, 0x24);
usleep(5000);
write_byte(0x0031, 0xFF);
usleep(5000);
write_byte(0x00d2, 0x01);
usleep(5000);
write_byte(0x00f2, 0x01);
usleep(5000);
write_byte(0x0014,0x04);
usleep(5000);
write_byte(0x0018,0x01);
//I2C_ByteWrite(0x0018,0x03);
usleep(5000);
|