Fixes for grove and i2c changes (#31)

This commit is contained in:
Shadowtrance
2026-06-20 08:06:34 +10:00
committed by GitHub
parent dbf850c434
commit a0c1b25169
14 changed files with 104 additions and 26 deletions
+12
View File
@@ -0,0 +1,12 @@
#pragma once
#include <tactility/device.h>
#include <tactility/drivers/grove.h>
// Finds the I2C controller device exposed by the first grove port currently
// in GROVE_MODE_I2C, by checking each grove port's child device type
// (not by name - grove port names are not guaranteed, e.g. "port_a").
Device* findGroveI2cDevice();
// Same as findGroveI2cDevice() but for UART mode.
Device* findGroveUartDevice();