libClearCore/src/DigitalInOutAnalogOut.cpp
void DigitalInOutAnalogOut::OutputCurrent(uint16_t currentuA) {
    uint16_t dacValue =
        static_cast<uint32_t>(currentuA) * DAC_MAX_VALUE / DAC_MAX_OUTPUT_UA;
    AnalogWrite(dacValue);
}
/**
    Command the DAC to output the given number of microamps
**/
Command the DAC to output the given number of microamps
Command the DAC to output the given number of microamps
void DigitalInOutAnalogOut::OutputCurrent(uint16_t currentuA) {
    uint16_t dacValue =
        static_cast<uint32_t>(currentuA) * DAC_MAX_VALUE / DAC_MAX_OUTPUT_UA;
    AnalogWrite(dacValue);
}
void DigitalInOutAnalogOut :: OutputCurrent ( uint16_t currentuA ) { uint16_t dacValue = static_cast < uint32_t > ( currentuA ) * DAC_MAX_VALUE / DAC_MAX_OUTPUT_UA ; AnalogWrite ( dacValue ) ; }
Command the DAC to output the given number of microamps
Command the DAC to output the given number of microamps