Skip to content

Commit

Permalink
Add MK4 built-in SHT31
Browse files Browse the repository at this point in the history
  • Loading branch information
lptr committed Jan 31, 2024
1 parent bd1e8c8 commit bf0eb16
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/devices/UglyDucklingMk4.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,21 @@ class UglyDucklingMk4 : public DeviceDefinition<Mk4Config> {
peripheralManager.registerFactory(flowControlFactory);
}

std::list<String> getBuiltInPeripherals() override {
// Device address is 0x44 = 68
return {
R"({
"type": "environment:sht31",
"name": "environment",
"params": {
"address": "0x44",
"sda": 8,
"scl": 9
}
})"
};
}

Drv8801Driver motorDriver {
pwm,
GPIO_NUM_10, // Enable
Expand Down

0 comments on commit bf0eb16

Please sign in to comment.