generated from hulk/gd32e23x_template
rewrite write/read function
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user