iic驱动重写

This commit is contained in:
2024-12-05 19:54:31 +08:00
parent 7a3e93f5d8
commit dde90dc162
6 changed files with 215 additions and 110 deletions

View File

@@ -33,8 +33,18 @@ int main(void)
printf("XLSW-3DP-LDC1612! V0.0.1\r\n");
printf("\r\n");
LDC1612_Init();
uint8_t data[8] = {0};
uint32_t value = 0;
while(1){
printf("hello world!\r\n");
// LDC1612_read_reg(LDC1612_ADDR, 0x00, data, 2);
// printf("msb:%x %x\r\n",data[0],data[1]);
// printf("hello world!\r\n");
delay_ms(5000);
}
}