i2c: all function calls are consistent. fixed some MISRA errors.
This commit is contained in:
parent
657ee06eed
commit
958b2e8e00
7 changed files with 71 additions and 68 deletions
3
aht.h
3
aht.h
|
|
@ -1,10 +1,11 @@
|
|||
#ifndef AHT_H
|
||||
#define AHT_H
|
||||
|
||||
#include "hardware/i2c.h"
|
||||
#include <stdint.h>
|
||||
|
||||
#define AHT_ADDR 0x38
|
||||
|
||||
void getAHTData(double *t, double *h);
|
||||
void getAHTData(i2c_inst_t *i2c, double *t, double *h);
|
||||
|
||||
#endif // AHT_H
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue