Fixes for grove and i2c changes (#31)
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#include "TestUnit8Encoder.h"
|
||||
#include "GroveLookup.h"
|
||||
#include "UiScale.h"
|
||||
#include <tactility/device.h>
|
||||
#include <tactility/lvgl_fonts.h>
|
||||
@@ -93,9 +94,9 @@ void TestUnit8Encoder::onStart(lv_obj_t* parent, AppHandle handle, M5UnitTest* a
|
||||
lv_obj_set_flex_grow(lblSwitch_, 1);
|
||||
dotSwitch_ = makeDot(swCard);
|
||||
|
||||
Device* i2c = device_find_by_name("i2c1");
|
||||
Device* i2c = findGroveI2cDevice();
|
||||
if (!i2c) {
|
||||
lv_label_set_text(lblStatus_, "i2c1 not found");
|
||||
lv_label_set_text(lblStatus_, "grove0_i2c not found");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user