MCPcopy Create free account
hub / github.com/TactilityProject/Tactility / createPower

Function createPower

Devices/cyd-e32r32p/Source/devices/Power.cpp:6–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4#include <EstimatedPower.h>
5
6std::shared_ptr<tt::hal::power::PowerDevice> createPower() {
7 ChargeFromAdcVoltage::Configuration configuration;
8 // 2.0 ratio, but +.11 added as display voltage sag compensation.
9 configuration.adcMultiplier = 2.11;
10
11 return std::make_shared<EstimatedPower>(configuration);
12}

Callers 1

createDevicesFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected