Major GOIO refactor

This commit is contained in:
Rob Giseburt
2018-02-19 10:18:13 -06:00
parent 7dc5b96eeb
commit 70a3f309e2
14 changed files with 1557 additions and 346 deletions
+1 -1
View File
@@ -313,7 +313,7 @@ struct Thermistor {
template <typename... Ts>
Thermistor(const float temp_low, const float temp_med, const float temp_high, const float res_low, const float res_med, const float res_high, const ADCCircuit *_circuit, Ts&&... additional_values)
: circuit{_circuit},
adc_pin{kNormal, [&]{this->adc_has_new_value();}, additional_values...}
adc_pin{kNormal, [&]{this->adc_has_new_value();}, std::forward<Ts>(additional_values)...}
{
setup(temp_low, temp_med, temp_high, res_low, res_med, res_high);
adc_pin.setInterrupts(kPinInterruptOnChange|kInterruptPriorityLow);