#include "stm32f4_iic.h"
#include "lidar_lite_v3.h"
#include "stm32f4_delay.h"
uint8_t WriteBuffer = 0x55,ReadBuffer = 0,ret;
uint8_t ReadData[2];
void lidar_lite_v3_init(void)
{
//WriteBuffer = 0x00;
//ret = I2C_Write(Open_I2C,0xC4,0x00,&WriteBuffer,sizeof(WriteBuffer));
WriteBuffer = 0x80;
ret = I2C_Write(Open_I2C,0xC4,0x02,&WriteBuffer,sizeof(WriteBuffer));
WriteBuffer = 0x08;
ret = I2C_Write(Open_I2C,0xC4,0x04,&WriteBuffer,sizeof(WriteBuffer));
WriteBuffer = 0x00;
#include "lidar_lite_v3.h"
#include "stm32f4_delay.h"
uint8_t WriteBuffer = 0x55,ReadBuffer = 0,ret;
uint8_t ReadData[2];
void lidar_lite_v3_init(void)
{
//WriteBuffer = 0x00;
//ret = I2C_Write(Open_I2C,0xC4,0x00,&WriteBuffer,sizeof(WriteBuffer));
WriteBuffer = 0x80;
ret = I2C_Write(Open_I2C,0xC4,0x02,&WriteBuffer,sizeof(WriteBuffer));
WriteBuffer = 0x08;
ret = I2C_Write(Open_I2C,0xC4,0x04,&WriteBuffer,sizeof(WriteBuffer));
WriteBuffer = 0x00;