rewrite write/read function

This commit is contained in:
2024-12-19 18:23:55 +08:00
parent 58c8ac63fd
commit fd06d54fdc
3 changed files with 411 additions and 7 deletions

View File

@@ -65,6 +65,15 @@ int main(void) {
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);
uint8_t data[2] = {0x05, 0x36};
ldc1612_iic_write_16bits(SET_CONVERSION_TIME_REG_START, data);
while (1) {
// delay_ms(1000);