小白求助,HDC1080怎么读温度或者湿度值

Other Parts Discussed in Thread: HDC1080

hdc1080中,0x02配置为0x0000
按照数据手册
2. Trigger the measurement by executing a pointer write transaction. Refer to Figure 12
– Set the address pointer to 0x00 for a temperature measurement.
– Set the address pointer to 0x01 for a humidity measurement.
3. Wait for the measurement to complete, based on the conversion time (refer to Electrical Characteristics(1) for
the conversion time).
4. Read the output data:
Retrieve the completed measurement result from register address 0x00 or 0x01, as appropriate, as shown in
Figure 11. A read operation will return a NACK if the measurement result is not yet available, as shown in
Figure 13.
我先发0x00,然后延时,再发0x00然后收,这样运行没结果;我先发0x00,然后延时,然后接收,得到的值是负的,而且只测了一次,后面一直是这个值