mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-02-18 10:53:17 +00:00
11 lines
336 B
C++
11 lines
336 B
C++
#include <ChargeFromAdcVoltage.h>
|
|
#include <EstimatedPower.h>
|
|
|
|
std::shared_ptr<PowerDevice> createPower() {
|
|
ChargeFromAdcVoltage::Configuration configuration;
|
|
// 2.0 ratio, but +.11 added as display voltage sag compensation.
|
|
configuration.adcMultiplier = 2.11;
|
|
|
|
return std::make_shared<EstimatedPower>(configuration);
|
|
}
|