SensorLib 0.5.0
Multi-platform sensor driver library for Arduino, PlatformIO, and ESP-IDF
Loading...
Searching...
No Matches
SensorWireHelper.h
Go to the documentation of this file.
1
30#pragma once
31
32#if defined(ARDUINO)
33#include <Arduino.h>
34#include <Wire.h>
35
36class SensorWireHelper
37{
38public:
39 // regdump,dumpDevices method does not call Wire.begin, you need to call it before using regdump or dumpDevices
40 static int regdump(TwoWire &w, Stream &serial, uint8_t devAddr, uint8_t start, uint8_t len);
41 static void dumpDevices(TwoWire &w, Stream &serial = Serial, int first = 0, int last = 127);
42 static void hexdump(uint8_t *data, size_t len, Stream &serial = Serial);
43};
44
45#endif /*ARDUINO*/
46
47
bool dumpDevices(Commander &Cmdr)