generated from hulk/gd32e23x_template
iic驱动重写
This commit is contained in:
12
src/main.c
12
src/main.c
@@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user