waitting for read value

This commit is contained in:
yelvlab 2024-12-20 00:39:21 +08:00
parent 5877465628
commit 529f1b3628

View File

@ -62,21 +62,8 @@ int main(void) {
delay_ms(500);
ldc1612_iic_get_sensor_infomation();
// uint16_t device_id = 0;
// device_id = ldc1612_get_deveice_id();
// printf("device id = 0x%x\r\n", device_id);
//
// delay_ms(100);
//
// device_id = 0;
// device_id = ldc1612_get_manufacturer_id();
// printf("device id = 0x%x\r\n", device_id);
ldc1612_single_ch0_config();
uint16_t result = {0x0546};
uint8_t data[2] = {0};
data[0] = (result >> 8) & 0xFF;
data[1] = result & 0xFF;
printf("data[0] = 0x%x, data[1] = 0x%x\r\n", data[0], data[1]);
while (1) {
// delay_ms(1000);