i2c: all function calls are consistent. fixed some MISRA errors.

This commit is contained in:
A.M. Rowsell 2026-06-30 00:31:20 -04:00
commit 958b2e8e00
7 changed files with 71 additions and 68 deletions

3
aht.h
View file

@ -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