mirror of
https://github.com/SlimeVR/SlimeVR-Tracker-ESP.git
synced 2026-04-06 02:01:57 +02:00
* Cleanup scanI2C library * Fixed formatting issues * First round of changes based on feedback * Fixed a fat fingered mistake * Actually fix the formatting issues
18 lines
441 B
C++
18 lines
441 B
C++
#ifndef _I2CSCAN_H_
|
|
#define _I2CSCAN_H_ 1
|
|
|
|
#include <Arduino.h>
|
|
#include <Wire.h>
|
|
|
|
namespace I2CSCAN {
|
|
void scani2cports();
|
|
void update();
|
|
bool checkI2C(uint8_t i, uint8_t j);
|
|
bool hasDevOnBus(uint8_t addr);
|
|
uint8_t pickDevice(uint8_t addr1, uint8_t addr2, bool scanIfNotFound);
|
|
int clearBus(uint8_t SDA, uint8_t SCL);
|
|
bool inArray(uint8_t value, const uint8_t *array, size_t arraySize);
|
|
}
|
|
|
|
#endif // _I2CSCAN_H_
|